mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-15 05:07:16 -04:00
75a66d8d41
### Description
Remove the redundant `wheel` dependency, as it is added by the backend automatically. Listing it explicitly in the documentation was a historical mistake and has been fixed since, see: https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a
### Checklist
This pull request is:
- [x] A misc build system change (it doesn't really fit the other categories)
- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests. one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.
**Have a nice day!**
Closes: #9153
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9153
Pull-request-sha: 8f2d8991f9
Change-Id: I877e56819cd3068d94721a7094880366fb2abc9b
89 lines
2.6 KiB
TOML
89 lines
2.6 KiB
TOML
[build-system]
|
|
build-backend = "setuptools.build_meta"
|
|
requires = [
|
|
"setuptools>=47",
|
|
"cython>=0.29.24; python_implementation == 'CPython'", # Skip cython when using pypy
|
|
]
|
|
|
|
[tool.black]
|
|
line-length = 79
|
|
target-version = ['py37']
|
|
|
|
[tool.zimports]
|
|
black-line-length = 79
|
|
|
|
[tool.slotscheck]
|
|
exclude-modules = '^sqlalchemy\.testing'
|
|
|
|
# disable isort, for IDEs that just default isort to be turned on, e.g. vscode.
|
|
# we use flake8-import-order for import sorting, using zimports to actually
|
|
# reformat code. isort is nicer in many ways but doesn't have our
|
|
# "import *" fixer and also is not 100% compatible with flake8-import-order.
|
|
[tool.isort]
|
|
skip_glob=['*']
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--tb native -v -r sfxX --maxfail=250 -p warnings -p logging --strict-markers"
|
|
norecursedirs = "examples build doc lib"
|
|
python_files = "test_*.py"
|
|
minversion = "6.2"
|
|
filterwarnings = [
|
|
# NOTE: additional SQLAlchemy specific filters in
|
|
# sqlalchemy/testing/warnings.py. SQLAlchemy modules cannot be named
|
|
# here as pytest loads them immediately, which breaks coverage as well
|
|
# as sys.path adjustments in conftest.py
|
|
"error::DeprecationWarning:test",
|
|
"error::DeprecationWarning:sqlalchemy"
|
|
]
|
|
markers = [
|
|
"memory_intensive: memory / CPU intensive suite tests",
|
|
"mypy: mypy integration / plugin tests",
|
|
"timing_intensive: time-oriented tests that are sensitive to race conditions",
|
|
"backend: tests that should run on all backends; typically dialect-sensitive",
|
|
"sparse_backend: tests that should run on multiple backends, not necessarily all",
|
|
]
|
|
|
|
[tool.pyright]
|
|
|
|
reportPrivateUsage = "none"
|
|
reportUnusedClass = "none"
|
|
reportUnusedFunction = "none"
|
|
reportTypedDictNotRequiredAccess = "warning"
|
|
|
|
[tool.mypy]
|
|
mypy_path = "./lib/"
|
|
show_error_codes = true
|
|
incremental = true
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = [
|
|
"sqlalchemy.*"
|
|
]
|
|
|
|
warn_unused_ignores = false
|
|
strict = true
|
|
|
|
|
|
|
|
[tool.cibuildwheel]
|
|
test-requires = "pytest pytest-xdist"
|
|
test-command = "pytest -c {project}/pyproject.toml -n2 -q --nomemory --notimingintensive --nomypy {project}/test"
|
|
|
|
build = "*"
|
|
# python 3.6 is no longer supported by sqlalchemy
|
|
# pypy uses the universal wheel fallback, since it does not use any compiled extension
|
|
skip = "cp36-* pp*"
|
|
# TODO: remove this skip once action support arm macs
|
|
test-skip = "*-macosx_arm64"
|
|
|
|
[tool.cibuildwheel.macos]
|
|
archs = ["x86_64", "arm64"]
|
|
|
|
# On an Linux Intel runner with qemu installed, build Intel and ARM wheels
|
|
# NOTE: this is overriden in the pipeline using the CIBW_ARCHS_LINUX env variable to speed up the build
|
|
[tool.cibuildwheel.linux]
|
|
archs = ["x86_64", "aarch64"]
|