pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-backports



Module Name:    pkgsrc
Committed By:   markd
Date:           Wed Nov 22 10:47:34 UTC 2017

Added Files:
        pkgsrc/devel/py-backports: DESCR Makefile PLIST
        pkgsrc/devel/py-backports/files: __init__.py

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-backports/DESCR \
    pkgsrc/devel/py-backports/Makefile pkgsrc/devel/py-backports/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-backports/files/__init__.py

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

Added files:

Index: pkgsrc/devel/py-backports/DESCR
diff -u /dev/null pkgsrc/devel/py-backports/DESCR:1.1
--- /dev/null   Wed Nov 22 10:47:34 2017
+++ pkgsrc/devel/py-backports/DESCR     Wed Nov 22 10:47:34 2017
@@ -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.
Index: pkgsrc/devel/py-backports/Makefile
diff -u /dev/null pkgsrc/devel/py-backports/Makefile:1.1
--- /dev/null   Wed Nov 22 10:47:34 2017
+++ pkgsrc/devel/py-backports/Makefile  Wed Nov 22 10:47:34 2017
@@ -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"
Index: pkgsrc/devel/py-backports/PLIST
diff -u /dev/null pkgsrc/devel/py-backports/PLIST:1.1
--- /dev/null   Wed Nov 22 10:47:34 2017
+++ pkgsrc/devel/py-backports/PLIST     Wed Nov 22 10:47:34 2017
@@ -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

Index: pkgsrc/devel/py-backports/files/__init__.py
diff -u /dev/null pkgsrc/devel/py-backports/files/__init__.py:1.1
--- /dev/null   Wed Nov 22 10:47:34 2017
+++ pkgsrc/devel/py-backports/files/__init__.py Wed Nov 22 10:47:34 2017
@@ -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