dev-python/sqlalchemy: treeclean
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
ab8071929e
commit
52d9f39cc6
@ -1,3 +0,0 @@
|
||||
DIST SQLAlchemy-2.0.23.tar.gz 9474103 BLAKE2B 9ebfbca68106249a8c6c5e2e187b57953dab3a9d851e429ae6d86fa99b77069758385318a37aea8a23293a54418073e021d9b04ee88d467e57132d70af80af4d SHA512 4d79e25c48c2d4400b8cf1bf4f7066912f06c05b8dfceeec1a215e03fffa7efce5882bb5058538ddfe127ad35bab7fc9aa314ffdedc81f3b97fde9207d7dd1f7
|
||||
EBUILD sqlalchemy-2.0.23.ebuild 3823 BLAKE2B e38229a640418c7e05341a2d23cddef8045f42c2c12a5668ef3d7cbeed8652820cd991da844c5beb07b9752f8cac8882ccb25d601e8c431fd311faa51e7bc401 SHA512 b997cd553eda426246c286ff4f37db338c980d0958b38b6cc33b9806aeb0a090df55588a4da2e39bc60593a9804df92ae05d85339eefb3f1e800d3ee7c075a0b
|
||||
MISC metadata.xml 444 BLAKE2B 5fbfcf8f16e52ab5bb691b0b33a8491d94e42a80409114cd9b306af7d4b0eb8b6660fabc663adee53080c635217961301b78df536995b91afe9288d255f73d62 SHA512 b432b65ed3033d34ac0784d007909eb838b309b6a4785eebb1a3f808e43dfc41c786cd55e4dd048776c65127aac170bdd9fb9e5a8ae63accb5f65e300bca9676
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">SQLAlchemy</remote-id>
|
||||
<remote-id type="github">sqlalchemy/sqlalchemy</remote-id>
|
||||
<bugs-to>https://github.com/sqlalchemy/sqlalchemy/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,111 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 multiprocessing optfeature pypi
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="
|
||||
https://www.sqlalchemy.org/
|
||||
https://pypi.org/project/SQLAlchemy/
|
||||
https://github.com/sqlalchemy/sqlalchemy/
|
||||
"
|
||||
SRC_URI="$(pypi_sdist_url --no-normalize "${MY_PN}")"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="examples +sqlite test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/typing-extensions-4.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/greenlet/d' setup.cfg || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_IGNORE=(
|
||||
test/ext/mypy/test_mypy_plugin_py3k.py
|
||||
test/typing/test_mypy.py
|
||||
# hardcode call counts specific to Python versions
|
||||
test/aaa_profiling
|
||||
)
|
||||
local EPYTEST_DESELECT=(
|
||||
# warning tests are unreliable
|
||||
test/base/test_warnings.py
|
||||
)
|
||||
local sqlite_version=$(sqlite3 --version | cut -d' ' -f1)
|
||||
case ${EPYTHON} in
|
||||
pypy3)
|
||||
EPYTEST_DESELECT+=(
|
||||
test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access
|
||||
test/ext/test_associationproxy.py::DictOfTupleUpdateTest::test_update_multi_elem_varg
|
||||
test/ext/test_associationproxy.py::DictOfTupleUpdateTest::test_update_one_elem_varg
|
||||
test/engine/test_processors.py::PyDateProcessorTest::test_date_invalid_string
|
||||
test/engine/test_processors.py::PyDateProcessorTest::test_datetime_invalid_string
|
||||
test/engine/test_processors.py::PyDateProcessorTest::test_time_invalid_string
|
||||
"test/dialect/test_sqlite.py::TestTypes_sqlite+pysqlite_${sqlite_version//./_}::test_cant_parse_datetime_message"
|
||||
"test/dialect/test_suite.py::ReturningGuardsTest_sqlite+pysqlite_${sqlite_version//./_}"::test_{delete,insert,update}_single
|
||||
test/base/test_utils.py::ImmutableDictTest::test_pep584
|
||||
)
|
||||
;;
|
||||
esac
|
||||
if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_DESELECT+=(
|
||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
|
||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
|
||||
"test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[False-True]"
|
||||
"test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-True]"
|
||||
"test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[has_terminate-is_asyncio]"
|
||||
"test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[not_has_terminate-is_asyncio]"
|
||||
"test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]"
|
||||
"test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True]"
|
||||
)
|
||||
fi
|
||||
|
||||
# upstream's test suite is horribly hacky; it relies on disabling
|
||||
# the warnings plugin and turning warnings into errors; this also
|
||||
# means that any DeprecationWarnings from third-party plugins cause
|
||||
# everything to explode
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -p rerunfailures --reruns=10 --reruns-delay=2 \
|
||||
-p xdist -n "$(makeopts_jobs)" --dist=worksteal
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "asyncio support" dev-python/greenlet
|
||||
optfeature "MySQL support" \
|
||||
dev-python/mysqlclient \
|
||||
dev-python/pymysql
|
||||
optfeature "postgresql support" dev-python/psycopg:2
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user