diff options
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/pyproject.toml b/pyproject.toml index aab4b3f..11fcaad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,36 +8,37 @@ dynamic = ["version"] description = "CLI tool for downloading files from MediaWiki sites" readme = "README.md" authors = [ - {name = "Cody Logan", email = "clpo13@gmail.com"} + {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", + "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", + "Programming Language :: Python :: 3.12", ] dependencies = [ - "mwclient>=0.10.0", - "requests", - "tqdm", + "mwclient>=0.10.0", + "requests", + "tqdm", ] [project.urls] @@ -52,15 +53,20 @@ path = "src/wikiget/version.py" [tool.pytest.ini_options] addopts = [ - "--import-mode=importlib", + "--import-mode=importlib", ] testpaths = ["tests"] [tool.hatch.build.targets.sdist] exclude = [ - "/.github", + "/.github", ] +[tool.hatch.build.targets.wheel.shared-data] +"docs/wikiget.1" = "share/man/man1/wikiget.1" +"README.md" = "share/doc/wikiget/README.md" +"LICENSE" = "share/doc/wikiget/LICENSE" + [tool.hatch.envs.default] dependencies = [ "coverage[toml]>=6.5", @@ -73,13 +79,15 @@ cov-report = [ "- coverage combine", "coverage report", ] +htmlcov = "coverage html" cov = [ "test-cov", "cov-report", + "htmlcov", ] [[tool.hatch.envs.all.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11"] +python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] [tool.hatch.envs.lint] detached = true @@ -147,8 +155,6 @@ ignore = [ "S105", "S106", "S107", # Ignore complexity "C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915", - # FIXME: temporarily ignore usage of `print()` - "T201", ] unfixable = [ # Don't touch unused imports @@ -182,5 +188,9 @@ exclude_lines = [ ] [[tool.mypy.overrides]] -module = ["mwclient"] +module = [ + "mwclient", + "mwclient.image", + "pytest", +] ignore_missing_imports = true |
