summaryrefslogtreecommitdiff
path: root/dev-python/virtualenv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/virtualenv
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/virtualenv')
-rw-r--r--dev-python/virtualenv/Manifest6
-rw-r--r--dev-python/virtualenv/files/virtualenv-12.1.1-skip-broken-test.patch19
-rw-r--r--dev-python/virtualenv/metadata.xml12
-rw-r--r--dev-python/virtualenv/virtualenv-15.1.0.ebuild49
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
new file mode 100644
index 000000000000..8da90ceae9f4
--- /dev/null
+++ b/dev-python/virtualenv/Manifest
@@ -0,0 +1,6 @@
+AUX virtualenv-12.1.1-skip-broken-test.patch 542 SHA256 ee5ddcab19b1811991aeb55c58c118c593afe2e8d21ebc600ff2123e8d72e3ea SHA512 9517f2efccb3cd177370cf66ea12244a39e762aae64e9bd412fc05af087648066deaf62d381b52a0eee1487c82109df4bd463599eaa641890c32eec48b694f25 WHIRLPOOL ca02bb2845cc4b26a8192ba2d1fb74c540c2ff55643ec4799d845a8f68b627dace367c4cba2b8ff04de9e7484a87cfcf76e0ffd262480a96539894e2f9b8bebb
+DIST virtualenv-15.1.0.tar.gz 1865011 SHA256 aea627d114a3863d6374c5a3fc3cdd08907e0ac951cf93b458e5ba5998c516de SHA512 46c313fe855483cf42def0ddb319df7513bb00ea2c1570efaf1236b4e0074df40d574f3858a3d3760db988b9021ca2046c40a355cc5a3ae32a2802d6120bf255 WHIRLPOOL de8dd66fdd004ad9c8e866eaa7bcd701b16b6f7c185ebe73a7681b3600ae4f55996b9f8e321ef51bf85046283a2e4bf948ffe2b10218190ecb334351f92c57b3
+EBUILD virtualenv-15.1.0.ebuild 1215 SHA256 44a543986acf6aad7a389d770313cc273beb0bca65c3928b9d5aa93ff8ebad07 SHA512 672d740ffa4d27c789f8d9739d73d9e434a1bb8dc08c93c65ea08bbcf9a17b265660d53d9193adb651a2610951abb9ad8c7d7c6ee5106675e1e1c4bc1f7ed94c WHIRLPOOL 02e93714b1a6a5aeaed82602d8b85ca22a0ae73662404ec43cd9df63708d857b45ab0090db757bd1ac66ade47be9a4955d2a4d3769704863d4ee9ed952fe5e18
+MISC ChangeLog 9498 SHA256 8c9284a8d028d8ad21c13382957f00ad0b7869fcf7ae25b362e91f952cde3cc6 SHA512 39c91c65c1725a84afb5af9aee4665d0877543c1fcab69de7b9e883587fd2f9848a6025ebc680d9ebb0729cd00113d295ad4a8f8bb24517d207fe0d53f8c60a8 WHIRLPOOL 447ec53a560e8503ad891f380ccc58aab78bb9ced969e5ccf3f4d4a796f2491a84ad5b0818376268ecdd69151bb3ef07f0fa09ce83354ee175c50cc11e433967
+MISC ChangeLog-2015 20365 SHA256 cfd9a90e1fa5020c2ac9ba5431180c71efaa618cfeca2a3e9e77d1c664f63354 SHA512 d782437650dfa97b5766aff9e500317cd1cf56fd72a989aa12f105ecc458a17be9390eb6fd39b27e7fdf3d6f23f82af441b9fe095b66b6c9e64968f6bf53ba04 WHIRLPOOL 9f10fbd0e86872b8e56f2fc7b8f1a22619a3f2e42f3b299cf19238e32514f7bc52b0890af9d245cc7fc445c39b0c2727999c902fbcd05898b1b6d81b5a5d04dd
+MISC metadata.xml 380 SHA256 41d3a6c0d065c0b380a019df8154c3bb0fb18978f46d4d753aee37e5e8f25375 SHA512 b6385fef70c6988548a00e6987bf5004979d139ad6c501d3f7b739bacef06eafa39a40bee8cc2d1164e01bb425f131aeea13f4b58ed6e75d66773a4f1c1df824 WHIRLPOOL 9fcc5967344f94cde2a4926a60f7b13c0cfb98d6b537c9739619588371bcc9ff8ada58b3ffc77474f947eeb96306a2fdbcb707f7ff0e71751b5a9d364c267300
diff --git a/dev-python/virtualenv/files/virtualenv-12.1.1-skip-broken-test.patch b/dev-python/virtualenv/files/virtualenv-12.1.1-skip-broken-test.patch
new file mode 100644
index 000000000000..5c14c3e22850
--- /dev/null
+++ b/dev-python/virtualenv/files/virtualenv-12.1.1-skip-broken-test.patch
@@ -0,0 +1,19 @@
+--- virtualenv-12.1.1/tests/test_virtualenv.py
++++ virtualenv-12.1.1/tests/test_virtualenv.py
+@@ -6,6 +6,7 @@
+ import tempfile
+ import pytest
+ import platform # noqa
++import unittest
+
+ from mock import patch, Mock
+
+@@ -126,7 +127,7 @@
+ shutil.rmtree(tmp_virtualenv)
+
+
+-@pytest.mark.skipif("platform.python_implementation() == 'PyPy'")
++@unittest.skip("Running create environment while testing is broken")
+ def test_always_copy_option():
+ """Should be no symlinks in directory tree"""
+ tmp_virtualenv = tempfile.mkdtemp()
diff --git a/dev-python/virtualenv/metadata.xml b/dev-python/virtualenv/metadata.xml
new file mode 100644
index 000000000000..6c60307811d3
--- /dev/null
+++ b/dev-python/virtualenv/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">virtualenv</remote-id>
+ <remote-id type="github">pypa/virtualenv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/virtualenv/virtualenv-15.1.0.ebuild b/dev-python/virtualenv/virtualenv-15.1.0.ebuild
new file mode 100644
index 000000000000..838dca237b08
--- /dev/null
+++ b/dev-python/virtualenv/virtualenv-15.1.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Virtual Python Environment builder"
+HOMEPAGE="
+ http://www.virtualenv.org/
+ https://pypi.python.org/pypi/virtualenv
+ https://github.com/pypa/virtualenv/
+"
+SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE="doc test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+DOCS=( docs/index.rst docs/changes.rst )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
+)
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ py.test -v -v || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}