Commit Graph

124 Commits

Author SHA1 Message Date
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
Antoine Brodin 3b035ed054 Adjust PYTHON_ABIVER for python 3.8
With hat:	portmgr
2019-11-06 14:16:28 +00:00
Wen Heping 2ff1253050 - Repocopy lang/python37 --> python38 and update to 3.8.0
PR:		241416
Submitted by:	wen@(myself)
Reviewed by:	koobs@, amdmi3@
2019-11-02 23:40:39 +00:00
Sunpoet Po-Chuan Hsieh c9a5d6d3d6 Update PY_TYPING
devel/py-typing-extensions requires py-typing 3.7.4+.
2019-08-04 16:11:10 +00:00
Kubilay Kocak ac16e5c894 Uses/python.mk: Clarify language, messaging and usage for <version-spec>
Make it clear that <version-spec> is a declarative not imperative
specification to declare what version of Python a port or software
*supports*, not the versions it should *use*.

The version that gets selected is a function of Python.mk, DEFAULT_VERSIONS
which change over time, and can be overridden or otherwise set by the user.

While I'm here, add a special note about bare USES=python (without a
<version-spec>), which is likely to be deprecated at some point down the
line. In the meantime, describe what the semantics of not specifying a
<version-spec> entails, and encourage minimisation of its use where
appropriate.

Approved by:	koobs (python, maintainer)
2019-07-03 07:31:01 +00:00
Wen Heping 43633b0725 - Update python version in comment, remove deprecated version. 2019-07-03 06:35:48 +00:00
Sunpoet Po-Chuan Hsieh f7fa6c5595 Update PY_FUTURES
security/theonionbox requires py-futures>=3.2.
2019-06-23 19:21:24 +00:00
Sunpoet Po-Chuan Hsieh d8cff3e56b Introduce PY_TYPING and simplify Makefile
Since devel/py-promise requires 3.6.4+, the minimal version is set to 3.6.4.

With hat:	python
2019-05-31 10:00:20 +00:00
Sunpoet Po-Chuan Hsieh 4ae562dd77 Update comment for PYTHON_PKGNAMESUFFIX
The deprecated comment was added in r364450 (bsd.python.mk to Uses/python.mk transition) but it is not.
2019-04-27 18:27:43 +00:00
Antoine Brodin 8779d06e2c Remove PYTHON_PYOEXTENSION from plist substitutions
With hat:	portmgr
2019-04-25 15:21:51 +00:00
Tobias Kortkamp b543464063 Mk/Uses/python.mk: Flag unknown USES=python args and unknown USE_PYTHON features
PR:		235901
Approved by:	mat
Differential Revision:	https://reviews.freebsd.org/D19569
2019-04-18 13:16:44 +00:00
Mathieu Arnold f5aa2e9f2f PYTHON_VERSION cannot be changed, use DEFAULT_VERSIONS.
PR:		224024
2019-01-16 15:13:51 +00:00
Rene Ladan acddeb4e12 Unregister Python 3.4, it expired today. 2018-12-18 09:19:03 +00:00
Sunpoet Po-Chuan Hsieh ff7216bdbc Update PYMAGICTAG
imp.get_tag() is deprecated since version 3.4.
Use sys.implementation.cache_tag directly starting in Python 3.3.

Reference:	https://docs.python.org/3/library/imp.html#imp.get_tag
2018-11-25 17:11:52 +00:00
Sunpoet Po-Chuan Hsieh af96ace6c0 Update PEP link 2018-11-03 22:26:41 +00:00
Martin Wilke fb3d7e4971 - Finish up lang/python37 import
- Added python37 docs
- Added python37 support to Mk/

Reviewed by:	bapt
Approved by:	bapt (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16159
2018-07-06 16:11:14 +00:00