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/hatchling/
Date: Tue, 05 Jul 2022 06:07:40
Message-Id: 1657001247.fc86e54805d51a6cb83c02447f6aa3722acf025d.mgorny@gentoo
1 commit: fc86e54805d51a6cb83c02447f6aa3722acf025d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 5 05:21:27 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 06:07:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc86e548
7
8 dev-python/hatchling: Bump to 1.4.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hatchling/Manifest | 1 +
13 dev-python/hatchling/hatchling-1.4.1.ebuild | 74 +++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest
17 index 65dd4c94ae17..c888e2fa2c6e 100644
18 --- a/dev-python/hatchling/Manifest
19 +++ b/dev-python/hatchling/Manifest
20 @@ -1,2 +1,3 @@
21 DIST hatch-hatchling-v1.3.1.gh.tar.gz 220023 BLAKE2B db336126d8c5235eab57ca53e2f8832b9590513f40215ff4b51d1b60c43b0d971b472dc4434cfcf77406143a4ed3172a2fcd95d4c7d11a6f39ccd937f9eff9e6 SHA512 21fa8bd4ffe0bec5ae9f8b9716ce3b7ece45c6a62bc74f0cd49f759baaa5b21343bcc9f2a8e505f0b724b7d73a4c1f84c863a29e064e95f4aa1a288098adc8d3
22 DIST hatch-hatchling-v1.4.0.gh.tar.gz 229007 BLAKE2B 5a288a9de356fb06646ebb3eab95aee319d3e7d15a67d4a36cf52d0865a4ecd7ddd1e18db203c55136e950221f79572b152f9edf9398f52ecc927819e5a2f2fd SHA512 a104e092b2078eaeadfd6ea70b65bd8aabc91044e4e9fef4e1a54a61c138629e2a3963f26773e303f3cca0839ea63530849260b2d8c51b50fe67a3cdc5707029
23 +DIST hatch-hatchling-v1.4.1.gh.tar.gz 229194 BLAKE2B 9d7b11244ce67d64a05f4a737966a8f037031275ae5b2ecde395c172232eb5bbf0f38df4f0048c6732641bafbf524670bc1e6dd9d441cc4297ef74126b56971b SHA512 b8dc8dfdc7e251cad4161f59acc724122f8f7083a1ce170722b7b5c31ccf22488e3871be76ea3fad058be2cce263752099c9b548759e16ba644daaba0eca63ba
24
25 diff --git a/dev-python/hatchling/hatchling-1.4.1.ebuild b/dev-python/hatchling/hatchling-1.4.1.ebuild
26 new file mode 100644
27 index 000000000000..868dd0172a97
28 --- /dev/null
29 +++ b/dev-python/hatchling/hatchling-1.4.1.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=standalone
37 +PYTHON_TESTED=( pypy3 python3_{8..11} )
38 +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
39 +
40 +inherit distutils-r1
41 +
42 +TAG=${P/-/-v}
43 +MY_P=hatch-${TAG}
44 +DESCRIPTION="Modern, extensible Python build backend"
45 +HOMEPAGE="
46 + https://pypi.org/project/hatchling/
47 + https://github.com/pypa/hatch/
48 +"
49 +SRC_URI="
50 + https://github.com/pypa/hatch/archive/${TAG}.tar.gz
51 + -> ${MY_P}.gh.tar.gz
52 +"
53 +S=${WORKDIR}/${MY_P}/backend
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
58 +
59 +RDEPEND="
60 + >=dev-python/editables-0.2[${PYTHON_USEDEP}]
61 + >=dev-python/packaging-21.3[${PYTHON_USEDEP}]
62 + >=dev-python/pathspec-0.9[${PYTHON_USEDEP}]
63 + >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}]
64 + >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}]
65 +"
66 +BDEPEND="
67 + ${RDEPEND}
68 + test? (
69 + $(python_gen_cond_dep '
70 + dev-python/atomicwrites[${PYTHON_USEDEP}]
71 + dev-python/click[${PYTHON_USEDEP}]
72 + dev-python/httpx[${PYTHON_USEDEP}]
73 + dev-python/platformdirs[${PYTHON_USEDEP}]
74 + dev-python/rich[${PYTHON_USEDEP}]
75 + dev-python/tomli-w[${PYTHON_USEDEP}]
76 + dev-python/virtualenv[${PYTHON_USEDEP}]
77 + ' "${PYTHON_TESTED[@]}")
78 + )
79 +"
80 +
81 +distutils_enable_tests pytest
82 +
83 +python_test() {
84 + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
85 + einfo "Skipping tests on ${EPYTHON}"
86 + return
87 + fi
88 +
89 + local -x EPYTEST_DESELECT=(
90 + # these run pip to install stuff
91 + tests/backend/dep/test_core.py::test_dependency_found
92 + tests/backend/dep/test_core.py::test_extra_met
93 + tests/backend/dep/test_core.py::test_extra_no_dependencies
94 + tests/backend/dep/test_core.py::test_extra_unmet
95 + tests/backend/dep/test_core.py::test_unknown_extra
96 + tests/backend/dep/test_core.py::test_version_unmet
97 + )
98 +
99 + # top-level "tests" directory contains tests both for hatch
100 + # and hatchling
101 + cd "${WORKDIR}/${MY_P}" || die
102 + local -x PYTHONPATH="src:${PYTHONPATH}"
103 + epytest tests/backend
104 +}