diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-03-21 18:44:57 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-03-21 19:20:54 +0000 |
commit | dd0c0292f585563459b59cba46ef0c5ea09c107d (patch) | |
tree | 72bc4328e03af9781a97500cbb0675be88ed7e3f | |
parent | 8bbf03d7f45aa77b1134ff96de4f4bdc549a6b95 (diff) | |
download | ports-dd0c0292f585563459b59cba46ef0c5ea09c107d.tar.gz ports-dd0c0292f585563459b59cba46ef0c5ea09c107d.zip |
devel/py-pep440: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
-rw-r--r-- | devel/py-pep440/Makefile | 8 | ||||
-rw-r--r-- | devel/py-pep440/files/setup.py | 30 |
2 files changed, 4 insertions, 34 deletions
diff --git a/devel/py-pep440/Makefile b/devel/py-pep440/Makefile index f271d81cbf6d..85cd180cc2a8 100644 --- a/devel/py-pep440/Makefile +++ b/devel/py-pep440/Makefile @@ -1,5 +1,6 @@ PORTNAME= pep440 PORTVERSION= 0.1.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +12,11 @@ WWW= https://github.com/Carreau/pep440 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.4<4:devel/py-flit-core@${PY_FLAVOR} + USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.mk> diff --git a/devel/py-pep440/files/setup.py b/devel/py-pep440/files/setup.py deleted file mode 100644 index 0747f93219ba..000000000000 --- a/devel/py-pep440/files/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -# setup.py generated by flit for tools that don't yet use PEP 517 - -from distutils.core import setup - -packages = \ -['pep440'] - -package_data = \ -{'': ['*']} - -extras_require = \ -{'lint': ['check-manifest', 'mypy'], - 'test': ['pytest-console-scripts', 'pytest-cov', 'pytest']} - -entry_points = \ -{'console_scripts': ['pep440 = pep440.__main__:main']} - -setup(name='pep440', - version='%%PORTVERSION%%', - description='A simple package with utils to check whether versions number match PEP 440.', - author=None, - author_email='Matthias Bussonnier <bussonniermatthias@gmail.com>', - url=None, - packages=packages, - package_data=package_data, - extras_require=extras_require, - entry_points=entry_points, - python_requires='>=3.7', - ) |