Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert setup.py to pyproject.toml #311

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 56 additions & 0 deletions pyproject.toml
@@ -0,0 +1,56 @@
[project]
name = "mwclient"
version = "0.10.1"
description = "MediaWiki API client"
readme = "README.md"
requires-python = ">=2.7"
license = { file = "LICENSE.md" }
keywords = ["mediawiki", "wikipedia"]
authors = [
{ name = "Bryan Tong Minh", email = "bryan.tongminh@gmail.com" }
]
maintainers = []
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",
]
dependencies = [
"requests-oauthlib",
"six"
]

[project.optional-dependencies]
test = [
'mock;python_version<"3.3"',
'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"

[tool.pytest.ini_options]
addopts = "--cov=mwtp --cov-report=html --color=yes"
testpaths = [
"test"
]

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
@@ -1,5 +1,6 @@
[tox]
envlist = py27,py35,py36,py37,py38,py39,py310,py311,py312,flake
isolated_build = true

[gh-actions]
python =
Expand All @@ -18,7 +19,7 @@ deps =
responses
setuptools
mock
commands = py.test -v --cov mwclient test
commands = pytest {toxinidir}/test

[testenv:flake]
deps =
Expand Down