git: 781844a56438 - main - textproc/py-sphinx-autoapi: Update to 1.8.0

Danilo G. Baio dbaio at FreeBSD.org
Sun Apr 18 13:16:21 UTC 2021


The branch main has been updated by dbaio:

URL: https://cgit.FreeBSD.org/ports/commit/?id=781844a564381c5e241e6c05b4aea48ccdf01cd4

commit 781844a564381c5e241e6c05b4aea48ccdf01cd4
Author:     Danilo G. Baio <dbaio at FreeBSD.org>
AuthorDate: 2021-04-18 13:06:12 +0000
Commit:     Danilo G. Baio <dbaio at FreeBSD.org>
CommitDate: 2021-04-18 13:08:34 +0000

    textproc/py-sphinx-autoapi: Update to 1.8.0
    
    Changelog:  https://github.com/readthedocs/sphinx-autoapi/blob/v1.8.0/CHANGELOG.rst
    
    Add setup.py build workaround because upstream switched to PEP-517
    packaging.
    
    PR:      255146
    Submitted by:  Andreas Bilke <andreas at bilke.org> (maintainer) - based on
---
 textproc/py-sphinx-autoapi/Makefile             | 5 ++++-
 textproc/py-sphinx-autoapi/distinfo             | 6 +++---
 textproc/py-sphinx-autoapi/files/patch-setup.py | 8 ++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/textproc/py-sphinx-autoapi/Makefile b/textproc/py-sphinx-autoapi/Makefile
index e44fcb574783..0342e45cfc17 100644
--- a/textproc/py-sphinx-autoapi/Makefile
+++ b/textproc/py-sphinx-autoapi/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	sphinx-autoapi
-PORTVERSION=	1.7.0
+PORTVERSION=	1.8.0
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,6 +10,9 @@ COMMENT=	Sphinx API documentation generator
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.rst
 
+# Upstream switched to PEP-517 packaging
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.15.0:devel/py-setuptools_scm@${PY_FLAVOR}
+
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=3.0,1:textproc/py-sphinx@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}astroid>=2.4:devel/py-astroid@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
diff --git a/textproc/py-sphinx-autoapi/distinfo b/textproc/py-sphinx-autoapi/distinfo
index 7878ac1f0112..f29b1a03358c 100644
--- a/textproc/py-sphinx-autoapi/distinfo
+++ b/textproc/py-sphinx-autoapi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1613205264
-SHA256 (sphinx-autoapi-1.7.0.tar.gz) = 48caa054a99c21156e9a1d26559281dc27f86ab8ef8bb6ef160f8cd9f4a0053d
-SIZE (sphinx-autoapi-1.7.0.tar.gz) = 42148159
+TIMESTAMP = 1618749209
+SHA256 (sphinx-autoapi-1.8.0.tar.gz) = 51ff98016e51edfa98c03bb829a9843a4add37184c199bcd95b6b1da8cc6a74c
+SIZE (sphinx-autoapi-1.8.0.tar.gz) = 42150679
diff --git a/textproc/py-sphinx-autoapi/files/patch-setup.py b/textproc/py-sphinx-autoapi/files/patch-setup.py
new file mode 100644
index 000000000000..135bf01395a9
--- /dev/null
+++ b/textproc/py-sphinx-autoapi/files/patch-setup.py
@@ -0,0 +1,8 @@
+--- setup.py.orig	2021-04-05 03:23:24 UTC
++++ setup.py
+@@ -1,2 +1,4 @@
++# Upstream switched to PEP-517 packaging
+ from setuptools import setup
+-setup()
++if __name__ == "__main__":
++    setup(use_scm_version=True)


More information about the dev-commits-ports-all mailing list