convert tooling to pyproject.toml based

still has dynamic versioning and etc.

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2023-12-30 10:32:43 -06:00
parent 2871e5a000
commit bf646db1e8
12 changed files with 101 additions and 2494 deletions

44
tox.ini
View File

@@ -4,21 +4,11 @@
# and then run "tox" from this directory.
[tox]
envlist = begin,py38,py39,py310,py311,coverage,security,lint,bundle
isolated_build = true
envlist = begin,py38,py39,py310,py311,coverage,security,lint
[testenv]
# build a wheel and test it
wheel = true
wheel_build_env = build
# whitelist commands we need
whitelist_externals = cp
# install everything via requirements-dev.txt, so that developer environment
# is the same as the tox environment (for ease of use/no weird gotchas in
# local dev results vs. tox results) and also to avoid ticky-tacky maintenance
# of "oh this particular env has weird results unless I install foo" --- just
# shotgun blast install everything everywhere
allow_externals = pytest, coverage
deps =
-rrequirements/requirements-dev.txt
@@ -68,16 +58,11 @@ commands =
[testenv:lint]
# run style checks
# TODO: mypy incorporealcms
commands =
flake8
- flake8 --disable-noqa --ignore= --select=E,W,F,C,D,A,G,B,I,T,M,DUO
[testenv:bundle]
# take extra actions (build sdist, sphinx, whatever) to completely package the app
commands =
cp -r {distdir} .
python setup.py sdist
[coverage:paths]
source =
./
@@ -88,24 +73,3 @@ branch = True
omit =
**/_version.py
[flake8]
enable-extensions = G,M
exclude =
.tox/
versioneer.py
_version.py
instance/
venv/
extend-ignore = T101
max-complexity = 10
max-line-length = 120
[isort]
line_length = 120
[pytest]
python_files =
*_tests.py
tests.py
test_*.py