Skip to content

Commit 61184d8

Browse files
committed
dev-python/jaraco-functools: new package, add 3.9.0
Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 122df1f commit 61184d8

File tree

4 files changed

+81
-3
lines changed

4 files changed

+81
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,12 +612,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
612612

613613
## Licenses
614614
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
615-
There are 1762 Ebuilds in total, 1751 of them have in total 1772 (43 different) licenses assigned.
615+
There are 1764 Ebuilds in total, 1753 of them have in total 1774 (43 different) licenses assigned.
616616

617617
|License| Ebuilds using it|
618618
|-------|-----|
619-
|MIT|1029|
620-
|Apache-2.0|369|
619+
|MIT|1030|
620+
|Apache-2.0|370|
621621
|GPL-3|106|
622622
|BSD|100|
623623
|GPL-2|24|

dev-python/jaraco-functools/Manifest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DIST jaraco.functools-3.9.0.tar.gz 17221 BLAKE2B 2476e7cc9440ac21abf4c7d4d5af5d98f7a48c6fb55ef93428936265843a0e9bd02b22e8a2a748e7844015c530bc46ad67be8447b0eddb9b7ddcc1522b53c42b SHA512 5ec081aa07e736b6cacc1f6213e3212b4828824e86033b440d4fc630b0a9cf8e67497b37a239e167e421c41852ea6c0c65a4ccd39d73cc7f1cb831f605b86f00
2+
EBUILD jaraco-functools-3.9.0.ebuild 1434 BLAKE2B 2494ed86e6fd49e26c9db9e449f33413ecb364f2e4d512c450285717ab89afaf398065cbf49763f3252145b61f3bce0f3dff9efc4f05821af72aea80ac3f7947 SHA512 25255fda6d055d613328f6fcd00a573f89129525544c7cd354f14be79b778d7c3f78ba62e521103f1f92bba0fa8b973f28549bf072e14c2487a56db17ce09bb9
3+
MISC metadata.xml 526 BLAKE2B 0decdae1153c58866484de53317285bb2ebcd04e0269d17983ccb5efb777a8ee95e29059a7b1dc7ad14ee91cdb9c88bfc1282cfce77ec1b771f242cec1afd9cb SHA512 9ee5bac06ad6435c2df22affc8982abd3fdb40a0816fa89841d169e113828d1650243e7bac1dbf9a24ea63fbe967bd6b9e7e9817971727f801d19b25fda7fc18
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
5+
EAPI=8
6+
7+
DISTUTILS_USE_PEP517=flit
8+
PYPI_NO_NORMALIZE=1
9+
PYPI_PN=${PN/-/.}
10+
PYTHON_COMPAT=( python3_{10..12} )
11+
12+
inherit distutils-r1 pypi
13+
14+
DESCRIPTION="Additional functions used by other projects by developer jaraco"
15+
HOMEPAGE="
16+
https://github.com/jaraco/jaraco.functools/
17+
https://pypi.org/project/jaraco.functools/
18+
"
19+
20+
LICENSE="MIT"
21+
SLOT="0"
22+
KEYWORDS="amd64 arm arm64 x86"
23+
24+
RDEPEND="
25+
>=dev-python/more-itertools-0.12.0-r1[${PYTHON_USEDEP}]
26+
$(python_gen_cond_dep '
27+
dev-python/typing-extensions[${PYTHON_USEDEP}]
28+
' 3.10)
29+
"
30+
BDEPEND="
31+
test? (
32+
dev-python/jaraco-classes[${PYTHON_USEDEP}]
33+
)
34+
"
35+
36+
distutils_enable_tests pytest
37+
38+
src_configure() {
39+
grep -q 'build-backend = "setuptools' pyproject.toml ||
40+
die "Upstream changed build-backend, recheck"
41+
# write a custom pyproject.toml to ease setuptools bootstrap
42+
cat > pyproject.toml <<-EOF || die
43+
[build-system]
44+
requires = ["flit_core >=3.2,<4"]
45+
build-backend = "flit_core.buildapi"
46+
47+
[project]
48+
name = "jaraco.functools"
49+
version = "${PV}"
50+
description = "Functools like those found in stdlib"
51+
EOF
52+
}
53+
54+
python_install() {
55+
distutils-r1_python_install
56+
# rename to workaround a bug in pkg_resources
57+
# https://bugs.gentoo.org/834522
58+
mv "${D}$(python_get_sitedir)"/jaraco{_,.}functools-${PV}.dist-info || die
59+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="project">
5+
<email>[email protected]</email>
6+
<name>Andreas Billmeier</name>
7+
</maintainer>
8+
<upstream>
9+
<remote-id type="pypi">jaraco.functools</remote-id>
10+
<remote-id type="github">jaraco/jaraco.functools</remote-id>
11+
<maintainer status="unknown">
12+
<email>[email protected]</email>
13+
<name>Jason R. Coombs</name>
14+
</maintainer>
15+
</upstream>
16+
</pkgmetadata>

0 commit comments

Comments
 (0)