fix pyproject toml to work with uv

This commit is contained in:
2025-12-30 15:24:47 +01:00
parent d37be87c2f
commit ef4eff4868
+17 -34
View File
@@ -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"]