pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-backports py-backports: Add version 1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9353e35ec6be
branches:  trunk
changeset: 371772:9353e35ec6be
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Nov 22 10:47:34 2017 +0000

description:
py-backports: Add version 1.0

This backports namespace reserves a namespace beneath which we can happily
place all of the various features that we want to cut-and-paste from later
Python versions.

diffstat:

 devel/py-backports/DESCR             |  10 ++++++++++
 devel/py-backports/Makefile          |  30 ++++++++++++++++++++++++++++++
 devel/py-backports/PLIST             |   4 ++++
 devel/py-backports/files/__init__.py |   3 +++
 4 files changed, 47 insertions(+), 0 deletions(-)

diffs (63 lines):

diff -r fa6f819c5ede -r 9353e35ec6be devel/py-backports/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backports/DESCR  Wed Nov 22 10:47:34 2017 +0000
@@ -0,0 +1,10 @@
+This backports namespace reserves a namespace beneath which we can happily
+place all of the various features that we want to cut-and-paste from later
+Python versions. I hope that this will provide two benefits:
+
+1. It should provide greater sanity, and a bit more organization, in the
+   Package Index.
+2. When you are ready to port a Python application to a new version of Python,
+   you can search the code for any import statements that name a backports
+   package, and remove the backports for features that have now â??arrivedâ?? in
+   the version of Python to which you are upgrading.
diff -r fa6f819c5ede -r 9353e35ec6be devel/py-backports/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backports/Makefile       Wed Nov 22 10:47:34 2017 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2017/11/22 10:47:34 markd Exp $
+
+PKGNAME=       ${PYPKGPREFIX}-backports-1.0
+CATEGORIES=    devel python
+MASTER_SITES=  # empty
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.python.org/pypi/backports
+COMMENT=       Namespace for backported Python features
+LICENSE=       python-software-foundation
+
+WRKSRC=                ${WRKDIR}/bp
+PY_PATCHPLIST= yes
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+INSTALLATION_DIRS+=    ${PYSITELIB}/backports
+
+do-extract:
+       mkdir ${WRKDIR}/bp
+       ${CP} ${FILESDIR}/__init__.py ${WRKSRC}
+
+do-build:
+       cd ${WRKSRC}; ${PYTHONBIN} -m compileall .; ${PYTHONBIN} -O -m compileall .
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/__init__.* ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r fa6f819c5ede -r 9353e35ec6be devel/py-backports/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backports/PLIST  Wed Nov 22 10:47:34 2017 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/11/22 10:47:34 markd Exp $
+${PYSITELIB}/backports/__init__.py
+${PYSITELIB}/backports/__init__.pyc
+${PYSITELIB}/backports/__init__.pyo
diff -r fa6f819c5ede -r 9353e35ec6be devel/py-backports/files/__init__.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-backports/files/__init__.py      Wed Nov 22 10:47:34 2017 +0000
@@ -0,0 +1,3 @@
+# This is a Python "namespace package" http://www.python.org/dev/peps/pep-0382/
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)



Home | Main Index | Thread Index | Old Index