commit:     60badbf34066a6fbce89184dcc25fd2060c401eb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 07:09:30 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 08:12:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60badbf3

dev-python/sqlalchemy: Bump to 1.4.36

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/sqlalchemy/Manifest                 |  1 +
 dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild | 83 ++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
index dbee9b2d4c8c..5da76d79822e 100644
--- a/dev-python/sqlalchemy/Manifest
+++ b/dev-python/sqlalchemy/Manifest
@@ -3,3 +3,4 @@ DIST SQLAlchemy-1.4.31.tar.gz 7999646 BLAKE2B 
4c394aaa4bc5636cc90f06017466c227b5
 DIST SQLAlchemy-1.4.32.tar.gz 8077546 BLAKE2B 
8eb0b617cdc147da21722f3e9b7c9c0659c9bc02f0530c724a7c8afafa9ea018c0558b58baa0387d84627115d474e87996fe8c7768ac53d55a0c817bc8f167b7
 SHA512 
e9bc125cb531182c97c9588bc7b87028ec334efe63d81d0bee0e7f74b0ce88ac183236298a05cdac42f3a0241b543528bf6f225d199e4bf6d8199caca63581bd
 DIST SQLAlchemy-1.4.34.tar.gz 8133799 BLAKE2B 
ec8b14bf4df2d9188805bf49aac394d5944e234099bcb9f20cbbb4114c757bee5933d1fd7025e6eda01bf7be6603cae83ff751928783134031ddf1ccf5d36da7
 SHA512 
c3158dc2c52dd865d98b84ce4cf0adde38300504d5f5ff61f953927baf8f2264d53255f6e83e2ce2f720529f1e8b3e57e684d56a57fd6a0881bd4f1ba10b373f
 DIST SQLAlchemy-1.4.35.tar.gz 8136388 BLAKE2B 
01a47eab8e11daef133a218a7ef13fa149fb4616b531c3c6d227cc26e3264c259f42770b72335a9fbda5e66ae1ce242fcbe676a528ca1af896d990a84a1f1a57
 SHA512 
195ab35934bca36e7c4c2127f153eff31775f7f150163912f79143efae63911eded67d8645e08ede2c533c675d18c3c5796235e0c0f6d1e6ebb97664ac13f171
+DIST SQLAlchemy-1.4.36.tar.gz 8146415 BLAKE2B 
62560ac2f2c542d60588a24eef225d39f1b6c4cf6feddfac4631e06731206a837cc0f76b88b40c73600361243857e9e1768b4b4ac0bf5ee8e28736d81028ae58
 SHA512 
c9bb38ce5eeb7817727e93695f10cf5c247710b809f3298b233ed8be4e2cc08e5a14581d0c5aa2af02d7a49f036fe3a0bb7a88120b58bdce0f115016bdaf2c77

diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild 
b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild
new file mode 100644
index 000000000000..00bf1bc4a0bc
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+PYTHON_REQ_USE="sqlite?"
+
+inherit distutils-r1 optfeature
+
+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/
+       https://github.com/sqlalchemy/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 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="examples +sqlite test"
+
+BDEPEND="
+       test? (
+               $(python_gen_impl_dep sqlite)
+       )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_IGNORE=(
+       # hardcode call counts specific to Python versions
+       test/aaa_profiling
+)
+
+src_prepare() {
+       sed -i -e '/greenlet/d' setup.cfg || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local EPYTEST_DESELECT=()
+       [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
+               
test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access
+       )
+
+       # upstream's test suite is horribly hacky; it relies on disabling
+       # the warnings plugin and turning warnings into errors;  this also
+       # means that any DeprecationWarnings from third-party plugins cause
+       # everything to explode
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       local -x PYTEST_PLUGINS=
+       # upstream automagically depends on xdist when it is importable
+       if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
+               PYTEST_PLUGINS+=xdist.plugin
+       fi
+       epytest
+}
+
+python_install_all() {
+       if use examples; then
+               docompress -x "/usr/share/doc/${PF}/examples"
+               dodoc -r examples
+       fi
+
+       distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+       optfeature "asyncio support" dev-python/greenlet
+       optfeature "MySQL support" \
+               dev-python/mysqlclient \
+               dev-python/pymysql \
+               dev-python/mysql-connector-python
+       optfeature "mssql support" dev-python/pymssql
+       optfeature "postgresql support" dev-python/psycopg:2
+}

Reply via email to