Files
ports/textproc/py-sphinx-autoapi/files/patch-setup.py
Danilo G. Baio 781844a564 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@bilke.org> (maintainer) - based on
2021-04-18 10:08:34 -03:00

9 lines
213 B
Python

--- 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)