devel/py-flit: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
This commit is contained in:
parent
e7cfa3158c
commit
550a2e5755
2 changed files with 3 additions and 38 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= flit
|
||||
PORTVERSION= 3.8.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -11,6 +12,7 @@ WWW= https://github.com/pypa/flit
|
|||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=${PORTVERSION}<4:devel/py-flit-core@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0,1:textproc/py-docutils@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}flit-core>=${PORTVERSION}:devel/py-flit-core@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
|
||||
|
@ -18,11 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0,1:textproc/py-docutils@${PY_FLAV
|
|||
${PYTHON_PKGNAMEPREFIX}tomli-w>=0:textproc/py-tomli-w@${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>
|
||||
|
|
|
@ -1,34 +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 = \
|
||||
['flit', 'flit.vcs', 'flit.vendorized', 'flit.vendorized.readme']
|
||||
|
||||
package_data = \
|
||||
{'': ['*'], 'flit': ['license_templates/*']}
|
||||
|
||||
install_requires = \
|
||||
['flit_core >= %%PORTVERSION%%', 'requests', 'docutils', 'tomli-w']
|
||||
|
||||
extras_require = \
|
||||
{'doc': ['sphinx', 'sphinxcontrib_github_alt', 'pygments-github-lexers'],
|
||||
'test': ['testpath', 'responses', 'pytest>=2.7.3', 'pytest-cov', 'tomli']}
|
||||
|
||||
entry_points = \
|
||||
{'console_scripts': ['flit = flit:main']}
|
||||
|
||||
setup(name='flit',
|
||||
version='%%PORTVERSION%%',
|
||||
description='A simple packaging tool for simple packages.',
|
||||
author=None,
|
||||
author_email='Thomas Kluyver <thomas@kluyver.me.uk>',
|
||||
url=None,
|
||||
packages=packages,
|
||||
package_data=package_data,
|
||||
install_requires=install_requires,
|
||||
extras_require=extras_require,
|
||||
entry_points=entry_points,
|
||||
python_requires='>=3.6',
|
||||
)
|
Loading…
Reference in a new issue