diff options
| author | clpo13 <clpo13@gmail.com> | 2023-09-26 10:06:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 10:06:38 -0700 |
| commit | 6d2acf3bba628f62fe91bb778b7bb92a1057969b (patch) | |
| tree | fd902648c2ba522829772a8f9630053df18395d4 /pyproject.toml | |
| parent | 1941452615ff5b810e180437ae74e16a6d14eba6 (diff) | |
| download | wikiget-6d2acf3bba628f62fe91bb778b7bb92a1057969b.tar.gz wikiget-6d2acf3bba628f62fe91bb778b7bb92a1057969b.zip | |
Modernize setuptools build (#5)
Remove usage of deprecated `python setup.py test` and move to pyproject.toml for project configuration.
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..eed7728 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,68 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" +#requires = ["hatchling"] +#build-backend = "hatchling.build" +#requires = ["pdm-backend"] +#build-backend = "pdm.backend" + +[project] +name = "wikiget" +dynamic = ["version"] +description = "CLI tool for downloading files from MediaWiki sites" +readme = "README.md" +authors = [ + {name = "Cody Logan", email = "clpo13@gmail.com"} +] +requires-python = ">=3.7" +license = {text = "GPL-3.0-or-later"} +keywords = ["commons", "mediawiki", "wikimedia", "wikipedia"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: End Users/Desktop", + "Operating System :: OS Independent", + "Topic :: Internet", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Multimedia", + "Topic :: Multimedia :: Graphics", + "Topic :: Multimedia :: Sound/Audio", + "Topic :: Multimedia :: Video", + "Topic :: Utilities", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "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", +] +dependencies = [ + "mwclient>=0.10.0", + "requests", + "tqdm", +] + +[project.urls] +Repository = "https://github.com/clpo13/wikiget" +"Bug Reports" = "https://github.com/clpo13/wikiget/issues" + +[project.scripts] +wikiget = "wikiget.wikiget:main" + +[tool.setuptools.dynamic] +version = {attr = "wikiget.version.__version__"} + +#[tool.hatch.version] +#path = "src/wikiget/version.py" + +#[tool.pdm] +#version = { source = "file", path = "src/wikiget/version.py" } + +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", + "--cov=wikiget", +] +testpaths = ["test"] |
