diff options
Diffstat (limited to 'dev-python/poetry-core')
-rw-r--r-- | dev-python/poetry-core/Manifest | 2 | ||||
-rw-r--r-- | dev-python/poetry-core/poetry-core-1.3.1.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest index 9ca8789fe10a..80e04abad4be 100644 --- a/dev-python/poetry-core/Manifest +++ b/dev-python/poetry-core/Manifest @@ -1,3 +1,5 @@ DIST poetry-core-1.2.0.gh.tar.gz 536297 BLAKE2B 0ba82bfa320d65ce794a4f2346198d252139c03960298ede02f55d8b23367e05e9336b3d5030032b1feab4ffa327974af26ce2918d4d40889f68fbec79ccb490 SHA512 f6d79d7d66a25aa127b5decf46df861ecc101af0438b892196505b4ece5cc55f6ff8796eb603789b3259d213162236b7698305523b2eda414ad1f3a5b659eab9 +DIST poetry-core-1.3.1.gh.tar.gz 539214 BLAKE2B 12db16f06e5b7f94e0aa6edf6d5cc6c8c15c6389e3e1f517884c5532b211982d34682c035b69e53dfef60506c8be16ed36b0c8cc66651c88d83436d6cfc5182f SHA512 c61b7edeb0c821c0a1cd983965a3140cb8183147740e3b242d0cb0bfa375d6ee352314dd81e243d03c31e403c4a01353657cf771b84130ef058815068ecfdd5e EBUILD poetry-core-1.2.0.ebuild 1620 BLAKE2B 41931afbcf5767a54fb5df962676cfbd0fda0274de861431ab0f343717f1d725ff42be41b5268f5aa760013163164a07bf5b417065607a2ceb3d230b5cd84534 SHA512 541c765d3e42be2192d490a2cc86d668ffc5940909d47197de21d95e0863bd37fdf2eb41c625f44d9611c2fe81bbf9f7008756dad00951cd49c0e9988fee6df0 +EBUILD poetry-core-1.3.1.ebuild 1628 BLAKE2B d21b2534abea4c369eeadde7fd2d2ff6a1b1baf557a44454fbbc5dbd8ba506656aae294a35b64efa5f33127a76ad9ec32b71c0105bd3a90e2e58bd9253e724e9 SHA512 fe519e3c99aa9daf15bc60f3074b492381cd54a86bf915399ee45f54b6765412a653a537ace5fe817f01bb3dcb6143618ee80f7a3714f8837b6ccb6440a44c0e MISC metadata.xml 382 BLAKE2B 82dfc3f146cf3b669fed67ab2e21694b00d5473fdf855cae9fb3a0481785b32c4cf1ed9743a5d64cd055c1cb544377f936a9ec26c9d1dec2cf5fbef6749f5587 SHA512 032fd4dca8f8138c2b527e517f041889e15600ccca876fc3c9e53050196186ad2a9346168bce9c4bae7ffd8a77ff4dd19cc2559fd1da1fd4c7c181056fd49a13 diff --git a/dev-python/poetry-core/poetry-core-1.3.1.ebuild b/dev-python/poetry-core/poetry-core-1.3.1.ebuild new file mode 100644 index 000000000000..c76206f1717a --- /dev/null +++ b/dev-python/poetry-core/poetry-core-1.3.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( pypy3 python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Poetry PEP 517 Build Backend" +HOMEPAGE=" + https://github.com/python-poetry/poetry-core/ + https://pypi.org/project/poetry-core/ +" +SRC_URI=" + https://github.com/python-poetry/poetry-core/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# check inside src/poetry/core/_vendor/vendor.txt +# (note that some are indirect deps) +RDEPEND=" + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lark[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/build[${PYTHON_USEDEP}] + dev-python/pep517[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # These "fail" bacause of glob file path resulting from newer versions + # in our tree than vendored. But those don't affect anything. + tests/masonry/builders/test_sdist.py::test_default_with_excluded_data + tests/masonry/builders/test_wheel.py::test_default_src_with_excluded_data +) + +src_prepare() { + # remove vendoring of dependencies + rm -r src/poetry/core/_vendor || die + sed -e '/__vendor_site__/d' -i src/poetry/core/__init__.py || die + + distutils-r1_src_prepare +} + +python_test() { + # needed for migration from <1.1 + distutils_write_namespace poetry + epytest +} |