diff options
Diffstat (limited to 'dev-python/path-py')
-rw-r--r-- | dev-python/path-py/Manifest | 2 | ||||
-rw-r--r-- | dev-python/path-py/path-py-15.0.1.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/path-py/Manifest b/dev-python/path-py/Manifest index a251ff3023f5..610234d823cb 100644 --- a/dev-python/path-py/Manifest +++ b/dev-python/path-py/Manifest @@ -1,3 +1,5 @@ DIST path-15.0.0.tar.gz 73642 BLAKE2B 186b77b6571dd878a5b64b575289bb5ee549145ccd0c7b858f99c9e3772cf98f2cc7ff5da759e7fa660296abc49c053a388ad95466c51adccce2162c682c6566 SHA512 e41684c576b959e27258f60c0d8b69719c38a5a7a04d9646089aea91227781573368a08f01230dca831732ae687741d22caf52efd9a481378b8d4e77627fe3a5 +DIST path-15.0.1.tar.gz 47662 BLAKE2B ec50e75cd1b24cd017189cb8632340a5e4ebed8517d607a9f26e43c7c75b2b7d62e9a70b6b93ea6db79feb3d100ca535aba7926cfd7317bef1ac290697ea8f90 SHA512 d8ea2a98cf5caad15bc99a740188d6947cb1cdacc1ac7b6164f29f8d78ca8e73258120ff36f100957e3c4c2ca0ed6eaf27c98c4765ededde41b58d98de24f672 EBUILD path-py-15.0.0.ebuild 1231 BLAKE2B f895d1549408f31ad7d3514b1186ce75e7a9402177c5ca8e0ffbbaa19d1f73772bdc5e43c4b289269b772666c3444ba7a0488a2fdfd3fe94611ba52463879457 SHA512 d5a71f266529e9f53bdc1c1f05efa736155ab4f5da51eafcfe40cbbd98965cc53e3f4b843bc1c2e3c03d6287187f2d4241e7a7142eae79f855006120ea52259d +EBUILD path-py-15.0.1.ebuild 1239 BLAKE2B a4dee89bcf8ed88073b55c392f8ce6da003bb40d5b181c34cde433beab5b1a2490db88c9de9e14b195dab539a36832c69918bcfbb78070435833beed04295fb5 SHA512 15aaadfb6f15f86a2683b7659a767986ca3c792cef3f5ba0e17185778bf6b486cbe3932c5c7e47ca18e060c249e1d64d1f7dcc19564016976d386d6928c52303 MISC metadata.xml 382 BLAKE2B f4e983fc27f8e9a578a8469a0b432adf91f622d9993bcdf9a0f25f2786680eb26a67d53d1c97deebc8bbbf7d62ac5b37b2d5a44b39c81f3862e0ffe2cbe2e577 SHA512 61909559eb0ad81e607bdd7b9b147f3e9c71e53721ddd99b1cc2afbe8e33ca7de2b9849ff3ff7468183c5f82f108b958ae0ce3042998972dac8eab6338040151 diff --git a/dev-python/path-py/path-py-15.0.1.ebuild b/dev-python/path-py/path-py-15.0.1.ebuild new file mode 100644 index 000000000000..ee2c52e7b643 --- /dev/null +++ b/dev-python/path-py/path-py-15.0.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} pypy3 ) +inherit distutils-r1 + +MY_P="path-${PV}" + +DESCRIPTION="A module wrapper for os.path" +HOMEPAGE="https://pypi.org/project/path/ https://github.com/jaraco/path" +SRC_URI="mirror://pypi/p/path/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + !<dev-python/pytest-shutil-1.7.0-r1 + !<dev-python/pytest-virtualenv-1.7.0-r1" +BDEPEND=" + test? ( + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_prepare_all() { + # avoid a setuptools_scm dependency + sed -e "s/setup_requires = setuptools_scm/version = '${PV}'/" \ + -i setup.cfg || die + + # disable fancy test deps + sed -e 's: --flake8:: ; s: --black:: ; s: --cov:: ; s: --mypy::' \ + -i pytest.ini || die + + # fragile test for import time + sed -i -e 's:test_import_time:_&:' test_path.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + PYTHONPATH=. pytest -vv || die +} |