From nobody Sun Sep 08 18:45:44 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X1zS92TSfz5VTk8; Sun, 08 Sep 2024 18:45:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X1zS90D58z3xwY; Sun, 8 Sep 2024 18:45:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725821145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xc3rJUfUySY0sa2m33olSfnyL7d4dnr9dWdayi/bAEU=; b=xVOCPjmR3g5DUiUaq5t+DMVGvQz2In+y43VNtsNxIdDFEn0bSyK2jizOS//wUSdx4qyWki 7+Rtice+/Zs7x250xUEp0+gUbC2AjpRHQ3wsmTKtynfmYWIkZrqFo4tXIC9YwhRV1KCMwg NFO6jQtgS7l817coKOtbjxjp1nhOQ5B9yMbFposzvFsg/ZCb2Sr/Ex1ReT8IvMqSR5o8nK 3q5KTn9D+bMneQ6dh6xO/pF8ejlHgkKTkquos23dtjd3Efczi9oE4cJFHLRrnyr7st2mhh q5kOmTsH4Nbx5zAso42ihb0KvmB+gLni+BXXhHBaivwo86T9WLrCHvDrrU2/iQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725821145; a=rsa-sha256; cv=none; b=Iz8mhhh+t80XQxZpfQYMxG+Sl+vYughNBFT9X2igIJt9cJxFB9Xvrc19anNctj4b1gzt+A 1SDhHXYOzHZvciU64vrM/3b+6qvxLCHykuTAcatQWCCM9f5zx4xYNQWMP2XxIRNoaTF+l+ QRHN5ME1jRP+0JqbOtsxTYWjohGlyPiMM9w3th4dH7RyDt8yw0xCTm+wyH07UQA+aORty1 sfl4ZwEDp6YpvDk7sHFLXyit0Y4kz4cdU7UCrhsdFvxsWKnh3kHqREmj3Zfz530PlsmdRb XqCq3ZrQd1xioTYM6Zh9VMgfbVGR2vJ+7ZkjzcXJEV8/RqQ1ngcMPZumx/TJtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725821145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xc3rJUfUySY0sa2m33olSfnyL7d4dnr9dWdayi/bAEU=; b=G3T5IVu8cMn5PP78yNBxJBHxXfuEK4vWm3qkrpOepkXz9+DFqfYg5jKYb7Nsr7ZuiknZkW cxi+92xSjoC5asufrvJQrZie9H2XnaU3jNnvN/CqAGZ/HWcAdfqtpT5ZwtsTnqtVHTr3Sm TCOARMxu7y3ge1c2mB8bSLzYKzVsU0cNAPKep4xWO9FYxfAsZFSCNnNXggOYehdOmt1h4V QIZViKYj95nJ6DJ7X1lxdA9Fzxd6vAFpkEg76BWbBI+FBVhywDJqEVneMluI9ZfzuqLvkT ogxxuNTM/880DltHtz4CBa6595M5LbMTGarXazhEhh/OkBB2/iRlK5jjc8ybkg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X1zS86LXfzWj9; Sun, 8 Sep 2024 18:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 488IjiiM041476; Sun, 8 Sep 2024 18:45:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 488Iji8i041473; Sun, 8 Sep 2024 18:45:44 GMT (envelope-from git) Date: Sun, 8 Sep 2024 18:45:44 GMT Message-Id: <202409081845.488Iji8i041473@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: fc67766bbad6 - main - textproc/py-sphinx-book-theme: Convert to USE_PYTHON=pep517 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc67766bbad638293e4204da08d8531bc0ca169b Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc67766bbad638293e4204da08d8531bc0ca169b commit fc67766bbad638293e4204da08d8531bc0ca169b Author: Po-Chuan Hsieh AuthorDate: 2024-09-08 18:21:30 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-08 18:37:48 +0000 textproc/py-sphinx-book-theme: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change Upstream builds this port with sphinx-theme-builder. However, it does not work on FreeBSD yet since the nodeenv would try to download pre-built node.js binary executable which is unavailable for FreeBSD. Therefore, I use flit-core with pre-built static files instead. --- textproc/py-sphinx-book-theme/Makefile | 7 ++- .../files/patch-pyproject.toml | 11 ++++ textproc/py-sphinx-book-theme/files/setup.py | 69 ---------------------- textproc/py-sphinx-book-theme/pkg-plist | 66 --------------------- 4 files changed, 15 insertions(+), 138 deletions(-) diff --git a/textproc/py-sphinx-book-theme/Makefile b/textproc/py-sphinx-book-theme/Makefile index 1a76a20d81d4..7c680b2943ac 100644 --- a/textproc/py-sphinx-book-theme/Makefile +++ b/textproc/py-sphinx-book-theme/Makefile @@ -1,10 +1,10 @@ PORTNAME= sphinx-book-theme PORTVERSION= 1.1.3 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI \ LOCAL/sunpoet:static PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -#DISTNAME= sphinx_book_theme-${PORTVERSION} DISTFILES= sphinx_book_theme-${PORTVERSION}${EXTRACT_SUFX} \ sphinx_book_theme-${PORTVERSION}-static${EXTRACT_SUFX}:static @@ -16,17 +16,18 @@ WWW= https://sphinx-book-theme.readthedocs.io/en/stable/ \ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.9.0:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydata-sphinx-theme>=0.15.2:textproc/py-pydata-sphinx-theme@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx>=5,1:textproc/py-sphinx@${PY_FLAVOR} \ USES= python:3.9+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes WRKSRC= ${WRKDIR}/sphinx_book_theme-${PORTVERSION} post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + @${FIND} ${WRKSRC} -name .gitignore -delete post-install: cd ${WRKDIR}/static/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinx_book_theme/ diff --git a/textproc/py-sphinx-book-theme/files/patch-pyproject.toml b/textproc/py-sphinx-book-theme/files/patch-pyproject.toml new file mode 100644 index 000000000000..321c4bfc005c --- /dev/null +++ b/textproc/py-sphinx-book-theme/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2024-06-12 14:08:03 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-requires = ["sphinx-theme-builder >= 0.2.0a7"] +-build-backend = "sphinx_theme_builder" ++requires = ["flit-core >= 3.9.0"] ++build-backend = "flit_core.buildapi" + + [tool.sphinx-theme-builder] + node-version = "16.13.2" diff --git a/textproc/py-sphinx-book-theme/files/setup.py b/textproc/py-sphinx-book-theme/files/setup.py deleted file mode 100644 index 5e8b6a744045..000000000000 --- a/textproc/py-sphinx-book-theme/files/setup.py +++ /dev/null @@ -1,69 +0,0 @@ -from setuptools import setup - -setup( - name = 'sphinx-book-theme', - version = '%%PORTVERSION%%', - description = 'A clean book theme for scientific explanations and documentation with Sphinx', - maintainer = 'Executable Books Team', - maintainer_email = 'executablebooks@gmail.com', - url = None, - packages = [ - 'sphinx_book_theme', - 'sphinx_book_theme.header_buttons', - ], - package_dir = {'': 'src'}, - package_data = {'': ['*']}, - install_requires = [ - 'sphinx>=5', - 'pydata-sphinx-theme>=0.15.2', - ], - extras_require = { - 'code_style': [ - 'pre-commit' - ], - 'doc': [ - 'ablog', - 'ipywidgets', - 'folium', - 'numpy', - 'matplotlib', - 'numpydoc', - 'myst-nb', - 'nbclient', - 'pandas', - 'plotly', - 'sphinx-design', - 'sphinx-examples', - 'sphinx-copybutton', - 'sphinx-tabs' - 'sphinx-togglebutton', - 'sphinx-thebe', - 'sphinxcontrib-bibtex', - 'sphinxcontrib-youtube', - 'sphinxext-opengraph', - ], - 'test': [ - 'beautifulsoup4', - 'coverage', - 'defusedxml', - 'myst-nb', - 'pytest', - 'pytest-cov', - 'pytest-regressions', - 'sphinx_thebe', - ], - }, - entry_points = { - 'sphinx.html_themes': ['sphinx_book_theme = sphinx_book_theme'], - }, - classifiers = [ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python :: 3', - 'Framework :: Sphinx', - 'Framework :: Sphinx :: Theme', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - ], - license = 'BSD License', - python_requires = '>= 3.9', -) diff --git a/textproc/py-sphinx-book-theme/pkg-plist b/textproc/py-sphinx-book-theme/pkg-plist index 90ecddc28531..64c292d88b87 100644 --- a/textproc/py-sphinx-book-theme/pkg-plist +++ b/textproc/py-sphinx-book-theme/pkg-plist @@ -1,67 +1,3 @@ -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/scripts/index.js -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/abstracts/_mixins.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/abstracts/_variables.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/base/_base.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/base/_print.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/base/_typography.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/components/_back-to-top.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/components/_icon-links.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/components/_logo.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/components/_search.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/content/_code.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/content/_images.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/content/_margin.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/content/_notebooks.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/content/_quotes.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/extensions/_comments.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/extensions/_thebe.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/index.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_announcement.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_article-container.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_article.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_footer-article.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_footer-content.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_header-article.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_header-primary.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_sidebar-primary.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/styles/sections/_sidebar-secondary.scss -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/README.md -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/By the.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/By.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Contents.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Copyright.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Download notebook file.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Download source file.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Download this page.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Edit this page.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Fullscreen mode.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Last updated on.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Launch.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Open an issue.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Print to PDF.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Source repository.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Sphinx Book Theme.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Theme by the.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/Toggle navigation.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/next page.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/open issue.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/previous page.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/repository.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/assets/translations/jsons/suggest edit.json -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/article-header-buttons.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/author.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/extra-footer.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/page-toc.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/sbt-sidebar-nav.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/toggle-primary-sidebar.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/components/toggle-secondary-sidebar.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/layout.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/sections/footer-content.html -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_binder.svg -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_colab.png -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_deepnote.svg -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_jupyterhub.svg %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ar/LC_MESSAGES/booktheme.mo %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ar/LC_MESSAGES/booktheme.po %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/bg/LC_MESSAGES/booktheme.mo @@ -152,9 +88,7 @@ %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/zh_CN/LC_MESSAGES/booktheme.po %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/zh_TW/LC_MESSAGES/booktheme.mo %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/zh_TW/LC_MESSAGES/booktheme.po -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/sbt-webpack-macros.html %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/scripts/sphinx-book-theme.js %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/scripts/sphinx-book-theme.js.map %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/styles/sphinx-book-theme.css %%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/styles/sphinx-book-theme.css.map -%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/theme.conf