From a45cca029dc56516615c2915cd613b8ad70d0ae6 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 2 Oct 2023 11:48:15 -0700 Subject: Include man page, readme, and license when installing wheel --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index aab4b3f..ec7b235 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,11 @@ exclude = [ "/.github", ] +[tool.hatch.build.targets.wheel.shared-data] +"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", -- cgit v1.2.3 From b6fac1b7c0962e48a8f708efc9f535bb8552c9c6 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 3 Oct 2023 09:11:10 -0700 Subject: Update README --- pyproject.toml | 2 -- 1 file changed, 2 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index ec7b235..070d406 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -152,8 +152,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 -- cgit v1.2.3 From 43489400d94ba68477ec2040ec8e1625192780ef Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Fri, 6 Oct 2023 14:03:55 -0700 Subject: Update actions for dev branch and Python 3.12 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 070d406..0b13074 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ classifiers = [ "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", -- cgit v1.2.3 From 8e6bb3dcc1c929327425750057c411192c1e69d7 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 9 Oct 2023 11:16:05 -0700 Subject: Add some tests for download functions --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 0b13074..3364ec0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,9 +79,11 @@ cov-report = [ "- coverage combine", "coverage report", ] +htmlcov = "coverage html" cov = [ "test-cov", "cov-report", + "htmlcov", ] [[tool.hatch.envs.all.matrix]] -- cgit v1.2.3 From 206f0fe0b97610fc371ad0acdd5146ac12eacfe7 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 9 Oct 2023 13:50:30 -0700 Subject: Style cleanup --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 3364ec0..8dc16ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -188,5 +188,5 @@ exclude_lines = [ ] [[tool.mypy.overrides]] -module = ["mwclient"] +module = ["mwclient", "pytest"] ignore_missing_imports = true -- cgit v1.2.3 From 878d4174248711906cfaf4e7bf10c0bf83af85f3 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 10 Oct 2023 11:04:14 -0700 Subject: Move man-related files to docs directory --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 8dc16ce..e8c63d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,7 @@ exclude = [ ] [tool.hatch.build.targets.wheel.shared-data] -"wikiget.1" = "share/man/man1/wikiget.1" +"docs/wikiget.1" = "share/man/man1/wikiget.1" "README.md" = "share/doc/wikiget/README.md" "LICENSE" = "share/doc/wikiget/LICENSE" -- cgit v1.2.3 From 5dc9b79bd68d2f7cf0dcf1adfaffd8e07b27c6ba Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Fri, 13 Oct 2023 09:37:10 -0700 Subject: Add Python 3.12 to matrix --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index e8c63d5..06e9503 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,7 @@ cov = [ ] [[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 -- cgit v1.2.3 From 59b97c7bef21cf68935b68fa7de6fd67653e21af Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Fri, 20 Oct 2023 16:09:28 -0700 Subject: Tweak pyproject.toml and setup.py --- pyproject.toml | 58 +++++++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 06e9503..11fcaad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,37 +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", - "Programming Language :: Python :: 3.12", + "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] @@ -53,13 +53,13 @@ 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] @@ -188,5 +188,9 @@ exclude_lines = [ ] [[tool.mypy.overrides]] -module = ["mwclient", "pytest"] +module = [ + "mwclient", + "mwclient.image", + "pytest", +] ignore_missing_imports = true -- cgit v1.2.3