From 38423c67c8a23f6a1bc42038193182e2da3116eb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Apr 2020 11:37:10 +0100 Subject: gentoo resync : 25.04.2020 --- dev-python/virtualenv/Manifest | 4 +- dev-python/virtualenv/virtualenv-16.7.9-r1.ebuild | 62 +++++++++++++++++ dev-python/virtualenv/virtualenv-16.7.9.ebuild | 60 ---------------- dev-python/virtualenv/virtualenv-20.0.18.ebuild | 84 +++++++++++++++++++++++ 4 files changed, 149 insertions(+), 61 deletions(-) create mode 100644 dev-python/virtualenv/virtualenv-16.7.9-r1.ebuild delete mode 100644 dev-python/virtualenv/virtualenv-16.7.9.ebuild create mode 100644 dev-python/virtualenv/virtualenv-20.0.18.ebuild (limited to 'dev-python/virtualenv') diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest index 74ac6f791f76..5911f72a6ed7 100644 --- a/dev-python/virtualenv/Manifest +++ b/dev-python/virtualenv/Manifest @@ -4,6 +4,8 @@ AUX virtualenv-16.7.7-tests.patch 2092 BLAKE2B fe9eef6372958265ff4b0b919c424a163 AUX virtualenv-16.7.8-tests-pypy.patch 3133 BLAKE2B 37d544c96a1546aa0df4e820014ee6091d4b4ca5155da86280aaebfb1a8d26ce9c6a055e47b11129509d7d00abcee0e3a915bd6ff4665b289cfce399f2dfd3b6 SHA512 f99cd435fe9fa98465addc6b22310e5d708c87edef224cdf540556a2ab1a70bebf06e828c02148bb597d163c31b2816845c0c8126727d1d25b38ffcb91c2251e DIST virtualenv-16.0.0.tar.gz 1968312 BLAKE2B efc25f7c12335bb8619c3de125af3693d73afc5e7ff4edf1afa95227360ab4d0eb2ffb574b9bb36de26a2bda65b1f06009308fef48b12a81050bbc1f4ab852e9 SHA512 aed6eff9b85107072c321b37c1725987d474caf615734ab40d8d1fa60f2635be1a1919a47fbd211127e38cf1c4002548c778df29fc56d45a4570b31906c0ee54 DIST virtualenv-16.7.9.tar.gz 5116740 BLAKE2B 10b77c4d74d3b1be60d567caf60b48274893777313d7151350df1d8a7d86d7cbd299c6c04734cbad134512e2ea05f5bc694648b6e9307019ffd9b91f7d0cdaf5 SHA512 d7379941e299c44beba30eaab68d5f1a6650f767b24f95d5e8abd05c1529dca4c1423113a41ff42690bb2b2bd4fe05c3e47a8fed4f9df0972188f6c77034436b +DIST virtualenv-20.0.18.tar.gz 7982748 BLAKE2B f759ff1c42aaf9229e3f8dedd7b50df12e3a7616f979e18a5a91d58afd190beea86c67e0f7c530ba327427f3a4967ab27d7b922723c9ce92cba844946f8eb8ff SHA512 9295acb4d21da13c93fcf2a73244137a6fd8384313cf2685b67295f3be8cf33aaf6d22fc9ba4fa93dbfd81429eeaf4eb46d752fb717f0f74c172a754b92d41e6 EBUILD virtualenv-16.0.0.ebuild 1229 BLAKE2B 1471e961cb3e6eac155ad7c7aa761ee6fc3cc067f043c05f0dabcad30cee98c9689bae08e4f37a05a4a47c0627bd8d124be23f0804952b564309cd05a6e5491f SHA512 0204f47949d89816bba0295b24c076ec375f31e19071ffcccb3f0b70068c88a12fff97e292ed636ac9b0edda5bc5ba4f912d6486d30c3f3956f7456771eb4120 -EBUILD virtualenv-16.7.9.ebuild 1775 BLAKE2B a01bf351d2c9b3e5bfaca8a269a3efee1cbf2fca5d205fd7cc5f550ee43d748206666218209919ac5e40dbfa348515acbf16a350aedd052e8025b9ef812ca192 SHA512 adca38d2d13963a3416e33dab7c23a8f3643ded31678bd7a580ee785dc0c7e404e8d45850a06303edf993d600c5d83e2f88b16c431b3e22713fe405e7ff5a5dd +EBUILD virtualenv-16.7.9-r1.ebuild 1828 BLAKE2B a6092602da117163b2b6b7882a7e2fff1acd9334c5150b8d9f7ea37b5855dda60924d374e3b3ecc4f2426f3a0d426ec7dbb17a9c577f4285f499123ccfd39b62 SHA512 0c714cb640d21eabb8eafd0c641989b9d896748889f987b381ec137d15da79dc1caa757ef94ef1ecbdef790d9018fc8197b4337223b85eca4821770eaaf2b35f +EBUILD virtualenv-20.0.18.ebuild 2222 BLAKE2B 823bb14c0cecc10e7e6481a17c57aae65236e9eea823b8ffcc7b54514f1433fa870434238af12c697f67de51fbc0ff3836daa5037c32fff3653e8139fd4f74be SHA512 b35e94831d8b87c1ad89d651d29cbaff9ee603b6f9ee38c1b975285240e12f2d25e10de49cd89e6d5be77e2cf2d3f564417e91776b4ab0407f4f6cff4639c6cd MISC metadata.xml 380 BLAKE2B 9a15805179f82d4e5c60aeb56191e690f9fe9260e34d9b4e0b893a51522fdc61246f02b20c1b55084709e06d6ce53b2e6436947aa178e2d413a923102d7ee125 SHA512 b6385fef70c6988548a00e6987bf5004979d139ad6c501d3f7b739bacef06eafa39a40bee8cc2d1164e01bb425f131aeea13f4b58ed6e75d66773a4f1c1df824 diff --git a/dev-python/virtualenv/virtualenv-16.7.9-r1.ebuild b/dev-python/virtualenv/virtualenv-16.7.9-r1.ebuild new file mode 100644 index 000000000000..d6c847fb9ef5 --- /dev/null +++ b/dev-python/virtualenv/virtualenv-16.7.9-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# pypy{,3} dropped until test deps are tested/updated +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=manual + +inherit distutils-r1 + +DESCRIPTION="Virtual Python Environment builder" +HOMEPAGE=" + https://virtualenv.pypa.io/en/stable/ + https://pypi.org/project/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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 ~hppa ~sparc x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} + test? ( + >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pypiserver[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + )" + +DOCS=( docs/index.rst docs/changes.rst ) + +PATCHES=( + "${FILESDIR}/virtualenv-16.7.7-tests.patch" + + # disable tests that need internet access + "${FILESDIR}/virtualenv-16.7.7-tests-internet.patch" + + # test fixes for pypy + "${FILESDIR}/virtualenv-16.7.8-tests-pypy.patch" +) + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/towncrier + +python_test() { + cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \ + die "Could not copy LICENSE.txt with ${EPYTHON}" + + pytest -vv tests || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/virtualenv/virtualenv-16.7.9.ebuild b/dev-python/virtualenv/virtualenv-16.7.9.ebuild deleted file mode 100644 index 1eb5c4ecea48..000000000000 --- a/dev-python/virtualenv/virtualenv-16.7.9.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# pypy{,3} dropped until test deps are tested/updated -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Virtual Python Environment builder" -HOMEPAGE=" - https://virtualenv.pypa.io/en/stable/ - https://pypi.org/project/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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -KEYWORDS="~alpha amd64 ~hppa ~sparc x86 ~amd64-linux ~x86-linux" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -BDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}] - test? ( - >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pypiserver[${PYTHON_USEDEP}] - dev-python/pytest-localserver[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - )" - -DOCS=( docs/index.rst docs/changes.rst ) - -PATCHES=( - "${FILESDIR}/virtualenv-16.7.7-tests.patch" - - # disable tests that need internet access - "${FILESDIR}/virtualenv-16.7.7-tests-internet.patch" - - # test fixes for pypy - "${FILESDIR}/virtualenv-16.7.8-tests-pypy.patch" -) - -distutils_enable_sphinx docs \ - dev-python/sphinx_rtd_theme \ - dev-python/towncrier - -python_test() { - cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \ - die "Could not copy LICENSE.txt with ${EPYTHON}" - - pytest -vv tests || die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/virtualenv/virtualenv-20.0.18.ebuild b/dev-python/virtualenv/virtualenv-20.0.18.ebuild new file mode 100644 index 000000000000..8ff9d70c19ca --- /dev/null +++ b/dev-python/virtualenv/virtualenv-20.0.18.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=manual + +inherit distutils-r1 + +DESCRIPTION="Virtual Python Environment builder" +HOMEPAGE=" + https://virtualenv.pypa.io/en/stable/ + https://pypi.org/project/virtualenv/ + https://github.com/pypa/virtualenv/ +" +SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/appdirs-1.4.3[${PYTHON_USEDEP}] + >=dev-python/distlib-0.3.0[${PYTHON_USEDEP}] + >=dev-python/filelock-3[${PYTHON_USEDEP}] + >=dev-python/setuptools-41[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/contextlib2-0.6.0[${PYTHON_USEDEP}] + >=dev-python/pathlib2-2.3.3[${PYTHON_USEDEP}] + ' -2) + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}] + ' -2 python3_{6,7} pypy3) + $(python_gen_cond_dep ' + >=dev-python/importlib_resources-1.0[${PYTHON_USEDEP}] + ' -2 python3_6 pypy3)" +# coverage is used somehow magically in virtualenv, maybe it actually +# tests something useful +BDEPEND="${RDEPEND} + test? ( + dev-python/coverage[${PYTHON_USEDEP}] + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + ' -3) + )" + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/towncrier +distutils_enable_tests pytest + +src_prepare() { + # we don't have xonsh + rm tests/unit/activation/test_xonsh.py || die + # TODO: investigate + sed -e 's:test_cross_major:_&:' \ + -i tests/unit/create/test_creator.py || die + + distutils-r1_src_prepare +} + +src_configure() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + # TODO: fix/skip with more granularity tests on pypy3 + if has "${EPYTHON}" pypy3 python2.7; then + einfo "Skipping broken tests on pypy3" + continue + fi + + distutils_install_for_testing + + pytest -vv || die "Tests fail with ${EPYTHON}" +} -- cgit v1.2.3