mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
devel/py-unearth: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
This commit is contained in:
parent
022d383b0e
commit
b28ce2b070
2 changed files with 3 additions and 63 deletions
|
@ -1,5 +1,6 @@
|
||||||
PORTNAME= unearth
|
PORTNAME= unearth
|
||||||
PORTVERSION= 0.7.2
|
PORTVERSION= 0.7.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
@ -11,6 +12,7 @@ WWW= https://github.com/frostming/unearth
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-pep517>=0:devel/py-pdm-pep517@${PY_FLAVOR}
|
||||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}requests>=2.25:www/py-requests@${PY_FLAVOR}
|
${PYTHON_PKGNAMEPREFIX}requests>=2.25:www/py-requests@${PY_FLAVOR}
|
||||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=2.1.2:www/py-flask@${PY_FLAVOR} \
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=2.1.2:www/py-flask@${PY_FLAVOR} \
|
||||||
|
@ -19,7 +21,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=2.1.2:www/py-flask@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}trustme>=0.9.0:security/py-trustme@${PY_FLAVOR}
|
${PYTHON_PKGNAMEPREFIX}trustme>=0.9.0:security/py-trustme@${PY_FLAVOR}
|
||||||
|
|
||||||
USES= python:3.7+
|
USES= python:3.7+
|
||||||
USE_PYTHON= autoplist concurrent distutils pytest
|
USE_PYTHON= autoplist concurrent pep517 pytest
|
||||||
|
|
||||||
NO_ARCH= yes
|
NO_ARCH= yes
|
||||||
|
|
||||||
|
@ -29,7 +31,4 @@ NO_ARCH= yes
|
||||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cached-property>=1.5.2:devel/py-cached-property@${PY_FLAVOR}
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cached-property>=1.5.2:devel/py-cached-property@${PY_FLAVOR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
import codecs
|
|
||||||
|
|
||||||
with codecs.open('README.md', encoding="utf-8") as fp:
|
|
||||||
long_description = fp.read()
|
|
||||||
INSTALL_REQUIRE = [
|
|
||||||
'packaging>=20',
|
|
||||||
'requests>=2.25',
|
|
||||||
'cached-property>=1.5.2; python_version < "3.8"',
|
|
||||||
]
|
|
||||||
EXTRAS_REQUIRE = {
|
|
||||||
'keyring': [
|
|
||||||
'keyring',
|
|
||||||
],
|
|
||||||
}
|
|
||||||
ENTRY_POINTS = {
|
|
||||||
'console_scripts': [
|
|
||||||
'unearth = unearth.__main__:cli',
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_kwargs = {
|
|
||||||
'name': 'unearth',
|
|
||||||
'version': '%%PORTVERSION%%',
|
|
||||||
'description': 'A utility to fetch and download python packages',
|
|
||||||
'long_description': long_description,
|
|
||||||
'license': 'MIT',
|
|
||||||
'author': '',
|
|
||||||
'author_email': 'Frost Ming <me@frostming.com>',
|
|
||||||
'maintainer': None,
|
|
||||||
'maintainer_email': None,
|
|
||||||
'url': '',
|
|
||||||
'packages': [
|
|
||||||
'unearth',
|
|
||||||
'unearth.vcs',
|
|
||||||
],
|
|
||||||
'package_dir': {'': 'src'},
|
|
||||||
'package_data': {'': ['*']},
|
|
||||||
'long_description_content_type': 'text/markdown',
|
|
||||||
'classifiers': [
|
|
||||||
'Development Status :: 3 - Alpha',
|
|
||||||
'Intended Audience :: Developers',
|
|
||||||
'Programming Language :: Python :: 3',
|
|
||||||
'Programming Language :: Python :: 3 :: Only',
|
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'Programming Language :: Python :: 3.9',
|
|
||||||
'Programming Language :: Python :: 3.10',
|
|
||||||
'Programming Language :: Python :: 3.11',
|
|
||||||
],
|
|
||||||
'install_requires': INSTALL_REQUIRE,
|
|
||||||
'extras_require': EXTRAS_REQUIRE,
|
|
||||||
'python_requires': '>=3.7',
|
|
||||||
'entry_points': ENTRY_POINTS,
|
|
||||||
}
|
|
||||||
|
|
||||||
setup(**setup_kwargs)
|
|
Loading…
Add table
Reference in a new issue