public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dev-zero:master commit in: dev-python/sqlalchemy/
@ 2016-10-10 12:02 Tiziano Müller
  0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2016-10-10 12:02 UTC (permalink / raw
  To: gentoo-commits

commit:     5458887e3eeacbc05a0fce51011740fbd2dceec0
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 12:01:48 2016 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Mon Oct 10 12:01:48 2016 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=5458887e

dev-python/sqlalchemy: version bump

 dev-python/sqlalchemy/Manifest                |  1 +
 dev-python/sqlalchemy/metadata.xml            | 11 ++++
 dev-python/sqlalchemy/sqlalchemy-1.1.1.ebuild | 74 +++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)

diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
new file mode 100644
index 0000000..9dc4717
--- /dev/null
+++ b/dev-python/sqlalchemy/Manifest
@@ -0,0 +1 @@
+DIST SQLAlchemy-1.1.1.tar.gz 5099869 SHA256 2ef167c95042c43e48e51fe4e9745178be3dafb53efc6d091d2485fff9160230 SHA512 6b889174a2934d47b00c0ab233cc62c2ed5b9a2e2b0d0045c29e09ce2eec411197c98cd5c27b26067c1c98c7a7001f2790954be15a7e313ad9fc8de29dfe0cc9 WHIRLPOOL 864ad756bffd202e5335ba28cf52cd7ecf08c4fcebc315297450322d2d3240fe9c3f3052b71c23f6d9d2cbe5a4d5121da6b90080bb1b60b47c578cb9287154f2

diff --git a/dev-python/sqlalchemy/metadata.xml b/dev-python/sqlalchemy/metadata.xml
new file mode 100644
index 0000000..c94fc8a
--- /dev/null
+++ b/dev-python/sqlalchemy/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>python@gentoo.org</email>
+		<name>Python</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="pypi">SQLAlchemy</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/sqlalchemy/sqlalchemy-1.1.1.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.1.1.ebuild
new file mode 100644
index 0000000..243bc3f
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-1.1.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
+PYTHON_REQ_USE="sqlite?"
+
+inherit distutils-r1 eutils flag-o-matic
+
+MY_PN="SQLAlchemy"
+MY_P="${MY_PN}-${PV/_beta/b}"
+
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
+HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples +sqlite test"
+
+REQUIRED_USE="test? ( sqlite )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	test? (
+		dev-python/pytest[${PYTHON_USEDEP}]
+		$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
+	)"
+
+S="${WORKDIR}/${MY_P}"
+
+python_prepare_all() {
+	# Disable tests hardcoding function call counts specific to Python versions.
+	rm -r test/aaa_profiling || die
+	distutils-r1_python_prepare_all
+}
+
+python_compile() {
+	if ! python_is_python3; then
+		local CFLAGS=${CFLAGS}
+		append-cflags -fno-strict-aliasing
+	fi
+	distutils-r1_python_compile
+}
+
+python_test() {
+	# Create copies of necessary files in BUILD_DIR.
+	# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
+	cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
+	pushd "${BUILD_DIR}" > /dev/null || die
+	if [[ "${EPYTHON}" == "python3.2" ]]; then
+		2to3 --no-diffs -w test || die
+	fi
+	# Recently upstream elected to make the testsuite also pytest capable
+	# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
+	py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
+	popd > /dev/null
+}
+
+python_install_all() {
+	use doc && HTML_DOCS=( doc/. )
+	use examples && dodoc -r examples
+
+	distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+	optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
+	optfeature "mssql support" dev-python/pymssql
+	optfeature "postgresql support" dev-python/psycopg:2
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-10 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10 12:02 [gentoo-commits] dev/dev-zero:master commit in: dev-python/sqlalchemy/ Tiziano Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox