Signed-off-by: Michał Górny <
[email protected]>
---
eclass/pypi.eclass | 117 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 117 insertions(+)
create mode 100644 eclass/pypi.eclass
Example use on:
https://github.com/gentoo/gentoo/pull/29361
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
new file mode 100644
index 000000000000..12ce5d4ace15
--- /dev/null
+++ b/eclass/pypi.eclass
@@ -0,0 +1,117 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: pypi.eclass
+# @MAINTAINER:
+# Michał Górny <
[email protected]>
+# @AUTHOR:
+# Michał Górny <
[email protected]>
+# @SUPPORTED_EAPIS: 8
+# @BLURB: A helper eclass to generate PyPI source URIs
+# @DESCRIPTION:
+# The pypi.eclass can be used to easily obtain URLs for artifacts
+# uploaded to PyPI.org. When inherited, the eclass defaults SRC_URI
+# to fetch ${P}.tar.gz sdist.
+#
+# If necessary, SRC_URI can be overriden by the ebuild. Two helper
+# functions, pypi_sdist_url and pypi_wheel_url