pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-toolconfig: finish package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu May 4 11:35:25 2023 +0200
Changeset:	32d93f048e98b22b8c9c03bfafe4aa6a2da87861

Modified Files:
	py-toolconfig/Makefile
	py-toolconfig/PLIST
	py-toolconfig/distinfo
Added Files:
	py-toolconfig/patches/patch-pyproject.toml

Log Message:
py-toolconfig: finish package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=32d93f048e98b22b8c9c03bfafe4aa6a2da87861

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-toolconfig/Makefile                     | 21 +++++++++++++++-
 py-toolconfig/PLIST                        | 39 +++++++++++++++++++++++++++---
 py-toolconfig/distinfo                     |  1 +
 py-toolconfig/patches/patch-pyproject.toml | 24 ++++++++++++++++++
 4 files changed, 81 insertions(+), 4 deletions(-)

diffs:
diff --git a/py-toolconfig/Makefile b/py-toolconfig/Makefile
index 8e394804f1..de6d7f7ec8 100644
--- a/py-toolconfig/Makefile
+++ b/py-toolconfig/Makefile
@@ -10,11 +10,30 @@ HOMEPAGE=	https://github.com/bageljrkhanofemus/pytoolconfig
 COMMENT=	Python tool configuration
 LICENSE=	gnu-lgpl-v3
 
-# needs py-pdm to build
+DEPENDS+=	${PYPKGPREFIX}-packaging>=22.0:../../devel/py-packaging
+DEPENDS+=	${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
+DEPENDS+=	${PYPKGPREFIX}-platformdirs>=1.4.4:../../misc/py-platformdirs
+DEPENDS+=	${PYPKGPREFIX}-tabulate>=0.8.9:../../textproc/py-tabulate
+DEPENDS+=	${PYPKGPREFIX}-sphinx>=4.5.0:../../textproc/py-sphinx
+TOOL_DEPENDS+=	${PYPKGPREFIX}-pdm_backend-[0-9]*:../../devel/py-pdm_backend
+TEST_DEPENDS+=	${PYPKGPREFIX}-test>=7.2.0:../../devel/py-test
+TEST_DEPENDS+=	${PYPKGPREFIX}-mypy>=0.991:../../lang/py-mypy
 
 USE_LANGUAGES=	# none
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=	${PYPKGPREFIX}-tomli>=2.0.1:../../textproc/py-tomli
+.endif
+.if ${PYTHON_VERSION} < 308
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.4.0:../../devel/py-typing-extensions
+.endif
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-toolconfig/PLIST b/py-toolconfig/PLIST
index 92ba51a2d7..b5fe9bdf59 100644
--- a/py-toolconfig/PLIST
+++ b/py-toolconfig/PLIST
@@ -1,4 +1,37 @@
 @comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/usr/bin/make package"
-@comment TODO: 2. run "/usr/bin/make print-PLIST"
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/pytoolconfig/__init__.py
+${PYSITELIB}/pytoolconfig/__init__.pyc
+${PYSITELIB}/pytoolconfig/_version.py
+${PYSITELIB}/pytoolconfig/_version.pyc
+${PYSITELIB}/pytoolconfig/documentation.py
+${PYSITELIB}/pytoolconfig/documentation.pyc
+${PYSITELIB}/pytoolconfig/fields.py
+${PYSITELIB}/pytoolconfig/fields.pyc
+${PYSITELIB}/pytoolconfig/py.typed
+${PYSITELIB}/pytoolconfig/pytoolconfig.py
+${PYSITELIB}/pytoolconfig/pytoolconfig.pyc
+${PYSITELIB}/pytoolconfig/sources/__init__.py
+${PYSITELIB}/pytoolconfig/sources/__init__.pyc
+${PYSITELIB}/pytoolconfig/sources/ini.py
+${PYSITELIB}/pytoolconfig/sources/ini.pyc
+${PYSITELIB}/pytoolconfig/sources/pyproject.py
+${PYSITELIB}/pytoolconfig/sources/pyproject.pyc
+${PYSITELIB}/pytoolconfig/sources/pytool.py
+${PYSITELIB}/pytoolconfig/sources/pytool.pyc
+${PYSITELIB}/pytoolconfig/sources/setup_cfg.py
+${PYSITELIB}/pytoolconfig/sources/setup_cfg.pyc
+${PYSITELIB}/pytoolconfig/sources/source.py
+${PYSITELIB}/pytoolconfig/sources/source.pyc
+${PYSITELIB}/pytoolconfig/types.py
+${PYSITELIB}/pytoolconfig/types.pyc
+${PYSITELIB}/pytoolconfig/universal_config.py
+${PYSITELIB}/pytoolconfig/universal_config.pyc
+${PYSITELIB}/pytoolconfig/utils.py
+${PYSITELIB}/pytoolconfig/utils.pyc
diff --git a/py-toolconfig/distinfo b/py-toolconfig/distinfo
index 2dc387269b..05c985521b 100644
--- a/py-toolconfig/distinfo
+++ b/py-toolconfig/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
 BLAKE2s (pytoolconfig-1.2.5.tar.gz) = 2c479602ce62a5bc7afa12409827f0a27a73cb1bac44c767ecff6c24c6d5c196
 SHA512 (pytoolconfig-1.2.5.tar.gz) = 37753530a166d324ddef0c2e9f0c3d6b2f61252a18ff8037d530b339c8b817cde4087d14b6756690fe10002cbd3442776604ff064d7d16d34289ba859492c920
 Size (pytoolconfig-1.2.5.tar.gz) = 16322 bytes
+SHA1 (patch-pyproject.toml) = 7165d56a554b5183c9bfc79f3c6fa5a037c83550
diff --git a/py-toolconfig/patches/patch-pyproject.toml b/py-toolconfig/patches/patch-pyproject.toml
new file mode 100644
index 0000000000..7910f4c58f
--- /dev/null
+++ b/py-toolconfig/patches/patch-pyproject.toml
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Convert to pdm-pep517 replacement, pdm-backend.
+
+--- pyproject.toml.orig	2023-01-04 21:38:24.718939300 +0000
++++ pyproject.toml
+@@ -15,7 +15,7 @@ authors = [
+ version = "1.2.5"
+ 
+ [project.license]
+-file = "LGPL-3.0"
++file = "LICENSE"
+ 
+ [project.urls]
+ Homepage = "https://github.com/bageljrkhanofemus/pytoolconfig";
+@@ -75,6 +75,6 @@ strict = true
+ 
+ [build-system]
+ requires = [
+-    "pdm-pep517>=1.0.5",
++    "pdm-backend>=1.0.5",
+ ]
+-build-backend = "pdm.pep517.api"
++build-backend = "pdm.backend"


Home | Main Index | Thread Index | Old Index