pkgsrc-WIP-changes archive

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

py27-virtualenv: add python 2.x version of virtualenv



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Mon May 2 11:04:50 2022 +0200
Changeset:	6d001d13c308699c556e6119dcc4805895ceee2d

Modified Files:
	Makefile
	syncserver-dependencies/Makefile
Added Files:
	py27-virtualenv/ALTERNATIVES
	py27-virtualenv/DESCR
	py27-virtualenv/Makefile
	py27-virtualenv/PLIST
	py27-virtualenv/distinfo

Log Message:
py27-virtualenv: add python 2.x version of virtualenv

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

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

diffstat:
 Makefile                         |  9 ++++++++
 py27-virtualenv/ALTERNATIVES     |  1 +
 py27-virtualenv/DESCR            | 22 ++++++++++++++++++++
 py27-virtualenv/Makefile         | 44 ++++++++++++++++++++++++++++++++++++++++
 py27-virtualenv/PLIST            | 19 +++++++++++++++++
 py27-virtualenv/distinfo         |  5 +++++
 syncserver-dependencies/Makefile |  2 +-
 7 files changed, 101 insertions(+), 1 deletion(-)

diffs:
diff --git a/Makefile b/Makefile
index 0dc9864dcc..de2c0b2a28 100644
--- a/Makefile
+++ b/Makefile
@@ -171,6 +171,7 @@ SUBDIR+=	ap2-macro
 SUBDIR+=	ap2-mpm-itk
 SUBDIR+=	ap2-passenger
 SUBDIR+=	ap2-zeroconf
+SUBDIR+=	apache-arrow
 SUBDIR+=	apache-commons-beanutils
 SUBDIR+=	apache-commons-codec
 SUBDIR+=	apache-commons-collections
@@ -1484,6 +1485,7 @@ SUBDIR+=	gwhois
 SUBDIR+=	gwyddion
 SUBDIR+=	gxconsole
 SUBDIR+=	gxmms2
+SUBDIR+=	gzip
 SUBDIR+=	h323plus
 SUBDIR+=	h8300-elf-binutils
 SUBDIR+=	h8300-elf-gcc
@@ -3565,6 +3567,7 @@ SUBDIR+=	py-chspy
 SUBDIR+=	py-ciabatta
 SUBDIR+=	py-cinfony
 SUBDIR+=	py-cito
+SUBDIR+=	py-cityhash
 SUBDIR+=	py-cli
 SUBDIR+=	py-cli_helpers
 SUBDIR+=	py-clickatell
@@ -3623,6 +3626,7 @@ SUBDIR+=	py-coverage-badge
 SUBDIR+=	py-coveralls
 SUBDIR+=	py-cppimport
 SUBDIR+=	py-cracklib
+SUBDIR+=	py-cramjam
 SUBDIR+=	py-crossbar
 SUBDIR+=	py-cryptography
 SUBDIR+=	py-cryptoim
@@ -3798,6 +3802,7 @@ SUBDIR+=	py-fastapi
 SUBDIR+=	py-fastaudio
 SUBDIR+=	py-fastavro
 SUBDIR+=	py-fastdtw
+SUBDIR+=	py-fastparquet
 SUBDIR+=	py-fatiando
 SUBDIR+=	py-fcn
 SUBDIR+=	py-fcsparser
@@ -4770,6 +4775,7 @@ SUBDIR+=	py-test-nbval
 SUBDIR+=	py-test-ordering
 SUBDIR+=	py-test-remotedata
 SUBDIR+=	py-test-repeat
+SUBDIR+=	py-test-vcr
 SUBDIR+=	py-testfixtures
 SUBDIR+=	py-testing-common-database
 SUBDIR+=	py-tex2pix
@@ -4853,6 +4859,7 @@ SUBDIR+=	py-validictory
 SUBDIR+=	py-vanguards
 SUBDIR+=	py-vanity
 SUBDIR+=	py-varify
+SUBDIR+=	py-vcrpy
 SUBDIR+=	py-vdirsyncer-git
 SUBDIR+=	py-vega_datasets
 SUBDIR+=	py-vegas
@@ -4939,6 +4946,7 @@ SUBDIR+=	py-zenity
 SUBDIR+=	py-zict
 SUBDIR+=	py-zlmdb
 SUBDIR+=	py-zmqrpc
+SUBDIR+=	py27-virtualenv
 SUBDIR+=	py34-html-docs
 SUBDIR+=	py35-html-docs
 SUBDIR+=	pydance
@@ -5496,6 +5504,7 @@ SUBDIR+=	tc-hasida-table
 SUBDIR+=	tcc
 SUBDIR+=	tcc-git
 SUBDIR+=	tcl-curl
+SUBDIR+=	tcl-expect
 SUBDIR+=	tcl-fossil
 SUBDIR+=	tcl-itcl3
 SUBDIR+=	tcl-iwidgets
