Skip to content
Snippets Groups Projects
Commit 087eb657 authored by Adam Williamson's avatar Adam Williamson Committed by Adam Williamson
Browse files

Move most tool config from setup.cfg to pyproject.toml


The latest incarnation of bumpversion is bump-my-version, which
considers .cfg configuration "deprecated" and wants it moved
to TOML, so here we go. We may as well move pytest config at
the same time as pytest has supported it for ages. We can drop
the "universal wheel" thing as that was about supporting Python
2 and 3 in the same wheel, and we don't support Python 2 any
more.

flake8 does not support pyproject.toml and it doesn't look like
you can specify aliases for setup.py there either, so we'll leave
those two in setup.cfg for now. Maybe in future we can get rid
of them.

Signed-off-by: default avatarAdam Williamson <awilliam@redhat.com>
parent f6542147
No related branches found
No related tags found
No related merge requests found
[build-system]
requires = ["setuptools>=40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
addopts = "--cov mwclient test"
[tool.bumpversion]
current_version = "0.10.1"
commit = true
tag = true
[[tool.bumpversion.files]]
filename = "setup.py"
search = "version='{current_version}'"
replace = "version='{new_version}'"
[[tool.bumpversion.files]]
filename = "mwclient/client.py"
[[tool.bumpversion.files]]
filename = "README.md"
[bumpversion]
current_version = 0.10.1
commit = True
tag = True
[aliases] [aliases]
test = pytest test = pytest
[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'
[bumpversion:file:mwclient/client.py]
[bumpversion:file:README.md]
[bdist_wheel]
universal = 1
[tool:pytest]
addopts = --cov mwclient test
[flake8] [flake8]
max-line-length = 90 max-line-length = 90
ignore = ignore =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment