From ef4eff4868ca30b7b0a07b3d2e6e96391ed09e2c Mon Sep 17 00:00:00 2001 From: legonzaur Date: Tue, 30 Dec 2025 15:24:47 +0100 Subject: [PATCH] fix pyproject toml to work with uv --- pyproject.toml | 51 +++++++++++++++++--------------------------------- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 21a8090..8247625 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,10 @@ -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" - -[tool.poetry] +[project] name = "cbz" version = "3.4.5" description = "CBZ simplifies creating, managing, and viewing comic book files in CBZ, CBR, and PDF formats, offering seamless packaging, metadata handling and built-in viewing capabilities." license = "MIT" -authors = ["hyugogirubato <65763543+hyugogirubato@users.noreply.github.com>"] +authors = [{name="hyugogirubato", email="65763543+hyugogirubato@users.noreply.github.com"}] readme = "README.md" -repository = "https://github.com/hyugogirubato/cbz" keywords = [ "python", "cbz", @@ -29,41 +24,29 @@ classifiers = [ "Topic :: Utilities", "Topic :: Software Development :: Libraries :: Python Modules", ] -include = [ - { path = "CHANGELOG.md", format = "sdist" }, - { path = "README.md", format = "sdist" }, - { path = "LICENSE", format = "sdist" }, +requires-python = ">=3.8,<4.0" + +dependencies= [ +"langcodes>=3.4.0", +"Pillow>=10.4.0", +"pypdf >=5.7.0", +"rarfile>=4.2", +"xmltodict>=0.14.2" ] + [tool.poetry.urls] "Issues" = "https://github.com/hyugogirubato/cbz/issues" "Changelog" = "https://github.com/hyugogirubato/cbz/blob/main/CHANGELOG.md" -[tool.poetry.dependencies] -python = ">=3.8,<4.0" -langcodes = ">=3.4.0" -Pillow = ">=10.4.0" -pypdf = ">=5.7.0" -rarfile = ">=4.2" -xmltodict = ">=0.14.2" -pillow-avif-plugin = { version = ">=1.5.2", optional = true, markers = "python_version >= '3.9'" } -pillow-jxl-plugin = { version = ">=1.3.4", optional = true, markers = "python_version >= '3.9'" } + +[project.optional-dependencies] +pillow = ["pillow-avif-plugin>=1.5.2", "pillow-jxl-plugin>=1.3.4"] + +[dependency-groups] +dev = ["pytest>=7.4.0,<9.0.0", "pytest-cov>=5.0.0"] -[tool.poetry.extras] -pillow = ["pillow-avif-plugin", "pillow-jxl-plugin"] - -[tool.poetry.scripts] -cbzplayer = "cbz.__main__:main" - -[[tool.poetry.source]] -name = "localpypi" -url = "https://pypi.org/simple/" -priority = "primary" - -[tool.poetry.group.dev.dependencies] -pytest = ">=7.4.0,<9.0.0" -pytest-cov = ">=5.0.0" [tool.pytest.ini_options] testpaths = ["tests"]