commit:     3ea9509a57dda4fa6ad2e660906724901410f4ea
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 21 19:36:34 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 21 20:06:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ea9509a

dev-python/oslo-utils: Use pypi.eclass

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/oslo-utils/oslo-utils-6.1.0.ebuild | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild 
b/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild
index 03d7e7beb37d..653f90908b50 100644
--- a/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild
+++ b/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild
@@ -4,15 +4,18 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYPI_PN=${PN/-/.}
 PYTHON_COMPAT=( python3_{9..11} )
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
-MY_P=${P/-/.}
 DESCRIPTION="Oslo Utility library"
-HOMEPAGE="https://launchpad.net/oslo";
-SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+HOMEPAGE="
+       https://opendev.org/openstack/oslo.utils/
+       https://github.com/openstack/oslo.utils/
+       https://pypi.org/project/oslo.utils/
+"
 
 LICENSE="Apache-2.0"
 SLOT="0"

Reply via email to