Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/
Date: Fri, 09 Sep 2022 07:23:24
Message-Id: 1662708175.039e816ba360edf3f419258636820c3c7cf07a67.arthurzam@gentoo
1 commit: 039e816ba360edf3f419258636820c3c7cf07a67
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 9 06:49:20 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 9 07:22:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=039e816b
7
8 dev-python/sqlalchemy: add 1.4.14
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/sqlalchemy/Manifest | 1 +
13 dev-python/sqlalchemy/sqlalchemy-1.4.14.ebuild | 93 ++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index 885bbf9f1282..11fef09edbfd 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST SQLAlchemy-1.4.14.tar.gz 7599698 BLAKE2B 500a6257829244e1181b8ef5cb39fb87b62ae2d7ca054fedb580b7431b32d15c8f68600b881eb67eb97a73301660ab96793ab12094ae901782ce4eebdc8929db SHA512 2f33ab034467344ffb19aa3934148faaa4a57e4ffa5f97008d814d54149da4e15cfca14d138b9fb656227e25932ca95cf7321209c31c2706405d3916dc2fb9c0
22 DIST SQLAlchemy-1.4.39.tar.gz 8212369 BLAKE2B d65993c4342c2cb5bc76ea4ecc986d0ec521a6eb785604ceeca0c9c22187e4af29fc8bd940a130162ca9dd5c30d58b5d0999472285382c6f6bed3863ff9f20cd SHA512 a7c6b73250044289add492b2d7df9010f3b9a3a5126c8b3448d7339cf743c4be3f1c08d238107bb12c579b2bbd7d20e216e331d3ee10dcf79c0f23ca44d496af
23 DIST SQLAlchemy-1.4.40.tar.gz 8277132 BLAKE2B fa4362a8abec9845beb3cdb65de4066a8a77a40518187a624af3207198395ae3702db5ca5f65970ec7485e8647bdc5a8685f5d9a3b772778c7d6ec66ad820dcf SHA512 49b8ad8becd6fb2c43615890ef05554ce151f44cda20971a585ff5b325a6a91bb356a3c4320f4b1ac877a9eccdca9bec65cc9942bc5948d4143495b5c884f458
24
25 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.14.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.14.ebuild
26 new file mode 100644
27 index 000000000000..b9b2ea0d21f1
28 --- /dev/null
29 +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.14.ebuild
30 @@ -0,0 +1,93 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
38 +PYTHON_REQ_USE="sqlite?"
39 +
40 +inherit distutils-r1 optfeature
41 +
42 +MY_PN="SQLAlchemy"
43 +MY_P="${MY_PN}-${PV/_beta/b}"
44 +
45 +DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
46 +HOMEPAGE="
47 + https://www.sqlalchemy.org/
48 + https://pypi.org/project/SQLAlchemy/
49 + https://github.com/sqlalchemy/sqlalchemy/
50 +"
51 +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
52 +S="${WORKDIR}/${MY_P}"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
57 +IUSE="examples +sqlite test"
58 +
59 +BDEPEND="
60 + test? (
61 + $(python_gen_impl_dep sqlite)
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +
67 +EPYTEST_IGNORE=(
68 + # hardcode call counts specific to Python versions
69 + test/aaa_profiling
70 +)
71 +
72 +src_prepare() {
73 + sed -i -e '/greenlet/d' setup.cfg || die
74 + distutils-r1_src_prepare
75 +}
76 +
77 +python_test() {
78 + local EPYTEST_DESELECT=(
79 + # warning tests are unreliable
80 + test/base/test_warnings.py
81 + )
82 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
83 + test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access
84 + )
85 + if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then
86 + EPYTEST_DESELECT+=(
87 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
88 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
89 + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]"
90 + "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]"
91 + )
92 + fi
93 +
94 + # upstream's test suite is horribly hacky; it relies on disabling
95 + # the warnings plugin and turning warnings into errors; this also
96 + # means that any DeprecationWarnings from third-party plugins cause
97 + # everything to explode
98 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
99 + local -x PYTEST_PLUGINS=
100 + # upstream automagically depends on xdist when it is importable
101 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
102 + PYTEST_PLUGINS+=xdist.plugin
103 + fi
104 + epytest
105 +}
106 +
107 +python_install_all() {
108 + if use examples; then
109 + docompress -x "/usr/share/doc/${PF}/examples"
110 + dodoc -r examples
111 + fi
112 +
113 + distutils-r1_python_install_all
114 +}
115 +
116 +pkg_postinst() {
117 + optfeature "asyncio support" dev-python/greenlet
118 + optfeature "MySQL support" \
119 + dev-python/mysqlclient \
120 + dev-python/pymysql \
121 + dev-python/mysql-connector-python
122 + optfeature "postgresql support" dev-python/psycopg:2
123 +}