<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2849de8ac97e1c8a9dcd4687eba4bcc483070520">https://github.com/macports/macports-ports/commit/2849de8ac97e1c8a9dcd4687eba4bcc483070520</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 2849de8ac97 thefuck: use python 3.12, assume maintainership
</span>2849de8ac97 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2849de8ac97e1c8a9dcd4687eba4bcc483070520
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Mon Jan 8 13:22:16 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> thefuck: use python 3.12, assume maintainership
</span>---
python/thefuck/Portfile | 22 +++++++++-------
python/thefuck/files/patch-python312.diff | 42 +++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 9 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/thefuck/Portfile b/python/thefuck/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1dfb4615f7c..900129b40ef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/thefuck/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/thefuck/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,13 +5,13 @@ PortGroup python 1.0
</span>
name thefuck
version 3.32
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span>
categories-append sysutils
platforms {darwin any}
supported_archs noarch
license MIT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {i0ntempest @i0ntempest} openmaintainer
</span>
description a magnificent app that corrects errors in previous console commands
long_description The Fuck is {*}${description}.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,14 +22,18 @@ checksums rmd160 e53ea0498de134173e8b0bea90f2522fa379fe13 \
</span> sha256 976740b9aa536726fa23cadc9a10bf457e92e335901c61fcff9152c84485ac3d \
size 83575
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 311
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 312
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:py${python.version}-colorama \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-decorator \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-psutil \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-pyte \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-six
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:py${python.version}-colorama \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-decorator \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-psutil \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pyte \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-six
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-python312.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.args -p1
</span>
notes "
To configure thefuck fuck alias, add this to your startup file (eg. .bash_profile, .zshrc)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/thefuck/files/patch-python312.diff b/python/thefuck/files/patch-python312.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..637691f2009
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/thefuck/files/patch-python312.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/thefuck/conf.py b/thefuck/conf.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 27876ef47..611ec84b7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/thefuck/conf.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/thefuck/conf.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-from imp import load_source
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import sys
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from warnings import warn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6,6 +5,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from . import const
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from .system import Path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++try:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ import importlib.util
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ def load_source(name, pathname, _file=None):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ module_spec = importlib.util.spec_from_file_location(name, pathname)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ module = importlib.util.module_from_spec(module_spec)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ module_spec.loader.exec_module(module)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return module
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++except ImportError:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ from imp import load_source
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class Settings(dict):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def __getattr__(self, item):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/thefuck/types.py b/thefuck/types.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 96e6ace67..b3b64c35d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/thefuck/types.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/thefuck/types.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,9 +1,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-from imp import load_source
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import sys
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from . import logs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from .shells import shell
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-from .conf import settings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++from .conf import settings, load_source
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from .const import DEFAULT_PRIORITY, ALL_ENABLED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from .exceptions import EmptyCommand
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from .utils import get_alias, format_raw_script
</span>\ No newline at end of file
</pre><pre style='margin:0'>
</pre>