git: 273a697cbf9e - main - devel/py-exceptiongroup: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:27:07 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=273a697cbf9ef412b61d4c9c44b66ee2d3294b70
commit 273a697cbf9ef412b61d4c9c44b66ee2d3294b70
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:42:50 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:36 +0000
devel/py-exceptiongroup: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
---
devel/py-exceptiongroup/Makefile | 8 ++++----
devel/py-exceptiongroup/files/setup.py | 29 -----------------------------
2 files changed, 4 insertions(+), 33 deletions(-)
diff --git a/devel/py-exceptiongroup/Makefile b/devel/py-exceptiongroup/Makefile
index b8f5251c7a45..3444dd193ca8 100644
--- a/devel/py-exceptiongroup/Makefile
+++ b/devel/py-exceptiongroup/Makefile
@@ -1,5 +1,6 @@
PORTNAME= exceptiongroup
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW= https://github.com/agronholm/exceptiongroup
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-scm>=0:devel/py-flit-scm@${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>
diff --git a/devel/py-exceptiongroup/files/setup.py b/devel/py-exceptiongroup/files/setup.py
deleted file mode 100644
index 00fe7e9866ad..000000000000
--- a/devel/py-exceptiongroup/files/setup.py
+++ /dev/null
@@ -1,29 +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 = \
-['exceptiongroup']
-
-package_data = \
-{'': ['*']}
-
-package_dir = \
-{'': 'src'}
-
-extras_require = \
-{'test': ['pytest >= 6']}
-
-setup(name='exceptiongroup',
- version='%%PORTVERSION%%',
- description='Backport of PEP 654 (exception groups)',
- author=None,
- author_email='Alex Grönholm <alex.gronholm@nextday.fi>',
- url=None,
- packages=packages,
- package_data=package_data,
- package_dir=package_dir,
- extras_require=extras_require,
- python_requires='>=3.7',
- )