git: b58796e739ff - main - textproc/py-sphinx-inline-tabs: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:30:22 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b58796e739ff0eb6a77db1df42f1d7ef151c7c68
commit b58796e739ff0eb6a77db1df42f1d7ef151c7c68
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:48:43 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:23 +0000
textproc/py-sphinx-inline-tabs: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
---
textproc/py-sphinx-inline-tabs/Makefile | 7 +++---
textproc/py-sphinx-inline-tabs/files/setup.py | 34 ---------------------------
2 files changed, 3 insertions(+), 38 deletions(-)
diff --git a/textproc/py-sphinx-inline-tabs/Makefile b/textproc/py-sphinx-inline-tabs/Makefile
index 635061e0c012..455d226c3e11 100644
--- a/textproc/py-sphinx-inline-tabs/Makefile
+++ b/textproc/py-sphinx-inline-tabs/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sphinx-inline-tabs
PORTVERSION= 2022.1.2b11
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +13,11 @@ WWW= https://github.com/pradyunsg/sphinx-inline-tabs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=3,1:textproc/py-sphinx@${PY_FLAVOR}
USES= python:3.7+
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
@@ -25,7 +27,4 @@ NO_ARCH= yes
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
.endif
-post-patch:
- @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
.include <bsd.port.post.mk>
diff --git a/textproc/py-sphinx-inline-tabs/files/setup.py b/textproc/py-sphinx-inline-tabs/files/setup.py
deleted file mode 100644
index 395ea6b275e9..000000000000
--- a/textproc/py-sphinx-inline-tabs/files/setup.py
+++ /dev/null
@@ -1,34 +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 = \
-['sphinx_inline_tabs']
-
-package_data = \
-{'': ['*'], 'sphinx_inline_tabs': ['static/*']}
-
-package_dir = \
-{'': 'src'}
-
-install_requires = \
-['sphinx >= 3']
-
-extras_require = \
-{'doc': ['myst-parser', 'furo'],
- 'test': ['pytest', 'pytest-cov', 'pytest-xdist']}
-
-setup(name='sphinx_inline_tabs',
- version='%%PORTVERSION%%',
- description='Add inline tabbed content to your Sphinx documentation.',
- author='Pradyun Gedam',
- author_email='mail@pradyunsg.me',
- url='https://github.com/pradyunsg/sphinx-inline-tabs',
- packages=packages,
- package_data=package_data,
- package_dir=package_dir,
- install_requires=install_requires,
- extras_require=extras_require,
- python_requires='>=3.7',
- )