1 |
commit: 5065cadc4db014f0e19ed3269896b090d8e27e46 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 04:46:16 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 05:41:57 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5065cadc |
7 |
|
8 |
dev-python/sqlalchemy: Bump to 2.0.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sqlalchemy/Manifest | 1 + |
13 |
dev-python/sqlalchemy/sqlalchemy-2.0.1.ebuild | 112 ++++++++++++++++++++++++++ |
14 |
2 files changed, 113 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index 0323da67d311..ddce5b17e60a 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST SQLAlchemy-1.4.44.tar.gz 8516775 BLAKE2B 647a43b2c01bcf066891e6bf2247271ff0 |
21 |
DIST SQLAlchemy-1.4.45.tar.gz 8535958 BLAKE2B 09e777584067532ed77d8dca9d86996b22317395338aa056d91d7ae1600d6b7111ef714d04980f87ab517007dd6a581c5552efa9c4a676e88c567f339f227fe6 SHA512 4c6e9ef84c6517f47493ad6ce6d366bc0e7222e7a668d43c7b9f4919e87076a5f7687dc525060e430be23c5d9f12e7ef9d97d679040ff132244aa2b3418974a9 |
22 |
DIST SQLAlchemy-1.4.46.tar.gz 8544238 BLAKE2B 8ef4aae61bee3c9c54b953a9ba34074d8cac0d54d8ae3389f40fa99f57755b2ee0a8a7826e0835fada2d82b96559d974172c9d9781ec746c79006f59d7a5bba0 SHA512 1977c6125e9f45a45b7941c1e0164866bd5ea72839e619d4e259db9a5370fe2b4f191257f3c9ddb28b5c22617a71d359620601c54d9273c38b3281a6c2f5ff03 |
23 |
DIST SQLAlchemy-2.0.0.tar.gz 9188064 BLAKE2B 2c81b9663c14851f10d6987645b9c7185067ad680107d2c59ccb3a67ffec0507d30e646d8fb283919ed120203b64591b089f6b840ab97d8e7c59bddd4793319e SHA512 54bde6047a94fc6b050ca6e4b6136ab2a62de0f55665c07a7bec953c75462e32908e88de5c2dc42ee45cd0b8b9f155dd33d148408ab5e3cc579b0e13cdf00801 |
24 |
+DIST SQLAlchemy-2.0.1.tar.gz 9204926 BLAKE2B ee2735e11caf8b776563d91c43577e94bcba77f33f21f24f451ee3d217e446385a21be6fda7c5cf90e51ddf7b6445374bcea824f06bd59104af6cc6e7cfb5503 SHA512 8164cb9a59a03afe0c60aca2166d5d40a65c5580e8a2618245884a19c36414f8530ddfd963abb6617d03077f49ce37afd6e68db0e5e018402027f93e98de332c |
25 |
|
26 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-2.0.1.ebuild b/dev-python/sqlalchemy/sqlalchemy-2.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..3242eab60351 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sqlalchemy/sqlalchemy-2.0.1.ebuild |
31 |
@@ -0,0 +1,112 @@ |
32 |
+# Copyright 1999-2023 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_{9..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 |
+RDEPEND=" |
61 |
+ >=dev-python/typing-extensions-4.2.0[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ $(python_gen_impl_dep sqlite) |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+EPYTEST_IGNORE=( |
72 |
+ # hardcode call counts specific to Python versions |
73 |
+ test/aaa_profiling |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ sed -i -e '/greenlet/d' setup.cfg || die |
78 |
+ distutils-r1_src_prepare |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ local EPYTEST_IGNORE=( |
83 |
+ test/ext/mypy/test_mypy_plugin_py3k.py |
84 |
+ ) |
85 |
+ local EPYTEST_DESELECT=( |
86 |
+ # warning tests are unreliable |
87 |
+ test/base/test_warnings.py |
88 |
+ # TODO |
89 |
+ test/orm/test_versioning.py::ServerVersioningTest_sqlite+pysqlite_3_40_1::test_sql_expr_w_mods_bump |
90 |
+ ) |
91 |
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( |
92 |
+ test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access |
93 |
+ test/ext/test_associationproxy.py::DictOfTupleUpdateTest::test_update_multi_elem_varg |
94 |
+ test/ext/test_associationproxy.py::DictOfTupleUpdateTest::test_update_one_elem_varg |
95 |
+ test/engine/test_processors.py::PyDateProcessorTest::test_date_invalid_string |
96 |
+ test/engine/test_processors.py::PyDateProcessorTest::test_datetime_invalid_string |
97 |
+ test/engine/test_processors.py::PyDateProcessorTest::test_time_invalid_string |
98 |
+ test/dialect/test_sqlite.py::TestTypes_sqlite+pysqlite_3_40_1::test_cant_parse_datetime_message |
99 |
+ test/dialect/test_suite.py::ReturningGuardsTest_sqlite+pysqlite_3_40_1::test_delete_single |
100 |
+ test/dialect/test_suite.py::ReturningGuardsTest_sqlite+pysqlite_3_40_1::test_insert_single |
101 |
+ test/dialect/test_suite.py::ReturningGuardsTest_sqlite+pysqlite_3_40_1::test_update_single |
102 |
+ test/base/test_utils.py::ImmutableDictTest::test_pep584 |
103 |
+ ) |
104 |
+ if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then |
105 |
+ EPYTEST_DESELECT+=( |
106 |
+ test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution |
107 |
+ test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync |
108 |
+ "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[False-True]" |
109 |
+ "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-True]" |
110 |
+ "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]" |
111 |
+ ) |
112 |
+ fi |
113 |
+ |
114 |
+ # upstream's test suite is horribly hacky; it relies on disabling |
115 |
+ # the warnings plugin and turning warnings into errors; this also |
116 |
+ # means that any DeprecationWarnings from third-party plugins cause |
117 |
+ # everything to explode |
118 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
119 |
+ local -x PYTEST_PLUGINS= |
120 |
+ # upstream automagically depends on xdist when it is importable |
121 |
+ if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then |
122 |
+ PYTEST_PLUGINS+=xdist.plugin |
123 |
+ fi |
124 |
+ epytest |
125 |
+} |
126 |
+ |
127 |
+python_install_all() { |
128 |
+ if use examples; then |
129 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
130 |
+ dodoc -r examples |
131 |
+ fi |
132 |
+ |
133 |
+ distutils-r1_python_install_all |
134 |
+} |
135 |
+ |
136 |
+pkg_postinst() { |
137 |
+ optfeature "asyncio support" dev-python/greenlet |
138 |
+ optfeature "MySQL support" \ |
139 |
+ dev-python/mysqlclient \ |
140 |
+ dev-python/pymysql \ |
141 |
+ dev-python/mysql-connector-python |
142 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
143 |
+} |