pkgsrc-WIP-changes archive

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

py-pynetbox: finish package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu Jan 25 07:55:56 2024 +0100
Changeset:	54f8e8919791c01c292f495d7a1a43db812ab338

Modified Files:
	Makefile
	py-pynetbox/Makefile
	py-pynetbox/PLIST
	py-pynetbox/distinfo
Removed Files:
	py-pynetbox/TODO

Log Message:
py-pynetbox: finish package

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

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

diffstat:
 Makefile             |  1 +
 py-pynetbox/Makefile | 21 +++++++------------
 py-pynetbox/PLIST    | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 py-pynetbox/TODO     | 16 ---------------
 py-pynetbox/distinfo |  6 +++---
 5 files changed, 68 insertions(+), 33 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index 1de10afbdd..6d96e5f3d4 100644
--- a/Makefile
+++ b/Makefile
@@ -4250,6 +4250,7 @@ SUBDIR+=	py-pymdown-extensions
 SUBDIR+=	py-pymigemo
 SUBDIR+=	py-pymvpa
 SUBDIR+=	py-pynest2d
+SUBDIR+=	py-pynetbox
 SUBDIR+=	py-pynfo
 SUBDIR+=	py-pynitrokey
 SUBDIR+=	py-pynn
diff --git a/py-pynetbox/Makefile b/py-pynetbox/Makefile
index 8ad03906e2..0c34018c8b 100644
--- a/py-pynetbox/Makefile
+++ b/py-pynetbox/Makefile
@@ -3,28 +3,21 @@
 DISTNAME=	pynetbox-7.3.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net
-MASTER_SITES=	${MASTER_SITE_GITHUB:=netbox-community/}
-GITHUB_PROJECT=	pynetbox
-GITHUB_TAG=	v${PKGVERSION_NOREV}
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pynetbox/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://github.com/netbox-community/pynetbox
 COMMENT=	Python API client library for NetBox
 LICENSE=	apache-2.0
 
-EGG_NAME=	${DISTNAME}
-
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=0:../../devel/py-setuptools_scm
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 DEPENDS+=	${PYPKGPREFIX}-requests>2.20.0<3.0:../../devel/py-requests
 DEPENDS+=	${PYPKGPREFIX}-packaging<24.0:../../devel/py-packaging
+# also needs unpackaged docker_ip
+TEST_DEPENDS+=	${PYPKGPREFIX}-yaml>=0:../../textproc/py-yaml
 
-# Needed for installation:
-#DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
-#DEPENDS+=	${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
-#TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm->=0:../../devel/py-setuptools_scm
-
-PYTHON_VERSIONED_DEPENDENCIES=	setuptools_scm
+PYTHON_VERSIONS_INCOMPATIBLE=	27
 
