dev-python/poetry-core: Bump to 1.1.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-08-31 09:27:06 +02:00
parent ece797cda5
commit 83511ee2ed
2 changed files with 63 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST poetry-core-1.0.8.gh.tar.gz 414941 BLAKE2B 1f663d927aee1f18a9ff38cbf95809538bf9c9e8079d040c240fbc1ffa9e492c6fd20c69f89ddf7e68ddea05beee3b909fdee02e93f47437fffa687dc492ec9a SHA512 6dfed1e1124c37a5f0ec535ede8848e25466da3df6fa6629f6330ce32f05a4d82725d64407e5bcf294d6e467b52966642505ee29f563d3794c4e7aca78045285
DIST poetry-core-1.1.0.gh.tar.gz 534348 BLAKE2B c5dc37579da5d260577c8027520ee9b4a31ca0c4f20f3dc6f233f4f686060aa2c2ae5af46f1d906939364f26cd04155f2c84dea9d209e8d09564b28c19d2220a SHA512 ac8f9797167572bffaaa955e70ba0ab9a509a26ae7905108b43a211b2c93bf29d418da1154bf08f3b4ff744f88c9d6fd0d58408513ffd30e1c4e309ff2784c08

View File

@@ -0,0 +1,62 @@
# 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/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
}