Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/poetry-core/
Date: Wed, 31 Aug 2022 09:21:07
Message-Id: 1661937655.83511ee2edfca7b8cb0214659d9e80660d896f3b.mgorny@gentoo
1 commit: 83511ee2edfca7b8cb0214659d9e80660d896f3b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 07:27:06 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 09:20:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83511ee2
7
8 dev-python/poetry-core: Bump to 1.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/poetry-core/Manifest | 1 +
13 dev-python/poetry-core/poetry-core-1.1.0.ebuild | 62 +++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest
17 index 64fbfa17da5b..85e9266688c4 100644
18 --- a/dev-python/poetry-core/Manifest
19 +++ b/dev-python/poetry-core/Manifest
20 @@ -1 +1,2 @@
21 DIST poetry-core-1.0.8.gh.tar.gz 414941 BLAKE2B 1f663d927aee1f18a9ff38cbf95809538bf9c9e8079d040c240fbc1ffa9e492c6fd20c69f89ddf7e68ddea05beee3b909fdee02e93f47437fffa687dc492ec9a SHA512 6dfed1e1124c37a5f0ec535ede8848e25466da3df6fa6629f6330ce32f05a4d82725d64407e5bcf294d6e467b52966642505ee29f563d3794c4e7aca78045285
22 +DIST poetry-core-1.1.0.gh.tar.gz 534348 BLAKE2B c5dc37579da5d260577c8027520ee9b4a31ca0c4f20f3dc6f233f4f686060aa2c2ae5af46f1d906939364f26cd04155f2c84dea9d209e8d09564b28c19d2220a SHA512 ac8f9797167572bffaaa955e70ba0ab9a509a26ae7905108b43a211b2c93bf29d418da1154bf08f3b4ff744f88c9d6fd0d58408513ffd30e1c4e309ff2784c08
23
24 diff --git a/dev-python/poetry-core/poetry-core-1.1.0.ebuild b/dev-python/poetry-core/poetry-core-1.1.0.ebuild
25 new file mode 100644
26 index 000000000000..3c9ee00b19c0
27 --- /dev/null
28 +++ b/dev-python/poetry-core/poetry-core-1.1.0.ebuild
29 @@ -0,0 +1,62 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=standalone
36 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Poetry PEP 517 Build Backend"
41 +HOMEPAGE="
42 + https://github.com/python-poetry/poetry-core/
43 + https://pypi.org/project/poetry-core/
44 +"
45 +SRC_URI="
46 + https://github.com/python-poetry/poetry-core/archive/${PV}.tar.gz
47 + -> ${P}.gh.tar.gz
48 +"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
53 +
54 +# check inside src/poetry/core/_vendor/vendor.txt
55 +# (note that some are indirect deps)
56 +RDEPEND="
57 + dev-python/jsonschema[${PYTHON_USEDEP}]
58 + dev-python/lark[${PYTHON_USEDEP}]
59 + dev-python/packaging[${PYTHON_USEDEP}]
60 + dev-python/tomlkit[${PYTHON_USEDEP}]
61 +"
62 +BDEPEND="
63 + test? (
64 + dev-python/pep517[${PYTHON_USEDEP}]
65 + dev-python/pytest-mock[${PYTHON_USEDEP}]
66 + dev-python/virtualenv[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_tests pytest
71 +
72 +EPYTEST_DESELECT=(
73 + # These "fail" bacause of glob file path resulting from newer versions
74 + # in our tree than vendored. But those don't affect anything.
75 + tests/masonry/builders/test_sdist.py::test_default_with_excluded_data
76 + tests/masonry/builders/test_wheel.py::test_default_src_with_excluded_data
77 +)
78 +
79 +src_prepare() {
80 + # remove vendoring of dependencies
81 + rm -r src/poetry/core/_vendor || die
82 + sed -e '/__vendor_site__/d' -i src/poetry/core/__init__.py || die
83 +
84 + distutils-r1_src_prepare
85 +}
86 +
87 +python_test() {
88 + # needed for migration from <1.1
89 + distutils_write_namespace poetry
90 + epytest
91 +}