This library brings functools.singledispatch from Python 3.4 to
Python 2.6-3.3.
PEP 443 proposed to expose a mechanism in the functools standard
library module in Python 3.4 that provides a simple form of generic
programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 2.6 - 3.3.
WWW: https://pypi.org/project/singledispatch/
Remove some more expired ports:
devel/py-backports.functools_lru_cache
devel/py-backports_abc
devel/py-futures
devel/py-singledispatch
devel/py-typing
graphics/py-pillow6
Adjust dependent ports.
Tested with 'make index' against r559975
Remove most expired ports that depend on Python 2.7:
Exceptions are:
- mail/mailman, our listservers still use it
- www/chromium, solely because of popular demand,
upstream is (slowly) working on porting it to Python 3
- ports that have actual patches for Python 3 against
them (Cinnamon and a few unrelated other ports)
- llvm70 and qt5-webengine because they seem to have a lot
of dependencies which need further analysis
- sysutils/uefi-edk2-bhyve because bhyve seems to use them
- python2 and python27 themselves
I'm sure there will be complaints, but the nice thing about
a version control system is that we can revert and adjust things.
(Only the first 15 lines of the commit message are shown above )
Switch all pypi.python.org WWWs to a new PyPi home pypi.org where
they now redirect to anyway. All new urls checked to return 200,
I've fixed a couple of them in the process.
Approved by: portmgr blanket, mat
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
Add devel/py-singledispatch:
This library brings functools.singledispatch from Python 3.4 to
Python 2.6-3.3.
PEP 443 proposed to expose a mechanism in the functools standard
library module in Python 3.4 that provides a simple form of generic
programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 2.6 - 3.3.
WWW: https://pypi.python.org/pypi/singledispatch