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, 24 Jun 2022 20:32:43
Message-Id: 1656102749.4f6d2b30e19fb0ddc5cb5fabe9835355a280936b.arthurzam@gentoo
1 commit: 4f6d2b30e19fb0ddc5cb5fabe9835355a280936b
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 20:18:23 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 20:32:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f6d2b30
7
8 dev-python/sqlalchemy: add 1.4.39
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.39.ebuild | 93 ++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index 8fe3b9337dd7..a56e1d2b1fcd 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -1,3 +1,4 @@
21 DIST SQLAlchemy-1.4.36.tar.gz 8146415 BLAKE2B 62560ac2f2c542d60588a24eef225d39f1b6c4cf6feddfac4631e06731206a837cc0f76b88b40c73600361243857e9e1768b4b4ac0bf5ee8e28736d81028ae58 SHA512 c9bb38ce5eeb7817727e93695f10cf5c247710b809f3298b233ed8be4e2cc08e5a14581d0c5aa2af02d7a49f036fe3a0bb7a88120b58bdce0f115016bdaf2c77
22 DIST SQLAlchemy-1.4.37.tar.gz 8155965 BLAKE2B cf21c2ab73a5ba2576a857a12f30ea516265af946e25c1b137e57019d862bf04f4757b4755cee28e6f53642d1f1b58f43c99cd1c69f87640e47ac8a1d1ff8d28 SHA512 3f8a814f9bb6fa273f7b210c4567bf7411d0cf2e5caf010a5387fb946063704c342072145a858fb906545dfb1b959155d041e6073273674e51715356fc1f39e6
23 DIST SQLAlchemy-1.4.38.tar.gz 8211925 BLAKE2B c65a8bddfc77bb6262e24a9b191344da312641dcd759de8541439e13cc532d9c2ef92da50c0b46ace60f2fd8582dfa6ea37b2f393fd979b3f122d962c688ede8 SHA512 4f54873fe2ba14b00cfa900251bc81d4fbbd62ed2b0f5f35bd3d5157796b869a3b7a9acf162f65da3f05b4b43cfc8bba437600f7fb81887a1839043a6ad516b4
24 +DIST SQLAlchemy-1.4.39.tar.gz 8212369 BLAKE2B d65993c4342c2cb5bc76ea4ecc986d0ec521a6eb785604ceeca0c9c22187e4af29fc8bd940a130162ca9dd5c30d58b5d0999472285382c6f6bed3863ff9f20cd SHA512 a7c6b73250044289add492b2d7df9010f3b9a3a5126c8b3448d7339cf743c4be3f1c08d238107bb12c579b2bbd7d20e216e331d3ee10dcf79c0f23ca44d496af
25
26 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.39.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.39.ebuild
27 new file mode 100644
28 index 000000000000..b9b2ea0d21f1
29 --- /dev/null
30 +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.39.ebuild
31 @@ -0,0 +1,93 @@
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..11} )
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 ~loong ~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 + # warning tests are unreliable
81 + test/base/test_warnings.py
82 + )
83 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
84 + test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access
85 + )
86 + if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then
87 + EPYTEST_DESELECT+=(
88 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
89 + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
90 + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]"
91 + "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]"
92 + )
93 + fi
94 +
95 + # upstream's test suite is horribly hacky; it relies on disabling
96 + # the warnings plugin and turning warnings into errors; this also
97 + # means that any DeprecationWarnings from third-party plugins cause
98 + # everything to explode
99 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
100 + local -x PYTEST_PLUGINS=
101 + # upstream automagically depends on xdist when it is importable
102 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
103 + PYTEST_PLUGINS+=xdist.plugin
104 + fi
105 + epytest
106 +}
107 +
108 +python_install_all() {
109 + if use examples; then
110 + docompress -x "/usr/share/doc/${PF}/examples"
111 + dodoc -r examples
112 + fi
113 +
114 + distutils-r1_python_install_all
115 +}
116 +
117 +pkg_postinst() {
118 + optfeature "asyncio support" dev-python/greenlet
119 + optfeature "MySQL support" \
120 + dev-python/mysqlclient \
121 + dev-python/pymysql \
122 + dev-python/mysql-connector-python
123 + optfeature "postgresql support" dev-python/psycopg:2
124 +}