diff options
| -rw-r--r-- | www/py-django-debreach/Makefile | 13 | ||||
| -rw-r--r-- | www/py-django-debreach/files/patch-pyproject.toml | 11 | ||||
| -rw-r--r-- | www/py-django-debreach/files/patch-setup.cfg | 13 | ||||
| -rw-r--r-- | www/py-django-debreach/files/setup.py | 5 |
4 files changed, 6 insertions, 36 deletions
diff --git a/www/py-django-debreach/Makefile b/www/py-django-debreach/Makefile index 2e7ad7691c1e..1d87560aa589 100644 --- a/www/py-django-debreach/Makefile +++ b/www/py-django-debreach/Makefile @@ -1,6 +1,6 @@ PORTNAME= django-debreach -PORTVERSION= 2.1.0 -PORTREVISION= 1 +DISTVERSION= 2.1.0 +PORTREVISION= 2 CATEGORIES= www security python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,17 +12,16 @@ WWW= https://github.com/lpomfrey/django-debreach LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist pep517 NO_ARCH= yes -# Workaround to make the port still buildable with "distutils" -post-extract: - @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ - do-test: @cd ${WRKSRC} && ${PYTHON_CMD} runtests.py diff --git a/www/py-django-debreach/files/patch-pyproject.toml b/www/py-django-debreach/files/patch-pyproject.toml deleted file mode 100644 index 0cb7e3454f26..000000000000 --- a/www/py-django-debreach/files/patch-pyproject.toml +++ /dev/null @@ -1,11 +0,0 @@ -Remove requirements for wheel and pip as they're not required for build - ---- pyproject.toml.orig 2022-01-19 06:15:34 UTC -+++ pyproject.toml -@@ -1,5 +1,5 @@ - [build-system] --requires = ["setuptools", "wheel", "pip"] -+requires = ["setuptools"] - build-backend = "setuptools.build_meta" - - [tool.black] diff --git a/www/py-django-debreach/files/patch-setup.cfg b/www/py-django-debreach/files/patch-setup.cfg deleted file mode 100644 index 552c7b1ea93e..000000000000 --- a/www/py-django-debreach/files/patch-setup.cfg +++ /dev/null @@ -1,13 +0,0 @@ -Remove requirements for wheel and pip as they're not required for build - ---- setup.cfg.orig 2022-01-19 06:16:57 UTC -+++ setup.cfg -@@ -32,7 +32,7 @@ classifiers = - zip_safe = False - include_package_data = True - packages = find: --setup_requires = setuptools;wheel;pip -+setup_requires = setuptools - python_requires = >=3.7 - tests_require = django - diff --git a/www/py-django-debreach/files/setup.py b/www/py-django-debreach/files/setup.py deleted file mode 100644 index 2285e429c304..000000000000 --- a/www/py-django-debreach/files/setup.py +++ /dev/null @@ -1,5 +0,0 @@ -# Enable build with distutils - -from setuptools import setup - -setup() |
