Commit Graph

139 Commits

Author SHA1 Message Date
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
Danilo G. Baio
75a5f7f076 Update Sphinx
- Repocopy textproc/py-sphinx to textproc/py-sphinx18

  Update it to 1.8.5 (latest version from 1.8.X).
  This version supports Python 2 and 3.
  Add test target.

- textproc/py-sphinx: Update to 3.0.2

  Python 3 only (3.5+).
  Add test target.

- Mk/Uses/python.mk: Add PY_SPHINX

  Shared macro to use with flavors and not break
  ports with USES=python (all versions).

  Python >=3.5  --> textproc/py-sphinx (v3.0.2)
  Python < 3.5  --> textproc/py-sphinx18 (v1.8.5)

  All ports that uses sphinx were changed to use the new variable
  ${PY_SPHINX} in the dependency line, exceptions:

    * Ports that fails to build with sphinx 3.0.2 because of code.
      They are pointing to textproc/py-sphinx18 directly.
      There aren't many ports.

    * Ports that doesn't know Python flavors.

- Add several patches to fix Sphinx consumers

  The most common issues are related with pkg-plist, the output
  files from Sphinx changes between versions, keep this dynamically
  is the better approach.

  This will save time in future sphinx updates.

PR:		245629
Exp-run by:	antoine
2020-05-11 23:51:58 +00:00
Mathieu Arnold
d9869c8271 Automatically mark ports as DEPRECATED when they use Python 2.
Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D24732
2020-05-06 11:53:56 +00:00
Sunpoet Po-Chuan Hsieh
3e5bc93d9b Update PY_TYPING
devel/py-tenacity requires devel/py-typing 3.7.4.1
2020-05-02 01:40:15 +00:00
Sunpoet Po-Chuan Hsieh
e1c19ef2d0 Update PYNUMPY
astro/py-metpy requires math/py-numpy 1.16.0
2020-04-21 19:47:46 +00:00
Antoine Brodin
6b542baa09 py-enum-compat is available for all flavors of python
With hat:	portmgr
2020-04-01 06:46:47 +00:00
Sunpoet Po-Chuan Hsieh
7e703b1ab6 Update PY_ENUM34
devel/py-clikit requires devel/py-enum34 between 1.1 and 2.0 (>=1.1,<2.0)
2020-03-31 23:17:32 +00:00
Antoine Brodin
b4990c3eb6 Add a PY_PILLOW that can be used to choose between graphics/py-pillow
and graphics/py-pillow6

With hat:	portmgr
2020-03-24 19:51:44 +00:00
Antoine Brodin
abd81a62fa Add a developer warning to ports using python:2.7
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D23757
2020-02-23 21:49:41 +00:00
Sunpoet Po-Chuan Hsieh
f386e86c92 Update PYNUMPY
science/py-geometer requires math/py-numpy between 1.15 and 1.19 (>=1.15,<1.19)
2020-02-04 17:56:37 +00:00
Sunpoet Po-Chuan Hsieh
bb488154a5 Update PYNUMPY
devel/py-xarray requires math/py-numpy 1.15
2020-02-02 11:06:45 +00:00
Sunpoet Po-Chuan Hsieh
3d75f064d8 Update PY_ENUM34
devel/py-glance-store requires devel/py-enum34 1.0.4.
2020-01-31 19:10:39 +00:00
Antoine Brodin
2d502e045a Fix packaging of some python ports after r523104
With hat:	portmgr
2020-01-15 20:34:16 +00:00
Sunpoet Po-Chuan Hsieh
8629bc87b5 Update PY_IPADDRESS
mail/py-mail-parser requires net/py-ipaddress 1.0.23
2020-01-13 17:49:07 +00:00
Mathieu Arnold
35cc54ec37 Cleanup after removing PYTHON_VERSION from DEPENDS_ARGS.
Much of the Python version selection code had compat shims around to
accomodate the transition from before to with flavors. These can now be
removed.

PR:		243185
Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D23084
2020-01-09 13:33:01 +00:00
Mathieu Arnold
d3f5fae643 Remove the legacy way of passing Python version.
This was used before flavors were a thing to make sure if you built port
A with some python version, and it needed port B, port B would also be
built with the same python version.

PR:		243185
Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D23084
2020-01-09 13:32:54 +00:00
Antoine Brodin
e47b224c80 Switch default version of python3 and python from 3.6 to 3.7
With hat:	portmgr
PR:		233770
2019-12-16 06:29:00 +00:00