-.include "../../lang/python/extension.mk"
-.include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-pynetbox/PLIST b/py-pynetbox/PLIST
index e69de29bb2..a2bfbbcd90 100644
--- a/py-pynetbox/PLIST
+++ b/py-pynetbox/PLIST
@@ -0,0 +1,57 @@
+@comment $NetBSD$
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/pynetbox/__init__.py
+${PYSITELIB}/pynetbox/__init__.pyc
+${PYSITELIB}/pynetbox/__init__.pyo
+${PYSITELIB}/pynetbox/core/__init__.py
+${PYSITELIB}/pynetbox/core/__init__.pyc
+${PYSITELIB}/pynetbox/core/__init__.pyo
+${PYSITELIB}/pynetbox/core/api.py
+${PYSITELIB}/pynetbox/core/api.pyc
+${PYSITELIB}/pynetbox/core/api.pyo
+${PYSITELIB}/pynetbox/core/app.py
+${PYSITELIB}/pynetbox/core/app.pyc
+${PYSITELIB}/pynetbox/core/app.pyo
+${PYSITELIB}/pynetbox/core/endpoint.py
+${PYSITELIB}/pynetbox/core/endpoint.pyc
+${PYSITELIB}/pynetbox/core/endpoint.pyo
+${PYSITELIB}/pynetbox/core/query.py
+${PYSITELIB}/pynetbox/core/query.pyc
+${PYSITELIB}/pynetbox/core/query.pyo
+${PYSITELIB}/pynetbox/core/response.py
+${PYSITELIB}/pynetbox/core/response.pyc
+${PYSITELIB}/pynetbox/core/response.pyo
+${PYSITELIB}/pynetbox/core/util.py
+${PYSITELIB}/pynetbox/core/util.pyc
+${PYSITELIB}/pynetbox/core/util.pyo
+${PYSITELIB}/pynetbox/models/__init__.py
+${PYSITELIB}/pynetbox/models/__init__.pyc
+${PYSITELIB}/pynetbox/models/__init__.pyo
+${PYSITELIB}/pynetbox/models/circuits.py
+${PYSITELIB}/pynetbox/models/circuits.pyc
+${PYSITELIB}/pynetbox/models/circuits.pyo
+${PYSITELIB}/pynetbox/models/dcim.py
+${PYSITELIB}/pynetbox/models/dcim.pyc
+${PYSITELIB}/pynetbox/models/dcim.pyo
+${PYSITELIB}/pynetbox/models/extras.py
+${PYSITELIB}/pynetbox/models/extras.pyc
+${PYSITELIB}/pynetbox/models/extras.pyo
+${PYSITELIB}/pynetbox/models/ipam.py
+${PYSITELIB}/pynetbox/models/ipam.pyc
+${PYSITELIB}/pynetbox/models/ipam.pyo
+${PYSITELIB}/pynetbox/models/mapper.py
+${PYSITELIB}/pynetbox/models/mapper.pyc
+${PYSITELIB}/pynetbox/models/mapper.pyo
+${PYSITELIB}/pynetbox/models/users.py
+${PYSITELIB}/pynetbox/models/users.pyc
+${PYSITELIB}/pynetbox/models/users.pyo
+${PYSITELIB}/pynetbox/models/virtualization.py
+${PYSITELIB}/pynetbox/models/virtualization.pyc
+${PYSITELIB}/pynetbox/models/virtualization.pyo
+${PYSITELIB}/pynetbox/models/wireless.py
+${PYSITELIB}/pynetbox/models/wireless.pyc
+${PYSITELIB}/pynetbox/models/wireless.pyo
diff --git a/py-pynetbox/TODO b/py-pynetbox/TODO
deleted file mode 100644
index 41de919dcb..0000000000
--- a/py-pynetbox/TODO
+++ /dev/null
@@ -1,16 +0,0 @@
-Figure out how this is supposed to be built / installed.
-
-The package has a setup.py file which contains
-    setup_requires=["setuptools_scm"],
-and after adding it as a DEPENDS, I now get an error message
-saying
-
-  File "/usr/pkg/lib/python3.10/site-packages/setuptools_scm/__init__.py", line 109, in _version_missing
-    raise LookupError(
-LookupError: setuptools-scm was unable to detect version for /usr/pkgsrc/wip/py-pynetbox/work/pynetbox-7.3.3.
-
-Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
-
-For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
-
-But ... what if anything of this do we follow in pkgsrc?
diff --git a/py-pynetbox/distinfo b/py-pynetbox/distinfo
index ba1a87ad14..9d498cc230 100644
--- a/py-pynetbox/distinfo
+++ b/py-pynetbox/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (pynetbox-7.3.3.tar.gz) = 8be837bbd6075f4eb4bb5789da5db97154f0a6a53ea8fab4bf7b542a29b034d1
-SHA512 (pynetbox-7.3.3.tar.gz) = 6429ef378dbae875a26ee80cc9e7868ae0812f6758249410447f65b033eb61de7679d83d6925ec866af2ee3aa7ccddd380a997751912a7073553030ffe01c79c
-Size (pynetbox-7.3.3.tar.gz) = 64602 bytes
+BLAKE2s (pynetbox-7.3.3.tar.gz) = 43c3b09483a160e48abf25065cd17e42a3386a75bd30d431826e284781f1f177
+SHA512 (pynetbox-7.3.3.tar.gz) = a1844b3401359474f883179a3e69456dc2ed79bacb2c7384b047a211741ccf4e9ccb542a3a2bd2a6e01ef0447a87d6456b4db177655dc7ad19398f9c0454d95e
+Size (pynetbox-7.3.3.tar.gz) = 67768 bytes


Home | Main Index | Thread Index | Old Index