diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-05-02 00:35:10 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-05-02 00:35:55 -0700 |
commit | 6bd2a4d9ba6b29eefe87203ea6961e42942146fa (patch) | |
tree | ba2ac61ee476097be3ad45bfa55a79fc72a19ef8 /dev-python/pyrqlite | |
parent | f6a0520f3a163763cbd9758914d1dff2ed710690 (diff) | |
download | gentoo-6bd2a4d9ba6b29eefe87203ea6961e42942146fa.tar.gz gentoo-6bd2a4d9ba6b29eefe87203ea6961e42942146fa.tar.xz |
dev-python/pyrqlite: new package
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python/pyrqlite')
-rw-r--r-- | dev-python/pyrqlite/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyrqlite/metadata.xml | 10 | ||||
-rw-r--r-- | dev-python/pyrqlite/pyrqlite-2.0.ebuild | 39 | ||||
-rw-r--r-- | dev-python/pyrqlite/pyrqlite-9999.ebuild | 38 |
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/pyrqlite/Manifest b/dev-python/pyrqlite/Manifest new file mode 100644 index 00000000000..a39876d4b6e --- /dev/null +++ b/dev-python/pyrqlite/Manifest @@ -0,0 +1 @@ +DIST pyrqlite-2.0.tar.gz 7224 SHA256 7d924a66e05087f5a0d768c8727d271ab0005d7f312036000ffdf11378d5fd32 SHA512 9d284161e492683955000dd3e3f0593b79e69ba5eb087bee4d3ffc1e4be9de1c362212936b10e1781538eacd838e6ed22adfc82e8cc0dd00e1d3318a4dc14720 WHIRLPOOL 1ef58c2abda36758cf4379bbf8064068004a5907af373303877a84181db681e74ec3dd3c8726e21d261e9e0095219393d493353c5bd574cc4a1a24d923e9c7e4 diff --git a/dev-python/pyrqlite/metadata.xml b/dev-python/pyrqlite/metadata.xml new file mode 100644 index 00000000000..7a0a25fc94c --- /dev/null +++ b/dev-python/pyrqlite/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">rqlite/pyrqlite</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyrqlite/pyrqlite-2.0.ebuild b/dev-python/pyrqlite/pyrqlite-2.0.ebuild new file mode 100644 index 00000000000..3f58fe14014 --- /dev/null +++ b/dev-python/pyrqlite/pyrqlite-2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit distutils-r1 + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 +fi + +DESCRIPTION="Python client for rqlite" +EGIT_REPO_URI="https://github.com/rqlite/pyrqlite.git" +HOMEPAGE="${EGIT_REPO_URI%.git}/" +SRC_URI="${EGIT_REPO_URI%.git}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] + )" + +src_prepare() { + sed -e "s:^__version__ = .*:__version__ = '${PV}':" -i src/${PN}/constants.py || die + distutils-r1_src_prepare +} + +python_test() { + esetup.py test || die "tests failed" + esetup.py lint -f text -E || die "pylint failed" +} diff --git a/dev-python/pyrqlite/pyrqlite-9999.ebuild b/dev-python/pyrqlite/pyrqlite-9999.ebuild new file mode 100644 index 00000000000..cef3352946d --- /dev/null +++ b/dev-python/pyrqlite/pyrqlite-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit distutils-r1 + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 +fi + +DESCRIPTION="Python client for rqlite" +EGIT_REPO_URI="https://github.com/rqlite/pyrqlite.git" +HOMEPAGE="${EGIT_REPO_URI%.git}/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] + )" + +src_prepare() { + sed -e "s:^__version__ = .*:__version__ = '${PV}':" -i src/${PN}/constants.py || die + distutils-r1_src_prepare +} + +python_test() { + esetup.py test || die "tests failed" + esetup.py lint -f text -E || die "pylint failed" +} |