dev-python/distlib: Readd, new dep of virtualenv

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-04-18 17:07:46 +02:00
parent a477cc94bb
commit 8603f6637a
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST distlib-0.3.0.tar.bz2 848089 BLAKE2B 70f88b570229e2ab4c95bd8da0375aba189f66dec8defcf8eedf1be6924d93bd20b54c68e5fba867a6c68a31d4ef926ee2dc18ccb0391278680f30a62d0cd251 SHA512 01b0e7d59736414a241efdf883e4ee63eafe9614ce3b4147781a5750d25d6383543146c5277e3e0d3e11ce03693afd0331c6e3416776a6f84de7a4d9dadf3de4

View File

@@ -0,0 +1,51 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
inherit distutils-r1 vcs-snapshot
DESCRIPTION="Low-level components of distutils2/packaging"
HOMEPAGE="https://pypi.org/project/distlib/
https://bitbucket.org/pypa/distlib/"
# pypi has zip only :-(
SRC_URI="
https://bitbucket.org/pypa/distlib/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
distutils_enable_tests setup.py
src_prepare() {
# this test assumes pristine venv with no system packages
sed -e 's:test_dependency_finder:_&:' \
-i tests/test_locators.py || die
# no clue but it looks horribly fragile
sed -e 's:test_sequencer_basic:_&:' \
-i tests/test_util.py || die
# TODO: investigate
sed -e 's:test_upload:_&:' \
-i tests/test_index.py || die
# these require Internet
sed -e 's:test_search:_&:' \
-i tests/test_index.py || die
sed -e 's:test_aggregation:_&:' \
-e 's:test_all:_&:' \
-e 's:test_dist_reqts:_&:' \
-e 's:test_json:_&:' \
-e 's:test_prereleases:_&:' \
-e 's:test_scraper:_&:' \
-i tests/test_locators.py || die
sed -e 's:test_package_data:_&:' \
-i tests/test_util.py || die
# doesn't work with our patched pip
sed -e '/PIP_AVAIL/s:True:False:' \
-i tests/test_wheel.py || die
distutils-r1_src_prepare
}

View File

@@ -0,0 +1,7 @@
<?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>
</maintainer>
</pkgmetadata>