dev-python/sqlalchemy-rqlite: new package

Package-Manager: portage-2.2.28
This commit is contained in:
Zac Medico
2016-05-02 02:26:54 -07:00
parent ea8a1dae2b
commit 8abfc83bee
4 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST sqlalchemy-rqlite-1.0.tar.gz 3910 SHA256 69505027aa6c3e8c7d8ac95bc33635c92641970b46b1399e53d5ca65462d40ef SHA512 794d0a1d80803f624af4b530efe277947d3a8fa7001df2177de6bdb34ffc9fc76e22c8b73caad7cda02429ddc251fdcbdd8e95ea286a6540054efb28ee53d2bb WHIRLPOOL de38d8d234d55c0ea3cd86568e1cd6961b97a2ae6f77e74615781267070a692faf55b1bd98dc80bb9b05e2ca62be49efb91f1c4d28f9d680c5e268464a50b396

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">rqlite/sqlalchemy-rqlite</remote-id>
</upstream>
<maintainer>
<email>zmedico@gentoo.org</email>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,41 @@
# 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="A SQLAlchemy dialect for rqlite"
EGIT_REPO_URI="https://github.com/rqlite/sqlalchemy-rqlite.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}]
dev-python/pyrqlite[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${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/sqlalchemy_rqlite/constants.py || die
distutils-r1_src_prepare
}
python_test() {
esetup.py test || die "tests failed"
esetup.py lint -f text -E || die "pylint failed"
}

View File

@@ -0,0 +1,40 @@
# 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="A SQLAlchemy dialect for rqlite"
EGIT_REPO_URI="https://github.com/rqlite/sqlalchemy-rqlite.git"
HOMEPAGE="${EGIT_REPO_URI%.git}/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/pyrqlite[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${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/sqlalchemy_rqlite/constants.py || die
distutils-r1_src_prepare
}
python_test() {
esetup.py test || die "tests failed"
esetup.py lint -f text -E || die "pylint failed"
}