git: c721b7bf48fd - main - www/py-mechanicalsoup: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 May 2024 14:25:09 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c721b7bf48fdc28972bb195220c0033f4d38017c commit c721b7bf48fdc28972bb195220c0033f4d38017c Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-13 14:13:10 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-13 14:13:10 +0000 www/py-mechanicalsoup: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- www/py-mechanicalsoup/Makefile | 5 ++++- www/py-mechanicalsoup/files/patch-setup.py | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/www/py-mechanicalsoup/Makefile b/www/py-mechanicalsoup/Makefile index a6056416b70a..2aa0389e59e4 100644 --- a/www/py-mechanicalsoup/Makefile +++ b/www/py-mechanicalsoup/Makefile @@ -1,5 +1,6 @@ PORTNAME= mechanicalsoup PORTVERSION= 1.3.0 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,6 +13,8 @@ WWW= https://github.com/MechanicalSoup/MechanicalSoup LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.7:www/py-beautifulsoup@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.22.0:www/py-requests@${PY_FLAVOR} @@ -21,7 +24,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests-mock>=0:www/py-requests-mock@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes diff --git a/www/py-mechanicalsoup/files/patch-setup.py b/www/py-mechanicalsoup/files/patch-setup.py new file mode 100644 index 000000000000..e21c791797e4 --- /dev/null +++ b/www/py-mechanicalsoup/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2023-07-04 19:21:51 UTC ++++ setup.py +@@ -42,7 +42,7 @@ setup( + pytest_runner = ['pytest-runner'] if needs_pytest else [] + + setup( +- name=about['__title__'], ++ name='mechanicalsoup', + + # useful: python setup.py sdist bdist_wheel upload + version=about['__version__'],