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: Sun, 16 Jan 2022 17:53:21
Message-Id: 1642355431.76505ac2710a35bdc3267c47e85a6c76a1b439e8.mgorny@gentoo
1 commit: 76505ac2710a35bdc3267c47e85a6c76a1b439e8
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 17:38:25 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 16 17:50:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76505ac2
7
8 dev-python/poetry-core: initial commit, add 1.0.7
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/poetry-core/Manifest | 1 +
14 dev-python/poetry-core/metadata.xml | 12 ++++++
15 dev-python/poetry-core/poetry-core-1.0.7.ebuild | 55 +++++++++++++++++++++++++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest
19 new file mode 100644
20 index 000000000000..4c3631d4a43d
21 --- /dev/null
22 +++ b/dev-python/poetry-core/Manifest
23 @@ -0,0 +1 @@
24 +DIST poetry-core-1.0.7.gh.tar.gz 414539 BLAKE2B 570f13e3c7298fd822a38b75c49c623bde4fa780b3787c3c9cfa3939bb68fee3eeaf6190013117a6e751cb6f87a15b343ba183529fcc07d30e37988097954d4a SHA512 40a8b17ae7c51135eb5f96ec76426f075075de7dafff8ab828fe3b47d13759856a7fd2e7504c1216c4f942befde2c6d42c3976978202ce7aa224e966162bd8e5
25
26 diff --git a/dev-python/poetry-core/metadata.xml b/dev-python/poetry-core/metadata.xml
27 new file mode 100644
28 index 000000000000..fe238cb762d0
29 --- /dev/null
30 +++ b/dev-python/poetry-core/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>python@g.o</email>
37 + </maintainer>
38 + <stabilize-allarches/>
39 + <upstream>
40 + <remote-id type="pypi">poetry-core</remote-id>
41 + <remote-id type="github">python-poetry/poetry-core</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/poetry-core/poetry-core-1.0.7.ebuild b/dev-python/poetry-core/poetry-core-1.0.7.ebuild
46 new file mode 100644
47 index 000000000000..720027adf43f
48 --- /dev/null
49 +++ b/dev-python/poetry-core/poetry-core-1.0.7.ebuild
50 @@ -0,0 +1,55 @@
51 +# Copyright 2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +DISTUTILS_USE_PEP517=standalone
57 +PYTHON_COMPAT=( python3_{8..10} )
58 +inherit distutils-r1
59 +
60 +DESCRIPTION="Poetry PEP 517 Build Backend"
61 +HOMEPAGE="https://pypi.org/project/poetry-core/ https://github.com/python-poetry/poetry-core"
62 +SRC_URI="
63 + https://github.com/python-poetry/poetry-core/archive/${PV}.tar.gz
64 + -> ${P}.gh.tar.gz
65 +"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +
71 +# check inside src/poetry/core/_vendor/vendor.txt
72 +RDEPEND="
73 + dev-python/attrs[${PYTHON_USEDEP}]
74 + dev-python/jsonschema[${PYTHON_USEDEP}]
75 + dev-python/lark-parser[${PYTHON_USEDEP}]
76 + dev-python/packaging[${PYTHON_USEDEP}]
77 + dev-python/pyparsing[${PYTHON_USEDEP}]
78 + dev-python/pyrsistent[${PYTHON_USEDEP}]
79 + dev-python/six[${PYTHON_USEDEP}]
80 + dev-python/tomlkit[${PYTHON_USEDEP}]
81 +"
82 +BDEPEND="
83 + test? (
84 + dev-python/pep517[${PYTHON_USEDEP}]
85 + dev-python/pytest-mock[${PYTHON_USEDEP}]
86 + dev-python/virtualenv[${PYTHON_USEDEP}]
87 + )
88 +"
89 +
90 +distutils_enable_tests pytest
91 +
92 +EPYTEST_DESELECT=(
93 + # Those "fail" bacause of glob file path resulting from newer versions
94 + # in our tree than vendored. But those don't affect anything.
95 + tests/masonry/builders/test_sdist.py::test_default_with_excluded_data
96 + tests/masonry/builders/test_wheel.py::test_default_src_with_excluded_data
97 +)
98 +
99 +src_prepare() {
100 + # remove vendoring of dependencies
101 + rm -r poetry/core/_vendor || die
102 + sed -e '/__vendor_site__/d' -i poetry/core/__init__.py || die
103 +
104 + distutils-r1_src_prepare
105 +}