diff --git a/py27-virtualenv/ALTERNATIVES b/py27-virtualenv/ALTERNATIVES
new file mode 100644
index 0000000000..5076279a84
--- /dev/null
+++ b/py27-virtualenv/ALTERNATIVES
@@ -0,0 +1 @@
+bin/virtualenv @PREFIX@/bin/virtualenv-@PYVERSSUFFIX@
diff --git a/py27-virtualenv/DESCR b/py27-virtualenv/DESCR
new file mode 100644
index 0000000000..1bcf917025
--- /dev/null
+++ b/py27-virtualenv/DESCR
@@ -0,0 +1,22 @@
+virtualenv is a tool to create isolated Python environments.
+
+The basic problem being addressed is one of dependencies and
+versions, and indirectly permissions. Imagine you have an application
+that needs version 1 of LibFoo, but another application requires
+version 2. How can you use both these applications? If you install
+everything into /usr/lib/python2.7/site-packages (or whatever your
+platform's standard location is), it's easy to end up in a situation
+where you unintentionally upgrade an application that shouldn't be
+upgraded.
+
+Or more generally, what if you want to install an application and
+leave it be? If an application works, any change in its libraries
+or the versions of those libraries can break the application.
+
+Also, what if you can't install packages into the global site-packages
+directory? For instance, on a shared host.
+
+In all these cases, virtualenv can help you. It creates an environment
+that has its own installation directories, that doesn't share
+libraries with other virtualenv environments (and optionally doesn't
+access the globally installed libraries either).
diff --git a/py27-virtualenv/Makefile b/py27-virtualenv/Makefile
new file mode 100644
index 0000000000..0141991f14
--- /dev/null
+++ b/py27-virtualenv/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.54 2022/04/29 23:17:52 wiz Exp $
+
+DISTNAME=	virtualenv-16.7.9
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	2
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/virtualenv/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://virtualenv.pypa.io/
+COMMENT=	Virtual Python Environment builder
+LICENSE=	mit
+
+TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=4.5.0:../../devel/py-coverage
+TEST_DEPENDS+=	${PYPKGPREFIX}-pypiserver-[0-9]*:../../net/py-pypiserver
+TEST_DEPENDS+=	${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+# does not support python 2.7
+#TEST_DEPENDS+=	${PYPKGPREFIX}-test-localserver-[0-9]*:../../devel/py-test-localserver
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-timeout>=1.3.0:../../devel/py-test-timeout
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
+
+PYTHON_VERSIONS_ACCEPTED=	27
+
+TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
+
+.include "../../lang/python/pyversion.mk"
+
+USE_PKG_RESOURCES=	yes
+
+USE_LANGUAGES=	# none
+
+REPLACE_PYTHON=	virtualenv.py
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} virtualenv virtualenv-${PYVERSSUFFIX} || ${TRUE}
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py27-virtualenv/PLIST b/py27-virtualenv/PLIST
new file mode 100644
index 0000000000..e78ff1c4e8
--- /dev/null
+++ b/py27-virtualenv/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.41 2020/01/23 22:59:42 wiz Exp $
+bin/virtualenv-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
+${PYSITELIB}/virtualenv.py
+${PYSITELIB}/virtualenv.pyc
+${PYSITELIB}/virtualenv.pyo
+${PYSITELIB}/virtualenv_support/__init__.py
+${PYSITELIB}/virtualenv_support/__init__.pyc
+${PYSITELIB}/virtualenv_support/__init__.pyo
+${PYSITELIB}/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl
+${PYSITELIB}/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl
+${PYSITELIB}/virtualenv_support/setuptools-42.0.2-py2.py3-none-any.whl
+${PYSITELIB}/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl
diff --git a/py27-virtualenv/distinfo b/py27-virtualenv/distinfo
new file mode 100644
index 0000000000..bb82d98104
--- /dev/null
+++ b/py27-virtualenv/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.43 2021/10/26 10:19:15 nia Exp $
+
+BLAKE2s (virtualenv-16.7.9.tar.gz) = e1fdf1a842e05d8b8fe381e5bc41c752fbb6041ac43c2f9a0fcdb55014fcd086
+SHA512 (virtualenv-16.7.9.tar.gz) = ba2d08ec3425929806506c4c33e48d250153b02bd454eb340ab959519dd82ede8b12f2d2ab839e2a8711f29695d3956a457a1ca366a3b4fb4fb26c4c8d48c6cd
+Size (virtualenv-16.7.9.tar.gz) = 5121717 bytes
diff --git a/syncserver-dependencies/Makefile b/syncserver-dependencies/Makefile
index a0349821e2..545d5a67cf 100644
--- a/syncserver-dependencies/Makefile
+++ b/syncserver-dependencies/Makefile
@@ -13,7 +13,7 @@ LICENSE=	public-domain
 USE_TOOLS+=	gmake:run
 
 DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
-#DEPENDS+=	${PYPKGPREFIX}-virtualenv-[0-9]*:../../devel/py-virtualenv
+DEPENDS+=	${PYPKGPREFIX}-virtualenv-[0-9]*:../../wip/py27-virtualenv
 DEPENDS+=	sqlite3-[0-9]*:../../databases/sqlite3
 
 META_PACKAGE=	yes


Home | Main Index | Thread Index | Old Index