git: b28ce2b070b5 - main - devel/py-unearth: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:29:16 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b28ce2b070b5d87efee192c2c7bf641ddcef0d76 commit b28ce2b070b5d87efee192c2c7bf641ddcef0d76 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:45:45 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:07 +0000 devel/py-unearth: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-unearth/Makefile | 7 +++-- devel/py-unearth/files/setup.py | 59 ----------------------------------------- 2 files changed, 3 insertions(+), 63 deletions(-) diff --git a/devel/py-unearth/Makefile b/devel/py-unearth/Makefile index 399cb32cb47c..54c5cf3f7527 100644 --- a/devel/py-unearth/Makefile +++ b/devel/py-unearth/Makefile @@ -1,5 +1,6 @@ PORTNAME= unearth PORTVERSION= 0.7.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,6 +12,7 @@ WWW= https://github.com/frostming/unearth LICENSE= MIT 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} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.25:www/py-requests@${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} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils pytest +USE_PYTHON= autoplist concurrent pep517 pytest 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} .endif -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.post.mk> diff --git a/devel/py-unearth/files/setup.py b/devel/py-unearth/files/setup.py deleted file mode 100644 index 0b7bc64588f8..000000000000 --- a/devel/py-unearth/files/setup.py +++ /dev/null @@ -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)