commit:     84c74fb982a8d3402b7d595a92b385363a570f84
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 06:28:08 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 07:37:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84c74fb9

dev-python/poetry-core: Bump to 1.5.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/poetry-core/Manifest                 |  1 +
 dev-python/poetry-core/poetry-core-1.5.1.ebuild | 64 +++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest
index 589d23cd8318..d589ecace1ac 100644
--- a/dev-python/poetry-core/Manifest
+++ b/dev-python/poetry-core/Manifest
@@ -1,2 +1,3 @@
 DIST poetry-core-1.4.0.gh.tar.gz 556575 BLAKE2B 
6a0860f965bb7d554f1f13c46d76727b9a763dd3dc04a1d889ca894c30ad91e46931308981560fadf70348731f080322da9c9590248b7877e02eb81f4009e02a
 SHA512 
31c9b42ae8e4ec5c4cec93604a5ea72642fb89717867d7f43fdf930835c7e1da97b0251870d86841c30b1bf0ee7b167fc6a8dcfe939beb5b40acd7e24dfaede7
 DIST poetry-core-1.5.0.gh.tar.gz 478924 BLAKE2B 
54653b6a8dcac08ac732ccb8efd2ff0404e6e78e7e2f6981fca2aafc53144309372389cc11d2524470ff25b0fc3ade5039df850629fefe016b6e9860f09d3247
 SHA512 
18b62096f32b7e57abc296bd8e35d0802873563c83e19b0e6e5f9994edaa503e05b9a782a6612d28b8544e34efc92efe213dcd5b595ec1d217e678522df3ae31
+DIST poetry-core-1.5.1.gh.tar.gz 479091 BLAKE2B 
ff59460a75893c18f9ad0063a880b40c6cff108d03c7f7bd16aaab53a72bf8af2c08af949c448e8703390589112e26c19e9ea9ddfaf2bed69791f86293b62b1c
 SHA512 
ffc2cf6a37175feebe6ae926250d20ebf5742f459824f54b7ad8ea0f65c28639ef1e90a3cbd31bf58fca19d45699c5a22a583cefb5d60795d7e92399bdd1a421

diff --git a/dev-python/poetry-core/poetry-core-1.5.1.ebuild 
b/dev-python/poetry-core/poetry-core-1.5.1.ebuild
new file mode 100644
index 000000000000..1288ab17d4bc
--- /dev/null
+++ b/dev-python/poetry-core/poetry-core-1.5.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( pypy3 python3_{9..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}]
+               dev-vcs/git
+       )
+"
+
+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
+}

Reply via email to