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
current python flavor. It can be used in dependency lines when the
port itself is not python flavored. For example, deskutils/calibre.
By default, all the flavors are generated. To only generate flavors
for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.
In all the ports with Python dependencies, the *_DEPENDS entries MUST
end with the flavor so that the framework knows which to build/use.
This is done by appending '@${PY_FLAVOR}' after the origin (or
@${FLAVOR} if in a Python module with Python flavors, as the content
will be the same). For example:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
PR: 223071
Reviewed by: portmgr, python
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D12464551be3c723Port details
devel/py-mypy2.3.1
Optional static typing for Python
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- py312-mypy 2.3.1
- Upstream
- Higher version available: 2.4.0
- CPE
- none, CVEs only via VuXML
- WWW
- https://www.mypy-lang.org/
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (107)
Update devel/py-mypy to 0.530
Changelog:
- http://mypy-lang.blogspot.de/2017/10/mypy-0530-released.html
The license file is no longer part of the distfile.
PR: 222851
Submitted by: Florian Limberger (maintainer)73839dc00cdevel/py-mypy: patch to work with Port's py-typed-ast PR: 221230d735c477d0
devel/py-mypy: update to 0.521 ChangeLog: - Fine-graned control of any type - __setattr__ support - Hash-based incremental cache - NamedTuple methods - Improved error messages See http://mypy-lang.blogspot.co.za/2017/07/mypy-0520-released.html and http://mypy-lang.blogspot.co.za/2017/07/mypy-0521-released.html PR: 221230 Approved by: Florian Limberger (flo@snakeoilproductions.net)003d651c4f
- Fix shebangd922aeb5c7
devel/py-mypy: update to 0.501 - Remove unneeded patches (superseded by upstream) - Track minimum depedency on py-typed-ast Change Log: - typed_ast is used as the default parser (i.e. --fast-parser is now the default) - Python 3.6 features supported by default - Simples metaclass support added - The --warn-no-return flag is now default: warns about missing return statements - A function that doesn't return can be annotated (using mypy_extensions.NoReturn) - Redundant Generic[T] no longer needed - Checking of assignments in a class body - The --strict flag is added, that turns on most additional checks PR: 218303 Approved by: Florian Limberger <flo@snakeoilproductions.net>3c60f52a6b
devel/py-mypy: add new port Mypy is an optional static type checker for Python. You can add type hints to your Python programs using the standard for type annotations introduced in Python 3.5 (PEP 484), and use mypy to type check them statically. Find bugs in your programs without even running them! PR: 209871 Submitted by: Florian Limberger (flo@snakeoilproductions.net)5992ee550f