diff options
-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', - ) |