[Midnightbsd-cvs] mports [24246] trunk/devel: add pip port
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 8 13:14:35 EDT 2018
Revision: 24246
http://svnweb.midnightbsd.org/mports/?rev=24246
Author: laffer1
Date: 2018-09-08 13:14:34 -0400 (Sat, 08 Sep 2018)
Log Message:
-----------
add pip port
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/py-pip/
trunk/devel/py-pip/Makefile
trunk/devel/py-pip/Makefile.bak
trunk/devel/py-pip/distinfo
trunk/devel/py-pip/files/
trunk/devel/py-pip/files/patch-setup.cfg
trunk/devel/py-pip/files/patch-setup.py
trunk/devel/py-pip/pkg-descr
trunk/devel/py-pip/pkg-message
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2018-09-08 17:10:31 UTC (rev 24245)
+++ trunk/devel/Makefile 2018-09-08 17:14:34 UTC (rev 24246)
@@ -517,6 +517,7 @@
SUBDIR += py-parsedatetime
SUBDIR += py-parsing
SUBDIR += py-pbr
+SUBDIR += py-pip
SUBDIR += py-ply
SUBDIR += py-pkgconfig
SUBDIR += py-pyasn1
Added: trunk/devel/py-pip/Makefile
===================================================================
--- trunk/devel/py-pip/Makefile (rev 0)
+++ trunk/devel/py-pip/Makefile 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,53 @@
+# $MidnightBSD$
+
+PORTNAME= pip
+PORTVERSION= 9.0.3
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Tool for installing and managing Python packages
+
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+# Tests also need bzr, git, otherwise they fail
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}pytest-capturelog>0:devel/py-pytest-capturelog \
+ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist \
+ ${PYTHON_PKGNAMEPREFIX}virtualenv>=1.10:devel/py-virtualenv \
+ ${PYTHON_PKGNAMEPREFIX}scripttest>=1.3:devel/py-scripttest \
+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
+ ${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend \
+ ${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun \
+ git>0:devel/git \
+ bzr>0:devel/bzr
+
+OPTIONS_DEFINE= DOCS
+
+DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx
+DOCS_PORTDOCS= *
+DOCS_VARS= PYDISTUTILS_BUILD_TARGET=build_sphinx \
+ PYDISTUTILS_BUILDARGS="-n --all-files --fresh-env"
+
+NO_ARCH= yes
+USES= python shebangfix
+USE_GITHUB= yes
+USE_PYTHON= autoplist concurrent distutils
+
+SHEBANG_FILES= pip/__init__.py
+
+GH_ACCOUNT= pypa
+
+NO_ARCH= yes
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/build/sphinx/html && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
+
+do-test:
+ cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/py-pip/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/Makefile.bak
===================================================================
--- trunk/devel/py-pip/Makefile.bak (rev 0)
+++ trunk/devel/py-pip/Makefile.bak 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,53 @@
+# $MidnightBSD$
+
+PORTNAME= pip
+PORTVERSION= 9.0.3
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Tool for installing and managing Python packages
+
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+# Tests also need bzr, git, otherwise they fail
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-capturelog>0:devel/py-pytest-capturelog@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}virtualenv>=1.10:devel/py-virtualenv@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scripttest>=1.3:devel/py-scripttest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \
+ git>0:devel/git \
+ bzr>0:devel/bzr
+
+OPTIONS_DEFINE= DOCS
+
+DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
+DOCS_PORTDOCS= *
+DOCS_VARS= PYDISTUTILS_BUILD_TARGET=build_sphinx \
+ PYDISTUTILS_BUILDARGS="-n --all-files --fresh-env"
+
+NO_ARCH= yes
+USES= python shebangfix
+USE_GITHUB= yes
+USE_PYTHON= autoplist concurrent distutils
+
+SHEBANG_FILES= pip/__init__.py
+
+GH_ACCOUNT= pypa
+
+NO_ARCH= yes
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/build/sphinx/html && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
+
+do-test:
+ cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/py-pip/Makefile.bak
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/distinfo
===================================================================
--- trunk/devel/py-pip/distinfo (rev 0)
+++ trunk/devel/py-pip/distinfo 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1536426814
+SHA256 (pip-9.0.3_GH0.tar.gz) = a582a1b8649828b57c23788879bd5263b9ff4f12083c52fb73ff20ca3531056d
+SIZE (pip-9.0.3_GH0.tar.gz) = 6249079
Property changes on: trunk/devel/py-pip/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/files/patch-setup.cfg
===================================================================
--- trunk/devel/py-pip/files/patch-setup.cfg (rev 0)
+++ trunk/devel/py-pip/files/patch-setup.cfg 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,9 @@
+--- setup.cfg.orig 2015-08-22 22:46:55 UTC
++++ setup.cfg
+@@ -1,5 +1,6 @@
+ [pytest]
+ addopts = --ignore pip/_vendor --ignore tests/tests_cache
++norecursedirs = .tox build dist node_modules *.egg-info
+
+ [wheel]
+ universal=1
Property changes on: trunk/devel/py-pip/files/patch-setup.cfg
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/files/patch-setup.py
===================================================================
--- trunk/devel/py-pip/files/patch-setup.py (rev 0)
+++ trunk/devel/py-pip/files/patch-setup.py 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2015-11-14 14:08:36 UTC
++++ setup.py
+@@ -78,8 +78,6 @@ setup(
+ entry_points={
+ "console_scripts": [
+ "pip=pip:main",
+- "pip%s=pip:main" % sys.version[:1],
+- "pip%s=pip:main" % sys.version[:3],
+ ],
+ },
+ tests_require=tests_require,
Property changes on: trunk/devel/py-pip/files/patch-setup.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/pkg-descr
===================================================================
--- trunk/devel/py-pip/pkg-descr (rev 0)
+++ trunk/devel/py-pip/pkg-descr 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,18 @@
+The PyPA recommended tool for installing and managing Python packages.
+
+pip is a replacement for easy_install. It uses mostly the same techniques
+for finding packages, so packages that were made easy_installable should
+be pip-installable as well.
+
+pip is meant to improve on easy_install. Some of the improvements:
+
+ * All packages are downloaded before installation. Partially-completed
+ installation doesn't occur as a result.
+ * Care is taken to present useful output on the console.
+ * The reasons for actions are kept track of. For instance, if a package
+ is being installed, pip keeps track of why that package was required.
+ * Error messages should be useful.
+ * Packages don't have to be installed as egg archives, they can be
+ installed flat (while keeping the egg metadata).
+
+WWW: https://pip.pypa.io/en/latest/
Property changes on: trunk/devel/py-pip/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-pip/pkg-message
===================================================================
--- trunk/devel/py-pip/pkg-message (rev 0)
+++ trunk/devel/py-pip/pkg-message 2018-09-08 17:14:34 UTC (rev 24246)
@@ -0,0 +1,14 @@
+============================== !!!! WARNING !!!! ==========================
+
+pip MUST ONLY be used:
+
+ * With the --user flag, OR
+ * To install or manage Python packages in virtual environments
+
+Failure to follow this warning can and will result in an inconsistent
+system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
+cause errors.
+
+Avoid using pip as root unless you know what you're doing.
+
+============================== !!!! WARNING !!!! ==========================
Property changes on: trunk/devel/py-pip/pkg-message
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list