-
-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (124 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
158 lines (124 loc) · 3.31 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=77.0.3"]
[project]
name = "alembic"
description = "A database migration tool for SQLAlchemy."
authors = [{name = "Mike Bayer", email = "mike_mp@zzzcomputing.com"}]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database :: Front-Ends",
]
requires-python = ">=3.10"
dependencies = [
"SQLAlchemy>=1.4.23",
"Mako",
"typing-extensions>=4.12",
"tomli;python_version<'3.11'",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
Homepage = "https://alembic.sqlalchemy.org"
Documentation = "https://alembic.sqlalchemy.org/en/latest/"
Changelog = "https://alembic.sqlalchemy.org/en/latest/changelog.html"
Source = "https://github.com/sqlalchemy/alembic/"
"Issue Tracker" = "https://github.com/sqlalchemy/alembic/issues/"
[project.optional-dependencies]
tz = ["tzdata"]
[project.scripts]
alembic = "alembic.config:main"
[dependency-groups]
tests = [
"pytest>8,<10",
"pytest-xdist",
"black==25.9.0", # for test_post_write.py
"zimports", # for stub testing
"tzdata",
"junitparser"
]
coverage = [
"pytest-cov"
]
tests_postgresql = ["psycopg2>=2.7"]
tests_mysql = ["mysqlclient>=1.4.0", "pymysql"]
tests_oracle = ["oracledb"]
tests_mssql = ["pyodbc"]
lint = [
"flake8",
"flake8-import-order>=0.19.2",
"flake8-import-single==0.1.5",
"flake8-builtins",
"flake8-docstrings",
"flake8-rst-docstrings",
"pydocstyle",
"pygments",
"black==25.9.0"
]
mypy = [
"mypy>=1.16.0",
"nox", # because we check noxfile.py
"pytest>8,<10", # alembic/testing imports pytest
]
[tool.coverage.paths]
#source=["."]
[tool.coverage.run]
relative_files = true
[tool.setuptools]
include-package-data = true
zip-safe = false
package-dir = {"" = "."}
[tool.setuptools.package-data]
"*" = ["*.pyi", "py.typed", "*.mako", "README"]
[tool.setuptools.packages.find]
include = ["alembic*"]
exclude = [
"test*",
"examples*",
]
namespaces = true
[tool.setuptools.dynamic]
version = {attr = "alembic.__version__"}
[tool.black]
line-length = 79
target-version = ['py310']
[tool.pytest.ini_options]
addopts = "--tb native -v -r sfxX -p no:warnings -p no:logging --maxfail=100"
python_files = "tests/test_*.py"
markers = [
"backend: tests that should run on all backends; typically dialect-sensitive",
"mypy: mypy integration / plugin tests (not used by Alembic currently)",
]
[tool.mypy]
exclude = [
'alembic/template',
'alembic.testing.*',
]
show_error_codes = true
[[tool.mypy.overrides]]
module = [
"alembic.*"
]
warn_unused_ignores = true
strict = true
[[tool.mypy.overrides]]
module = [
'mako.*',
'sqlalchemy.testing.*'
]
ignore_missing_imports = true