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: Sun, 19 Mar 2023 19:03:50
Message-Id: 1679252619.af0fbf42703638ae8c15277a81730635d788a990.mgorny@gentoo
1 commit: af0fbf42703638ae8c15277a81730635d788a990
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 17:40:49 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 19:03:39 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af0fbf42
7
8 dev-python/sqlalchemy: Bump to 1.4.47
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.47.ebuild | 94 ++++++++++++++++++++++++++
14 2 files changed, 95 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index a7bc006a449f..da3a809467da 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -1,4 +1,5 @@
21 DIST SQLAlchemy-1.4.46.tar.gz 8544238 BLAKE2B 8ef4aae61bee3c9c54b953a9ba34074d8cac0d54d8ae3389f40fa99f57755b2ee0a8a7826e0835fada2d82b96559d974172c9d9781ec746c79006f59d7a5bba0 SHA512 1977c6125e9f45a45b7941c1e0164866bd5ea72839e619d4e259db9a5370fe2b4f191257f3c9ddb28b5c22617a71d359620601c54d9273c38b3281a6c2f5ff03
22 +DIST SQLAlchemy-1.4.47.tar.gz 8559530 BLAKE2B 051e6f0114162f5525e756d8762281464020a3c4e1751df8432f76ce3281ea1004fbf842e92bdd310e3a736fc87d25db12a1566720c76bde7960d51c22a483da SHA512 702cbae848bc662b686db43b2d2dbd18b503b3aacac6f5960bcd260cc5bd7058536ff2207f1780cb8425c228a82796490088c3ec32f24637edd2cf1cdac7a8bb
23 DIST SQLAlchemy-2.0.3.tar.gz 9229747 BLAKE2B b70116a8f9f24ed2b41aa7ebbe8a004371f3aa2e81487bce307157eec8032f134313091455245fe631818a1e6373e3144671f314991408f14b0f0f5f87335290 SHA512 8bf0fa6d95f26fd137690f75e335cf741b8fd19a5a30424e22bb85b79893cbbdc15e206d3f069f202200eb54254df868c4a6d3e74adc1a19e8ce8f92cc407098
24 DIST SQLAlchemy-2.0.4.tar.gz 9250723 BLAKE2B c3cec648a527e7beb349b2bbb6924a4e794a1fe4d1563ba7573afdc28ed24fce149c5b3c08fa419e85713b68080b2a805e1999e312f59ed7fae55f9aee6a966e SHA512 098004c594ff00a47a66850b0661f673e4d7a6f168fce72ca37a65ecfe04b3d291b9a6fb9393f7671c9a7c5c128ab6ba2035d18cef28736df1207e689cd8c412
25 DIST SQLAlchemy-2.0.5.tar.gz 9285821 BLAKE2B e0af62e05801a30d915ff4a852dc30ab61b8d5ddc632cddef549bb2d548f5a2c4056519c9ddcf690587736d415973bde9042b6cd022f874e1dc3c143ef0a6add SHA512 642f6665ca8a3aa2c30bc9e14f8e65f9baa0a678f88637e784ee8606cece92d876f8d2e639dfd462261f0c790c2f0851e3490b4c84dbaa21028df93f354b68a4
26
27 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.47.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.47.ebuild
28 new file mode 100644
29 index 000000000000..09207d492452
30 --- /dev/null
31 +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.47.ebuild
32 @@ -0,0 +1,94 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=setuptools
39 +PYTHON_COMPAT=( pypy3 python3_{9..11} )
40 +PYTHON_REQ_USE="sqlite?"
41 +
42 +inherit distutils-r1 optfeature pypi
43 +
44 +MY_PN="SQLAlchemy"
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="$(pypi_sdist_url --no-normalize "${MY_PN}")"
52 +S="${WORKDIR}/${MY_PN}-${PV}"
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 + # https://github.com/sqlalchemy/sqlalchemy/issues/8762
85 + test/orm/test_query.py::YieldTest_sqlite+pysqlite_3_39_4::test_yield_per_close_on_interrupted_iteration_legacy
86 + )
87 + if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then
88 + EPYTEST_DESELECT+=(
89 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
90 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
91 + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[False-True]"
92 + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-True]"
93 + "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]"
94 + )
95 + fi
96 +
97 + # upstream's test suite is horribly hacky; it relies on disabling
98 + # the warnings plugin and turning warnings into errors; this also
99 + # means that any DeprecationWarnings from third-party plugins cause
100 + # everything to explode
101 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
102 + local -x PYTEST_PLUGINS=
103 + # upstream automagically depends on xdist when it is importable
104 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
105 + PYTEST_PLUGINS+=xdist.plugin
106 + fi
107 + epytest
108 +}
109 +
110 +python_install_all() {
111 + if use examples; then
112 + docompress -x "/usr/share/doc/${PF}/examples"
113 + dodoc -r examples
114 + fi
115 +
116 + distutils-r1_python_install_all
117 +}
118 +
119 +pkg_postinst() {
120 + optfeature "asyncio support" dev-python/greenlet
121 + optfeature "MySQL support" \
122 + dev-python/mysqlclient \
123 + dev-python/pymysql \
124 + dev-python/mysql-connector-python
125 + optfeature "postgresql support" dev-python/psycopg:2
126 +}