Skip to content
Snippets Groups Projects
Commit 4af19529 authored by Marc Troelitzsch's avatar Marc Troelitzsch Committed by Adam Williamson
Browse files

Update project metadata and switch build-tool to hatchling

To keep build-compatibility with Python 3.6, I've switched the build
backend from `setuptools` to `hatchling`. `setuptools` only supports
`pyproject.toml` from version 61 onwards, which itself isn't compatible
with Python 3.6. This does not mean we have to fully use Hatch as we can
still create build using `python -m build`. Hatchling automatically
includes all non-gitignored files, so the `MANIFEST.in` file has been
removed.
parent 8386f91a
No related branches found
No related tags found
No related merge requests found
include CHANGELOG.md
include CONTRIBUTING.md
include CREDITS.md
include README.md
include LICENSE.md
# prospector config - https://github.com/landscapeio/prospector
include .landscape.yaml
include .editorconfig
include tox.ini
graft docs
graft examples
[project]
name = "mwclient"
version = "0.10.1"
dynamic = ["version"]
description = "MediaWiki API client"
readme = "README.md"
requires-python = ">=2.7"
license = { file = "LICENSE.md" }
keywords = ["mediawiki", "wikipedia"]
requires-python = ">=3.6"
authors = [
{ name = "Bryan Tong Minh", email = "bryan.tongminh@gmail.com" }
{ name = "Bryan Tong Minh", email = "bryan.tongminh@gmail.com" },
]
maintainers = []
keywords = ["mediawiki", "wikipedia"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"requests-oauthlib",
"six"
"requests",
"requests-oauthlib",
]
[project.optional-dependencies]
test = [
'mock;python_version<"3.3"',
'pytest',
'pytest-cov',
'responses>=0.3.0',
'responses!=0.6.0',
'setuptools'
testing = [
"pytest",
"pytest-cov",
"responses>=0.3.0",
"responses!=0.6.0",
"setuptools",
]
[project.urls]
"Homepage" = "https://github.com/mwclient/mwclient"
"Bug Reports" = "https://github.com/mwclient/mwclient/issues"
Documentation = "https://mwclient.readthedocs.io/"
Repository = "https://github.com/mwclient/mwclient"
Issues = "https://github.com/mwclient/mwclient/issues"
Changelog = "https://github.com/mwclient/mwclient/releases"
[tool.pytest.ini_options]
addopts = "--cov=mwtp --cov-report=html --color=yes"
testpaths = [
"test"
"test"
]
[build-system]
requires = ["setuptools>=40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "mwclient/client.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.flake8",
"/.gitattributes",
"/.github",
"/.readthedocs.yaml",
]
[tool.bumpversion]
current_version = "0.11.0"
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"
search = "__version__ = '{current_version}'"
......
[aliases]
test = pytest
[flake8]
max-line-length = 90
ignore =
ignore =
# Line break before binary operator
W503
......@@ -14,13 +14,8 @@ python =
3.13: py313
[testenv]
deps =
pytest
pytest-cov
responses
setuptools
mock
commands = pytest {toxinidir}/test
extras = testing
commands = pytest -v --cov mwclient test
[testenv:flake]
deps =
......@@ -31,7 +26,7 @@ commands =
[testenv:integration]
deps =
pytest
commands = py.test test/integration.py -v
commands = pytest test/integration.py -v
[testenv:mypy]
deps =
......
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