From 763406f58235a294fd5ed9f151741196251d450f Mon Sep 17 00:00:00 2001 From: zangrc Date: Tue, 14 Jan 2020 09:27:45 +0800 Subject: python-semantic-version: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../python/python-semantic-version.inc | 24 ++++++++++++++++++++ .../python/python-semantic-version_2.4.2.bb | 26 ++-------------------- .../python/python3-semantic-version_2.4.2.bb | 2 ++ 3 files changed, 28 insertions(+), 24 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-semantic-version.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-semantic-version_2.4.2.bb diff --git a/meta-openstack/recipes-devtools/python/python-semantic-version.inc b/meta-openstack/recipes-devtools/python/python-semantic-version.inc new file mode 100644 index 0000000..e003c0c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-semantic-version.inc @@ -0,0 +1,24 @@ +DESCRIPTION = "A library which provides a few tools to handle SemVer in Python." +HOMEPAGE = "http://pypi.python.org/pypi/semantic_version" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a7dcaa0740d59f8f13ef05a3d0ed7313" + +PYPI_PACKAGE = "semantic_version" + +SRC_URI[md5sum] = "fd7d5ade76e78d8540b9a4044496a57c" +SRC_URI[sha256sum] = "7e8b7fa74a3bc9b6e90b15b83b9bc2377c78eaeae3447516425f475d5d6932d2" + +#export BUILD_SYS +#export HOST_SYS + +inherit pypi + +# DEPENDS_default: python-pip + +DEPENDS += " \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + " diff --git a/meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb b/meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb index a038abb..2ca2d92 100644 --- a/meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb +++ b/meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb @@ -1,24 +1,2 @@ -DESCRIPTION = "A library which provides a few tools to handle SemVer in Python." -HOMEPAGE = "http://pypi.python.org/pypi/semantic_version" -SECTION = "devel/python" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a7dcaa0740d59f8f13ef05a3d0ed7313" - -PYPI_PACKAGE = "semantic_version" - -SRC_URI[md5sum] = "fd7d5ade76e78d8540b9a4044496a57c" -SRC_URI[sha256sum] = "7e8b7fa74a3bc9b6e90b15b83b9bc2377c78eaeae3447516425f475d5d6932d2" - -#export BUILD_SYS -#export HOST_SYS - -inherit setuptools pypi - -# DEPENDS_default: python-pip - -DEPENDS += " \ - " - -# RDEPENDS_default: -RDEPENDS_${PN} += " \ - " +require python-semantic-version.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-semantic-version_2.4.2.bb b/meta-openstack/recipes-devtools/python/python3-semantic-version_2.4.2.bb new file mode 100644 index 0000000..f4191f5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-semantic-version_2.4.2.bb @@ -0,0 +1,2 @@ +require python-semantic-version.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf