dev-python/sqlalchemy: bump to 1.3.17
authorViktar Patotski <xp.vit.blr@gmail.com>
Thu, 14 May 2020 12:55:54 +0000 (14:55 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 18 May 2020 18:21:30 +0000 (20:21 +0200)
This PR updates dev-python/sqlalchemy to latest version: 1.3.17,
also changes homepage link to HTTPS on stable version 1.3.11.

Signed-off-by: Viktar Patotski <xp.vit.blr@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/15864
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/sqlalchemy/Manifest
dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild
dev-python/sqlalchemy/sqlalchemy-1.3.17.ebuild [new file with mode: 0644]

index 7eef4a2e3779b6db50686b0fa1a6ef08ceae43c5..556c40c1eaa24802532171b79899548f2ea8a275 100644 (file)
@@ -1 +1,2 @@
 DIST SQLAlchemy-1.3.11.tar.gz 6007784 BLAKE2B c889ea28ae08fcb83d338ab01a64533142428ee91a6c11b9a7f2116f99161c066e66f49d76bdd2c7600f1a7f86a2add217f49dda4cf97566a875f28d3d4b24be SHA512 c691539db4edd62af749087728dfd424010bfb3ca2cc8503a4b96c1625d059d4c2a748b9a35cc870cc99ca9df61966cce406f9b570b25e55c3632a99b8621e74
+DIST SQLAlchemy-1.3.17.tar.gz 5979141 BLAKE2B f0fa46493461f532ebca9420fc9f49a2c04af888aa99653946a5bb563d40b8bb714a03301300ebb80cca76a99f8226ddfcde4216e8fc2593d3a161b5072276ab SHA512 6f6d54b9018ece6c289f28a3a41ffb1b2216206edee08c49f387e9f30740969dfe0f8272654ce4efca159a2a6619e76c41b2ad2b10c391cdd64681ac17d0bc79
index 51afd67393d6371215c5ec8eea6ad91b9fd70301..d2b10bbb28f36d7ccf2f5010fed2a0704e957034 100644 (file)
@@ -12,7 +12,7 @@ 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.org/project/SQLAlchemy/"
+HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
 SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
 
 LICENSE="MIT"
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.3.17.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.3.17.ebuild
new file mode 100644 (file)
index 0000000..9f7ad07
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+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="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="examples +sqlite test"
+
+REQUIRED_USE="test? ( sqlite )"
+
+BDEPEND="
+       test? (
+               dev-python/mock[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx doc
+
+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_install_all() {
+       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
+}