diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-03-28 01:14:20 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-03-28 01:26:08 -0700 |
commit | 215cc9bc89f7c195163409b211179ee92ecc8e31 (patch) | |
tree | ed028aed903e9a28ae33693607a0ff1477ad68ca | |
parent | net-fs/minio: Version bump (diff) | |
download | gentoo-215cc9bc89f7c195163409b211179ee92ecc8e31.tar.gz gentoo-215cc9bc89f7c195163409b211179ee92ecc8e31.tar.bz2 gentoo-215cc9bc89f7c195163409b211179ee92ecc8e31.zip |
dev-python/semver: new package
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r-- | dev-python/semver/Manifest | 1 | ||||
-rw-r--r-- | dev-python/semver/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/semver/semver-2.8.1.ebuild | 32 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/semver/Manifest b/dev-python/semver/Manifest new file mode 100644 index 000000000000..dfd236487ff8 --- /dev/null +++ b/dev-python/semver/Manifest @@ -0,0 +1 @@ +DIST semver-2.8.1.tar.gz 15000 BLAKE2B 71fee2372713cefd11778fb223d58cc1e41909cc8adb8b5b3330770eb1ebcaf45c3250c553c40b85c54a59b1427308e7c143e1cfadf6276d7652df339263c65d SHA512 a457b1a170b309ee563955e4c506de56a061acd4e7e92a58fd8bd78801e33207fbc5e0e026fc0ea243301bf9ecfe0b219c0d95681aa10066480cbd3974e17d3a diff --git a/dev-python/semver/metadata.xml b/dev-python/semver/metadata.xml new file mode 100644 index 000000000000..6ddccbbf5f06 --- /dev/null +++ b/dev-python/semver/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> + <longdescription lang="en"> + A Python module for semantic versioning. Simplifies comparing versions. + </longdescription> + <upstream> + <remote-id type="github">k-bx/python-semver</remote-id> + <remote-id type="pypi">semver</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/semver/semver-2.8.1.ebuild b/dev-python/semver/semver-2.8.1.ebuild new file mode 100644 index 000000000000..b7312e165270 --- /dev/null +++ b/dev-python/semver/semver-2.8.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) + +inherit distutils-r1 + +DESCRIPTION="A Python module for semantic versioning" +HOMEPAGE="https://github.com/k-bx/python-semver" +SRC_URI="https://github.com/k-bx/python-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" + +RDEPEND="" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/python-${P}" + +python_test() { + pytest -v || die "Tests failed with ${EPYTHON}" +} |