From b1a11870026916901b7d061228350da051368ba4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 5 Feb 2023 18:08:40 +0100 Subject: Rename dev-python/{pkgcraft-python → pkgcraft} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pkgcraft-python/Manifest | 1 - dev-python/pkgcraft-python/metadata.xml | 15 ----- .../pkgcraft-python/pkgcraft-python-0.0.3.ebuild | 74 ---------------------- .../pkgcraft-python/pkgcraft-python-9999.ebuild | 74 ---------------------- dev-python/pkgcraft/Manifest | 1 + dev-python/pkgcraft/metadata.xml | 15 +++++ dev-python/pkgcraft/pkgcraft-0.0.3.ebuild | 74 ++++++++++++++++++++++ dev-python/pkgcraft/pkgcraft-9999.ebuild | 74 ++++++++++++++++++++++ 8 files changed, 164 insertions(+), 164 deletions(-) delete mode 100644 dev-python/pkgcraft-python/Manifest delete mode 100644 dev-python/pkgcraft-python/metadata.xml delete mode 100644 dev-python/pkgcraft-python/pkgcraft-python-0.0.3.ebuild delete mode 100644 dev-python/pkgcraft-python/pkgcraft-python-9999.ebuild create mode 100644 dev-python/pkgcraft/Manifest create mode 100644 dev-python/pkgcraft/metadata.xml create mode 100644 dev-python/pkgcraft/pkgcraft-0.0.3.ebuild create mode 100644 dev-python/pkgcraft/pkgcraft-9999.ebuild (limited to 'dev-python') diff --git a/dev-python/pkgcraft-python/Manifest b/dev-python/pkgcraft-python/Manifest deleted file mode 100644 index 2f00c0c73e36..000000000000 --- a/dev-python/pkgcraft-python/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pkgcraft-0.0.3.tar.gz 1239742 BLAKE2B c9148d3ac34d80c47db5d1080b3806e6b64fffa226d595a11499215626342286efc19b86fd1e158a8ca0021ab8946d35e4393fceaf8a318c258114a6c2e1ffdf SHA512 53ae196d073271654807ef5587c38d83e10b606f59baf63e3c8da7ce1b1d80d7acd1e3e201ebba1346c14d101eded666d6ad9bdf972b36c574c9b494147baa4a diff --git a/dev-python/pkgcraft-python/metadata.xml b/dev-python/pkgcraft-python/metadata.xml deleted file mode 100644 index 39d39075985d..000000000000 --- a/dev-python/pkgcraft-python/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - sam@gentoo.org - Sam James - - - python@gentoo.org - - - pkgcraft/pkgcraft-python - pkgcraft - - diff --git a/dev-python/pkgcraft-python/pkgcraft-python-0.0.3.ebuild b/dev-python/pkgcraft-python/pkgcraft-python-0.0.3.ebuild deleted file mode 100644 index 5dc743ca3d03..000000000000 --- a/dev-python/pkgcraft-python/pkgcraft-python-0.0.3.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) - -inherit distutils-r1 - -DESCRIPTION="Python bindings for pkgcraft" -HOMEPAGE=" - https://pypi.org/project/pkgcraft/ - https://github.com/pkgcraft/pkgcraft-python -" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python" - inherit git-r3 - - PKGCRAFT_VERSION_MIN="9999" - PKGCRAFT_VERSION_MAX="9999" -else - SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" - S="${WORKDIR}"/${P/-python} - - KEYWORDS="~amd64" - - PKGCRAFT_VERSION_MIN="0.0.4" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="+examples" - -RDEPEND=" - >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= -" -DEPEND="${RDEPEND}" -BDEPEND=" - dev-python/cython - dev-python/setuptools_scm - virtual/pkgconfig -" - -distutils_enable_tests pytest - -python_prepare_all() { - if [[ ${PV} != 9999 ]] ; then - local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) - if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then - die "Mismatch between setup.py's MIN_VERSION and ebuild!" - fi - fi - - distutils-r1_python_prepare_all -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -} - -python_install() { - # Conditional because these aren't installed officially right now - # and the naming is just for convenience. - if use examples ; then - while IFS= read -r -d '' file ; do - python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} - done < <(find "${S}"/examples -type f -executable -print0 || die) - fi - - distutils-r1_python_install -} diff --git a/dev-python/pkgcraft-python/pkgcraft-python-9999.ebuild b/dev-python/pkgcraft-python/pkgcraft-python-9999.ebuild deleted file mode 100644 index 5dc743ca3d03..000000000000 --- a/dev-python/pkgcraft-python/pkgcraft-python-9999.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) - -inherit distutils-r1 - -DESCRIPTION="Python bindings for pkgcraft" -HOMEPAGE=" - https://pypi.org/project/pkgcraft/ - https://github.com/pkgcraft/pkgcraft-python -" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python" - inherit git-r3 - - PKGCRAFT_VERSION_MIN="9999" - PKGCRAFT_VERSION_MAX="9999" -else - SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" - S="${WORKDIR}"/${P/-python} - - KEYWORDS="~amd64" - - PKGCRAFT_VERSION_MIN="0.0.4" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="+examples" - -RDEPEND=" - >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= -" -DEPEND="${RDEPEND}" -BDEPEND=" - dev-python/cython - dev-python/setuptools_scm - virtual/pkgconfig -" - -distutils_enable_tests pytest - -python_prepare_all() { - if [[ ${PV} != 9999 ]] ; then - local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) - if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then - die "Mismatch between setup.py's MIN_VERSION and ebuild!" - fi - fi - - distutils-r1_python_prepare_all -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -} - -python_install() { - # Conditional because these aren't installed officially right now - # and the naming is just for convenience. - if use examples ; then - while IFS= read -r -d '' file ; do - python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} - done < <(find "${S}"/examples -type f -executable -print0 || die) - fi - - distutils-r1_python_install -} diff --git a/dev-python/pkgcraft/Manifest b/dev-python/pkgcraft/Manifest new file mode 100644 index 000000000000..2f00c0c73e36 --- /dev/null +++ b/dev-python/pkgcraft/Manifest @@ -0,0 +1 @@ +DIST pkgcraft-0.0.3.tar.gz 1239742 BLAKE2B c9148d3ac34d80c47db5d1080b3806e6b64fffa226d595a11499215626342286efc19b86fd1e158a8ca0021ab8946d35e4393fceaf8a318c258114a6c2e1ffdf SHA512 53ae196d073271654807ef5587c38d83e10b606f59baf63e3c8da7ce1b1d80d7acd1e3e201ebba1346c14d101eded666d6ad9bdf972b36c574c9b494147baa4a diff --git a/dev-python/pkgcraft/metadata.xml b/dev-python/pkgcraft/metadata.xml new file mode 100644 index 000000000000..39d39075985d --- /dev/null +++ b/dev-python/pkgcraft/metadata.xml @@ -0,0 +1,15 @@ + + + + + sam@gentoo.org + Sam James + + + python@gentoo.org + + + pkgcraft/pkgcraft-python + pkgcraft + + diff --git a/dev-python/pkgcraft/pkgcraft-0.0.3.ebuild b/dev-python/pkgcraft/pkgcraft-0.0.3.ebuild new file mode 100644 index 000000000000..5dc743ca3d03 --- /dev/null +++ b/dev-python/pkgcraft/pkgcraft-0.0.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for pkgcraft" +HOMEPAGE=" + https://pypi.org/project/pkgcraft/ + https://github.com/pkgcraft/pkgcraft-python +" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python" + inherit git-r3 + + PKGCRAFT_VERSION_MIN="9999" + PKGCRAFT_VERSION_MAX="9999" +else + SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" + S="${WORKDIR}"/${P/-python} + + KEYWORDS="~amd64" + + PKGCRAFT_VERSION_MIN="0.0.4" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+examples" + +RDEPEND=" + >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/cython + dev-python/setuptools_scm + virtual/pkgconfig +" + +distutils_enable_tests pytest + +python_prepare_all() { + if [[ ${PV} != 9999 ]] ; then + local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) + if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then + die "Mismatch between setup.py's MIN_VERSION and ebuild!" + fi + fi + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install() { + # Conditional because these aren't installed officially right now + # and the naming is just for convenience. + if use examples ; then + while IFS= read -r -d '' file ; do + python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} + done < <(find "${S}"/examples -type f -executable -print0 || die) + fi + + distutils-r1_python_install +} diff --git a/dev-python/pkgcraft/pkgcraft-9999.ebuild b/dev-python/pkgcraft/pkgcraft-9999.ebuild new file mode 100644 index 000000000000..5dc743ca3d03 --- /dev/null +++ b/dev-python/pkgcraft/pkgcraft-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for pkgcraft" +HOMEPAGE=" + https://pypi.org/project/pkgcraft/ + https://github.com/pkgcraft/pkgcraft-python +" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python" + inherit git-r3 + + PKGCRAFT_VERSION_MIN="9999" + PKGCRAFT_VERSION_MAX="9999" +else + SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" + S="${WORKDIR}"/${P/-python} + + KEYWORDS="~amd64" + + PKGCRAFT_VERSION_MIN="0.0.4" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+examples" + +RDEPEND=" + >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/cython + dev-python/setuptools_scm + virtual/pkgconfig +" + +distutils_enable_tests pytest + +python_prepare_all() { + if [[ ${PV} != 9999 ]] ; then + local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) + if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then + die "Mismatch between setup.py's MIN_VERSION and ebuild!" + fi + fi + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install() { + # Conditional because these aren't installed officially right now + # and the naming is just for convenience. + if use examples ; then + while IFS= read -r -d '' file ; do + python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} + done < <(find "${S}"/examples -type f -executable -print0 || die) + fi + + distutils-r1_python_install +} -- cgit v1.2.3-65-gdbad