blob: 5d2f4c821f355164b2ab52ce505daa19f713b025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=pdm-backend
PYTHON_COMPAT=( python3_{9,10,11,12,13} )
inherit distutils-r1 pypi
DESCRIPTION="SQL databases in Python, designed for simplicity, compatibility, and robustness."
HOMEPAGE="
https://sqlmodel.tiangolo.com/
https://github.com/fastapi/sqlmodel/
https://pypi.org/project/sqlmodel/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/pydantic-2.11.0[${PYTHON_USEDEP}]
<dev-python/sqlalchemy-2.1.0[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-2.0.14[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/fastapi[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/dirty-equals[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Uses coverage
# TIP: Search for subprocess.run([coverage])
"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_py310_tests_main.py::test_run_tests"
"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_py39_tests_main.py::test_run_tests"
"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_run_tests"
# Updates files
"tests/test_select_gen.py::test_select_gen"
)
EPYTEST_IGNORE=(
# Uses coverage
# TIP: Search for imports of coverage_run
"tests/test_tutorial/test_create_db_and_table/test_tutorial001.py"
"tests/test_tutorial/test_create_db_and_table/test_tutorial001_py310.py"
)
python_test() {
epytest tests
}
|