Commit Graph

155 Commits

Author SHA1 Message Date
Charlie Li
cc8a1878e0
python.mk: introduce USE_PYTHON=pep517 for PEP-517 support
USE_PYTHON=pep517 takes no arguments. Operation is similar to
USE_PYTHON=distutils, although the build backend specified in
pyproject.toml is to be specified in BUILD_DEPENDS explicitly. A
usage guide and implementation primer is available at:
	https://wiki.freebsd.org/Python/PEP-517

With hat: python
Approved by: fluffy (mentor)
Co-authored by: yuri
PR: 255722
Differential Revision: https://reviews.freebsd.org/D36290
2023-01-11 00:22:16 -05:00
Charlie Li
7d48381cbd
Uses/python.mk: revert unapproved feature addition (and consumers)
Change proposal was in discussion with open questions and additional
documented design requirement [0] for submitter to review and provide
feedback on, which was not provided.

Submitter (and anyone else) is welcome to work with python@ to
produce an appropriately reviewed feature.

[0] https://wiki.freebsd.org/Python/PEP-517

With hat: python (vishwin, koobs)
PR: 255722, 265660, 265692, 265693
Approved by: fluffy (mentor)
2022-08-21 21:39:08 -04:00
Yuri Victorovich
600312a911 Mk/Uses/python.mk: Add USE_PYTHON=build to support pyproject.toml based projects
USE_PYTHON=build supports PEP-517 at the level of individual ports.
Global support (making PEP-517 be used for all ports) is outside of the
scope of this patch.

