pkgsrc-WIP-changes archive

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

wip/py-pip-api: import py-pip-api-0.0.23



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Tue Nov 9 20:38:52 2021 +0100
Changeset:	07bb936f2eae897ed6280a6934c4917b416f16ab

Added Files:
	py-pip-api/DESCR
	py-pip-api/Makefile
	py-pip-api/PLIST
	py-pip-api/distinfo

Log Message:
wip/py-pip-api: import py-pip-api-0.0.23

Since pip is a command-line-tool, it does not have an official,
supported, importable API.

However, this does not mean that people haven't tried to import
pip, usually to end up with much headache when pip's maintainers
do routine refactoring.

This project attempts to provide an importable pip API, which is
fully compliant with the recommended method of using pip from your
program.

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

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

diffstat:
 py-pip-api/DESCR    | 10 ++++++++
 py-pip-api/Makefile | 27 +++++++++++++++++++++
 py-pip-api/PLIST    | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 py-pip-api/distinfo |  5 ++++
 4 files changed, 112 insertions(+)

diffs:
diff --git a/py-pip-api/DESCR b/py-pip-api/DESCR
new file mode 100644
index 0000000000..c5645e03fa
--- /dev/null
+++ b/py-pip-api/DESCR
@@ -0,0 +1,10 @@
+Since pip is a command-line-tool, it does not have an official,
+supported, importable API.
+
+However, this does not mean that people haven't tried to import
+pip, usually to end up with much headache when pip's maintainers
+do routine refactoring.
+
+This project attempts to provide an importable pip API, which is
+fully compliant with the recommended method of using pip from your
+program.
diff --git a/py-pip-api/Makefile b/py-pip-api/Makefile
new file mode 100644
index 0000000000..1c1ec0e144
--- /dev/null
+++ b/py-pip-api/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.45 2020/12/18 09:03:43 adam Exp $
+
+DISTNAME=	pip-api-0.0.23
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	security python
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pip-api/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://pypi.org/project/pip-audit/
+COMMENT=	Unofficial, importable pip API
+LICENSE=	apache-2.0
+
+DEPENDS+=	${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+=	${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
+TEST_DEPENDS+=	${PYPKGPREFIX}-virtualenv-[0-9]*:../../devel/py-virtualenv
+
+USE_LANGUAGES=	# none
+
+# does not fully work, needs pip-api installed first
+# if this is done, as of 0.0.23:
+# 27 passed, 5 warnings, 15 errors
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-pip-api/PLIST b/py-pip-api/PLIST
new file mode 100644
index 0000000000..57cc7dd993
--- /dev/null
+++ b/py-pip-api/PLIST
@@ -0,0 +1,70 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pip_api/__init__.py
+${PYSITELIB}/pip_api/__init__.pyc
+${PYSITELIB}/pip_api/__init__.pyo
+${PYSITELIB}/pip_api/_call.py
+${PYSITELIB}/pip_api/_call.pyc
+${PYSITELIB}/pip_api/_call.pyo
+${PYSITELIB}/pip_api/_hash.py
+${PYSITELIB}/pip_api/_hash.pyc
+${PYSITELIB}/pip_api/_hash.pyo
+${PYSITELIB}/pip_api/_installed_distributions.py
+${PYSITELIB}/pip_api/_installed_distributions.pyc
+${PYSITELIB}/pip_api/_installed_distributions.pyo
+${PYSITELIB}/pip_api/_parse_requirements.py
+${PYSITELIB}/pip_api/_parse_requirements.pyc
+${PYSITELIB}/pip_api/_parse_requirements.pyo
+${PYSITELIB}/pip_api/_pep650.py
+${PYSITELIB}/pip_api/_pep650.pyc
+${PYSITELIB}/pip_api/_pep650.pyo
+${PYSITELIB}/pip_api/_vendor/__init__.py
+${PYSITELIB}/pip_api/_vendor/__init__.pyc
+${PYSITELIB}/pip_api/_vendor/__init__.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/__about__.py
+${PYSITELIB}/pip_api/_vendor/packaging/__about__.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/__about__.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/__init__.py
+${PYSITELIB}/pip_api/_vendor/packaging/__init__.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/__init__.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/_manylinux.py
+${PYSITELIB}/pip_api/_vendor/packaging/_manylinux.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/_manylinux.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/_musllinux.py
+${PYSITELIB}/pip_api/_vendor/packaging/_musllinux.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/_musllinux.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/_structures.py
+${PYSITELIB}/pip_api/_vendor/packaging/_structures.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/_structures.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/markers.py
+${PYSITELIB}/pip_api/_vendor/packaging/markers.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/markers.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/requirements.py
+${PYSITELIB}/pip_api/_vendor/packaging/requirements.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/requirements.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/specifiers.py
+${PYSITELIB}/pip_api/_vendor/packaging/specifiers.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/specifiers.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/tags.py
+${PYSITELIB}/pip_api/_vendor/packaging/tags.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/tags.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/utils.py
+${PYSITELIB}/pip_api/_vendor/packaging/utils.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/utils.pyo
+${PYSITELIB}/pip_api/_vendor/packaging/version.py
+${PYSITELIB}/pip_api/_vendor/packaging/version.pyc
+${PYSITELIB}/pip_api/_vendor/packaging/version.pyo
+${PYSITELIB}/pip_api/_vendor/pyparsing.py
+${PYSITELIB}/pip_api/_vendor/pyparsing.pyc
+${PYSITELIB}/pip_api/_vendor/pyparsing.pyo
+${PYSITELIB}/pip_api/_version.py
+${PYSITELIB}/pip_api/_version.pyc
+${PYSITELIB}/pip_api/_version.pyo
+${PYSITELIB}/pip_api/exceptions.py
+${PYSITELIB}/pip_api/exceptions.pyc
+${PYSITELIB}/pip_api/exceptions.pyo
+${PYSITELIB}/pip_api/py.typed
diff --git a/py-pip-api/distinfo b/py-pip-api/distinfo
new file mode 100644
index 0000000000..ab5131bc5a
--- /dev/null
+++ b/py-pip-api/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.40 2021/10/26 10:18:45 nia Exp $
+
+BLAKE2s (pip-api-0.0.23.tar.gz) = a7ba4998ef53bcc23b469453c9918ad110668c9f15b1e29cf97ddb2b2847be15
+SHA512 (pip-api-0.0.23.tar.gz) = 68ac25fc8c3f4dccbd9895900141291aab033a67def7b2da333331b96e3dcfd06ebda90ebe679938e8d126fa6e108f3c7c0805c9e0bf46af55da2f14894d680c
+Size (pip-api-0.0.23.tar.gz) = 106534 bytes


Home | Main Index | Thread Index | Old Index