From a7339931a4fc6d0cb21dfb7d95b1e62d3d0d37c6 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 11 Apr 2022 13:55:09 +0200 Subject: [PATCH] dev-python/distro-oem: Bump to 1.7.0 --- .../dev-python/distro-oem/Manifest | 2 +- ....6.0-r1.ebuild => distro-oem-1.7.0.ebuild} | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) rename sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/{distro-oem-1.6.0-r1.ebuild => distro-oem-1.7.0.ebuild} (56%) diff --git a/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/Manifest b/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/Manifest index 2f76217d5a..fbb1ae14b6 100644 --- a/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/Manifest +++ b/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/Manifest @@ -1 +1 @@ -DIST distro-1.6.0.tar.gz 69377 BLAKE2B 69119c3acfc12327a55e8b16f4e183fe1b039e965a5432081d83c6e5d0f6367846c403eb34764f2436beec173d3ceaa5265e0e1e7d786d1008e84772426ef049 SHA512 1682a52e617ba440eb0fac28ed653dd3bbc53012e3dc81099d792f088d399c1a6aba62d638e7b50aad88de2cd0935579a0bdd29a9abb5aad9d0c68bd90311268 +DIST distro-1.7.0.tar.gz 58164 BLAKE2B 22bbd2daf9cac589530eac9a58767db6b9e389b77719516f7386a9377b49ba4c9b696165701acc42366b760b9a632c70a2243a58c12a367fef2a0a770a4aea44 SHA512 14516ecab33ee8c57c35a8279eb515fd699031fabac7d8886092ea98696797d55503179870aeb513a85e1a66c7e69f2f60bb6ea9fc935be975cb5135e1917ecc diff --git a/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.6.0-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.7.0.ebuild similarity index 56% rename from sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.6.0-r1.ebuild rename to sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.7.0.ebuild index e7c12f03f3..146f015bd5 100644 --- a/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.6.0-r1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/dev-python/distro-oem/distro-oem-1.7.0.ebuild @@ -1,14 +1,17 @@ -# Copyright 2021 Microsoft Corporation +# Copyright 2021-2022 Microsoft Corporation # Distributed under the terms of GNU General Public License v2 -EAPI=7 +EAPI=8 MY_PN='distro' MY_P="${MY_PN}-${PV}" -DESCRIPTION="OS platform information API" -HOMEPAGE="https://github.com/python-distro/distro" -SRC_URI="${HOMEPAGE}/releases/download/v${PV}/${MY_P}.tar.gz" +DESCRIPTION="Reliable machine-readable Linux distribution information for Python" +HOMEPAGE=" + https://distro.readthedocs.io/en/latest/ + https://pypi.org/project/distro/ + https://github.com/python-distro/distro/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="Apache-2.0" KEYWORDS="amd64 arm64" @@ -30,5 +33,9 @@ src_compile() { src_install() { insinto "/usr/share/oem/python/$(get_libdir)/python${DEP_PYVER}/site-packages" - doins "${S}/distro.py" + local ssd="${S}/src/distro" + doins "${ssd}/distro.py" + doins "${ssd}/__init__.py" + doins "${ssd}/__main__.py" + doins "${ssd}/py.typed" }