Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/
Date: Wed, 27 Apr 2022 08:12:19
Message-Id: 1651047126.60badbf34066a6fbce89184dcc25fd2060c401eb.mgorny@gentoo
1 commit: 60badbf34066a6fbce89184dcc25fd2060c401eb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 07:09:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 27 08:12:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60badbf3
7
8 dev-python/sqlalchemy: Bump to 1.4.36
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/sqlalchemy/Manifest | 1 +
13 dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild | 83 ++++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index dbee9b2d4c8c..5da76d79822e 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -3,3 +3,4 @@ DIST SQLAlchemy-1.4.31.tar.gz 7999646 BLAKE2B 4c394aaa4bc5636cc90f06017466c227b5
21 DIST SQLAlchemy-1.4.32.tar.gz 8077546 BLAKE2B 8eb0b617cdc147da21722f3e9b7c9c0659c9bc02f0530c724a7c8afafa9ea018c0558b58baa0387d84627115d474e87996fe8c7768ac53d55a0c817bc8f167b7 SHA512 e9bc125cb531182c97c9588bc7b87028ec334efe63d81d0bee0e7f74b0ce88ac183236298a05cdac42f3a0241b543528bf6f225d199e4bf6d8199caca63581bd
22 DIST SQLAlchemy-1.4.34.tar.gz 8133799 BLAKE2B ec8b14bf4df2d9188805bf49aac394d5944e234099bcb9f20cbbb4114c757bee5933d1fd7025e6eda01bf7be6603cae83ff751928783134031ddf1ccf5d36da7 SHA512 c3158dc2c52dd865d98b84ce4cf0adde38300504d5f5ff61f953927baf8f2264d53255f6e83e2ce2f720529f1e8b3e57e684d56a57fd6a0881bd4f1ba10b373f
23 DIST SQLAlchemy-1.4.35.tar.gz 8136388 BLAKE2B 01a47eab8e11daef133a218a7ef13fa149fb4616b531c3c6d227cc26e3264c259f42770b72335a9fbda5e66ae1ce242fcbe676a528ca1af896d990a84a1f1a57 SHA512 195ab35934bca36e7c4c2127f153eff31775f7f150163912f79143efae63911eded67d8645e08ede2c533c675d18c3c5796235e0c0f6d1e6ebb97664ac13f171
24 +DIST SQLAlchemy-1.4.36.tar.gz 8146415 BLAKE2B 62560ac2f2c542d60588a24eef225d39f1b6c4cf6feddfac4631e06731206a837cc0f76b88b40c73600361243857e9e1768b4b4ac0bf5ee8e28736d81028ae58 SHA512 c9bb38ce5eeb7817727e93695f10cf5c247710b809f3298b233ed8be4e2cc08e5a14581d0c5aa2af02d7a49f036fe3a0bb7a88120b58bdce0f115016bdaf2c77
25
26 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild
27 new file mode 100644
28 index 000000000000..00bf1bc4a0bc
29 --- /dev/null
30 +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
39 +PYTHON_REQ_USE="sqlite?"
40 +
41 +inherit distutils-r1 optfeature
42 +
43 +MY_PN="SQLAlchemy"
44 +MY_P="${MY_PN}-${PV/_beta/b}"
45 +
46 +DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
47 +HOMEPAGE="
48 + https://www.sqlalchemy.org/
49 + https://pypi.org/project/SQLAlchemy/
50 + https://github.com/sqlalchemy/sqlalchemy/
51 +"
52 +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
53 +S="${WORKDIR}/${MY_P}"
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +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"
58 +IUSE="examples +sqlite test"
59 +
60 +BDEPEND="
61 + test? (
62 + $(python_gen_impl_dep sqlite)
63 + )
64 +"
65 +
66 +distutils_enable_tests pytest
67 +
68 +EPYTEST_IGNORE=(
69 + # hardcode call counts specific to Python versions
70 + test/aaa_profiling
71 +)
72 +
73 +src_prepare() {
74 + sed -i -e '/greenlet/d' setup.cfg || die
75 + distutils-r1_src_prepare
76 +}
77 +
78 +python_test() {
79 + local EPYTEST_DESELECT=()
80 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
81 + test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access
82 + )
83 +
84 + # upstream's test suite is horribly hacky; it relies on disabling
85 + # the warnings plugin and turning warnings into errors; this also
86 + # means that any DeprecationWarnings from third-party plugins cause
87 + # everything to explode
88 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
89 + local -x PYTEST_PLUGINS=
90 + # upstream automagically depends on xdist when it is importable
91 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
92 + PYTEST_PLUGINS+=xdist.plugin
93 + fi
94 + epytest
95 +}
96 +
97 +python_install_all() {
98 + if use examples; then
99 + docompress -x "/usr/share/doc/${PF}/examples"
100 + dodoc -r examples
101 + fi
102 +
103 + distutils-r1_python_install_all
104 +}
105 +
106 +pkg_postinst() {
107 + optfeature "asyncio support" dev-python/greenlet
108 + optfeature "MySQL support" \
109 + dev-python/mysqlclient \
110 + dev-python/pymysql \
111 + dev-python/mysql-connector-python
112 + optfeature "mssql support" dev-python/pymssql
113 + optfeature "postgresql support" dev-python/psycopg:2
114 +}