PR:		255722
Approved by:	python (maintainer's timeout; 14 days)
Differential Revision:	https://reviews.freebsd.org/D36061
2022-08-21 13:16:06 -07:00
Po-Chuan Hsieh
94c675d58d
devel/py-setuptools: Update to 63.1.0
Changes:	https://github.com/pypa/setuptools/blob/main/CHANGES.rst
PR:		265081
Exp-run by:	antoine
2022-07-13 08:19:31 +08:00
Wen Heping
d68b12c0a6 math/py-numpy: Update to 1.23.0
PR:		264837
Reported by:	wen@
Exp-run by:	antoine@
2022-07-06 10:42:48 +08:00
VVD
f117f2c485 Mk/bsd.default-versions.mk: Switch default Python version to 3.9
PR:		261703
Reported by:	VVD
Tested by:	exp-run by antoin@
Approved by:	maintainer’s time-out
2022-06-26 22:31:43 +02:00
Po-Chuan Hsieh
c07d12c282
Mk/Uses/python.mk: Update *_DEPENDS for py-setuptools
Always use the latest version in order to avoid inconsistent behavior.
2022-06-04 07:36:48 +08:00
Po-Chuan Hsieh
535f310d33
Mk/Uses/python.mk: Add preliminary support for "make test" for nose, nose2, pytest, unittest and unittest2
This patch adds preliminary support for "make test". It supports nose, nose2,
pytest, unittest and unittest2. Enable this by adding one of the following:
    USE_PYTHON=nose
    USE_PYTHON=nose2
    USE_PYTHON=pytest
    USE_PYTHON=unittest
    USE_PYTHON=unittest2

The pytest support was derived from USES=pytest. All user-facing variables are
kept unchanged except PYTEST_ARGS which has been changed to generic TEST_ARGS.
USES=pytest can be changed to USE_PYTHON=pytest as follows:

    USES=pytest   -> USE_PYTHON=pytest
    USES=pytest:4 -> USE_PYTHON=pytest4
    PYTEST_ARGS   -> TEST_ARGS
2022-06-04 00:56:59 +08:00
Wen Heping
ff9098f709 math/py-numpy: Update to 1.22.4
PR:		264153
Reported by:	wen@
Exp-run by:	antoine@
2022-05-25 15:22:27 +08:00
Tobias C. Berner
aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00
Po-Chuan Hsieh
792ff60452
Mk/Uses/python.mk: Use lang/cython for all Python versions
lang/cython has been updated to support lang/python311 (3.11.0a6) while
lang/cython-devel does not support it yet (broken since 3.11.0a4).
2022-03-25 21:37:56 +08:00
Rene Ladan
fcb5bf842e Mk/Uses: remove the default deprecation date.
Obviously the world did not manage to get rid of Python 2.7
by 2020-12-31, so remove that target and just advise users
to move on to Python 3.

This is the commit 1/9 of review D33922

Differential Revision:	https://reviews.freebsd.org/D33922
2022-01-23 21:55:19 +01:00
Rene Ladan
d85222d966 Mk: unregister expired lang/python36
While here update some examples.
2021-12-31 13:57:46 +01:00
Dmitry Marakasov
d6f568cf8a lang/python311: add port (at 3.11.0.alpha2)
Python is an interpreted object-oriented programming language, and is
often compared to Tcl, Perl or Scheme.

WWW: https://www.python.org/

PR:		259745
Approved by:	python
2021-11-24 20:00:33 +03:00
Dmitry Marakasov
ab67421b6e lang/cython-devel: add port
Add devel version of cython. Apart from that 3.x cython branch is
where all the development goes on, 0.29.x only getting backported
bugfixes, this is currently the only version which supports python
3.11. Because of that, wire USE_PYTHON=cython to cython-devel for
python >= 3.11 in Uses/python.mk as well and limit supported python
versions with <= 3.10 for cython.

PR:		259898
Approved by:	python (lwhsu)
2021-11-24 20:00:33 +03:00
Wen Heping
7e9bec828e math/py-numpy: Update to 1.20.3
PR:		259063
Reported by:	wen@
Exp-run by:	antoine@
2021-10-26 08:50:47 +08:00
Sergey A. Osokin
06a8050112 devel/mercurial: update to 5.9.1.
Bump PORTREVISIONs for dependant ports.
While I'm here update devel/tortoisehg to 5.9.1. (*)

Approved by:	arrowd (*)
PR:		ports/258352
2021-09-15 22:16:07 -04:00
Dmitry Marakasov
930c931292 lang/python310: add python 3.10.0.beta4
PR:		256150
Approved by:	maintainer timeout (python@, 1 month)
Differential Revision:	https://reviews.freebsd.org/D30475
2021-07-14 23:14:55 +03:00
Po-Chuan Hsieh
33b4388b09
Mk/Uses/python.mk: Remove PY_PYGMENTS 2021-06-21 00:16:15 +08:00
Dmitry Marakasov
7a4ce8f831 devel/py-setuptools: update to 57.0.0 preserving old version
- Copy devel/py-setuptools to devel/py-setuptools44 (for Python 2.7 support)
- Update devel/py-setuptool to 57.0.0 (adding support for Python 3.10)
- Update Mk/Uses/python.mk to chose between py-setuptools and
  py-setuptools44 based on Python version

This allows us to have latest setuptools and working Python 3.10
without breaking packages requiring Python 2 support for remaining
reports that require it.

Exp-run showed 3 ports failing to build with latest setuptools and
they were fixed.

PR:			256173
Exp-run by:		antoine
Reviewed by:		koobs (python)
Approved by:		koobs (python)
Differential_Revision:	https://reviews.freebsd.org/D30473
2021-06-03 14:36:56 +03:00
Dmitry Marakasov
5f69415313 Mk: switch from PYTHON_PORTVERSION to PYTHON_DISTVERSION
This brings python framework in consistense with handbook recommendations
to prefer DISTVERSION and simplifies adding prerelease versions of
python

PR:		255013
Differential Revision:	https://reviews.freebsd.org/D29418
Exp-run by:	antoine
Approved by:	wen@, no objection from python@ or portmgr@
2021-05-25 16:55:44 +03:00
Dmitry Marakasov
40d7b48738 Mk: add framework support for two digit python minor version
PR:		255013
Differential Revision:	https://reviews.freebsd.org/D29418
Exp-run by:	antoine
Approved by:	wen@, no objection from python@ or portmgr@
2021-05-25 16:55:44 +03:00
Dmitry Marakasov
0729af4255 Mk: switch PYTHON_REL to 5 digits to support python 3.10.x
PR:		255013
Differential Revision:	https://reviews.freebsd.org/D29418
Exp-run by:	antoine
Approved by:	wen@, no objection from python@ or portmgr@
2021-05-25 16:55:43 +03:00
Li-Wen Hsu
024ecae0c5
Move 2.7 to the last of _PYTHON_VERSIONS
Reviewed by:	sbz
Differential Revision:	https://reviews.freebsd.org/D29837
2021-05-18 17:40:17 +08:00
Kai Knoblich
6cd3db2d03 *: Switch default version of python and python3 from 3.7 to 3.8
PR:		253815
Reported by:	VVD <vvd@unislabs.com>
Approved by:	kai (python, maintainer)
Exp-run by:	antoine
2021-04-25 20:48:44 +02:00
Antoine Brodin
5275bcca46 Remove devel/py-enum34, no longer needed 2021-04-23 18:46:52 +00:00
Antoine Brodin
979e06028d Do not use PYTHON_VER in comparisons 2021-04-12 18:28:30 +00:00
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
Sunpoet Po-Chuan Hsieh
ac79643799 Clean up PYTHON_PYOEXTENSION (followup of r500018)
PYTHON_PYOEXTENSION is only used by 2 ports (astro/weather and math/py-rpy2) now.
2021-03-30 19:18:58 +00:00
Sunpoet Po-Chuan Hsieh
d12f3bd6ec Fix typo 2021-03-03 18:17:59 +00:00
Wen Heping
193a8332cc - Fix ports build with python3.9
Submitted by:	jbeich@
2021-02-23 08:25:05 +00:00
Mathieu Arnold
6a83479862 Make USES=python without argument mean 3.6+.
This is getting us one step further to deorbitting Python 2.7.

Reviewed by:	rene, antoine, swills
Differential Revision:	https://reviews.freebsd.org/D28459
2021-02-04 14:35:22 +00:00
Danilo G. Baio
290134abb3 Mk/Uses/python.mk: Remove PY_SPHINX shared macro
This shared macro was necessary to use with flavors and not break ports with
USES=python (all versions).

All ports that depends on Sphinx are using the latest version on tree.

Approved by:	python (with hat)
2021-01-15 14:38:44 +00:00
Rene Ladan
c53f5f37f6 Remove now unused PY_IPADDRESS and PY_TYPING and their ports. 2021-01-12 20:14:45 +00:00
Rene Ladan
ecadfa88a7 Remove unused PY_PATHLIB references and its definition.
The port itself (devel/py-pathlib) was already removed.
2021-01-10 17:05:25 +00:00
Rene Ladan
42ca9d7a26 Follow up on devel/py-futures port removal in r559976
The devel/py-futures port was removed in r559976 as it was for
Python 2.7 only and no longer referenced in the default cases.
However it was still defined in Mk/Uses/python.mk in PY_FUTURES,
leaving a dangling reference.

Remove it from Mk/Uses/python.mk and from affected ports, as
it was already an empty definition for Python 3.6+

Bump minimal Python version of security/theonionbox to 3.6+
2021-01-05 22:08:21 +00:00
Rene Ladan
89b454230d Follow up on graphics/py-pillow6 port removal in r559976
The graphics/py-pillow6 port was removed in r559976 as it was for
Python 2.7 only and no longer referenced in the default cases.
However it was still defined in Mk/Uses/python.mk in PY_PILLOW,
leaving a dangling reference.

Remove it from Mk/Uses/python.mk, leaving only the Python 3
version of that port, graphics/py-pillow, defined and bump the
minimal verion of Python to 3.6 for affected ports.
2021-01-05 20:53:59 +00:00
Dima Panov
fd8c799f25 Mk/Uses/python.mk: introduce PYTHON_EXT_SUFFIX variable
Since Python-3.8.7 it uses unified with other platforns shared libs naming scheme:
instead of plain .so suffix now it refers to used cpython: .cpython-${PYTHON_SUFFIX}.so

Future Python releases will use this scheme too, it will be hooked via version check

PR:		252057
Approved by:	python (wen)
2020-12-24 13:14:02 +00:00
Sunpoet Po-Chuan Hsieh
b07ed56d3c Update PY_PYGMENTS
textproc/py-jupyterlab-pygments requires textproc/py-pygments between 2.4.1 and 3 (>=2.4.1,<3)
2020-12-19 20:24:39 +00:00
Sunpoet Po-Chuan Hsieh
c443b59b05 Update PY_SPHINX
textproc/py-furo requires textproc/py-sphinx 3.0
2020-11-08 17:49:26 +00:00
Wen Heping
a18bc2a806 - Repocopy lang/python38 --> lang/python39 and update to 3.9.0
PR:		250160
Submitted by:	wen@(myself)
2020-10-12 13:52:42 +00:00
Mateusz Piotrowski
ca694a1a83 Add "env" to the list of python.mk's valid args
Now the list mentions all the supported arguments.
2020-09-28 13:00:09 +00:00
Sunpoet Po-Chuan Hsieh
ec576d1f3f Update PY_PYGMENTS
devel/py-readme_renderer requires textproc/py-pygments 2.5.1
2020-09-21 20:04:49 +00:00
Antoine Brodin
a4e3d1cd90 textproc/py-pygments is no longer compatible with python27 so add a PY_PYGMENTS variable
With hat:	portmgr
2020-09-21 12:01:13 +00:00
Rene Ladan
57a977d8a2 Unregister expired Python 3.5 2020-09-19 20:22:27 +00:00
Li-Wen Hsu
d9fba02aed python.mk: Mention python 3.8 2020-09-08 07:57:30 +00:00
Gleb Popov
7e94852947 devel/mercurial: Update to 5.5 and flavorize. Adjust dependency lines and bump PORTREVISION's for ports that depend on mercurial.
PR:		242463
Submitted by:	Peter Wullinger <freebsd@dhke.de> (original patch)
2020-09-06 15:09:27 +00:00
Joseph Mingrone
3bd77fee34 Mk/Use/python.mk: Do not surround package list entries in quotes
When python package lists are generated by distutils, any file entry that
includes a space will be surrounded in double quotes.  This is unnecessary
and causes problems elsewhere such as when stripping ${PREFIX} for staging
or checking the package list in stage-qa.

PR:		248981
Approved by:	kevans, portmgr (mat), python (koobs)
Differential Revision:	https://reviews.freebsd.org/D26221
2020-09-01 15:34:25 +00:00
Sunpoet Po-Chuan Hsieh
665af1a6ca Cosmetic change 2020-07-24 07:53:21 +00:00
Sunpoet Po-Chuan Hsieh
0b6652315b Update PYNUMPY
science/py-geometer requires math/py-numpy between 1.15 and 1.20 (>=1.15,<1.20)
2020-07-09 18:11:01 +00:00