cswimr
c4205fc4f1
- improved version logic - now using hatch and hatch-vcs to automatically generate versions based on git tag / git commit / distance from last tag - raise an error if the voices cache is not populated correctly - lint with mypy in actions - use pyproject.toml for pylint configuration
60 lines
1.5 KiB
TOML
60 lines
1.5 KiB
TOML
[project]
|
|
name = "pyflowery"
|
|
description = "A Python API wrapper for the Flowery API"
|
|
readme = "README.md"
|
|
requires-python = "<4.0,>=3.11"
|
|
dependencies = [
|
|
"aiohttp>=3.11.2",
|
|
]
|
|
classifiers = [
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Intended Audience :: Developers",
|
|
"Operating System :: OS Independent",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
]
|
|
dynamic = ["version", "urls"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"mypy>=1.13.0",
|
|
"pylint>=3.3.1",
|
|
"ruff>=0.7.3",
|
|
]
|
|
docs = [
|
|
"mkdocs>=1.6.1",
|
|
"mkdocs-git-authors-plugin>=0.9.2",
|
|
"mkdocs-git-revision-date-localized-plugin>=1.3.0",
|
|
"mkdocs-material[imaging]>=9.5.44",
|
|
"mkdocs-redirects>=1.2.2",
|
|
"mkdocstrings[python]>=0.27.0",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 160
|
|
|
|
[tool.pylint]
|
|
max-line-length = 200
|
|
disable = [
|
|
"missing-module-docstring",
|
|
"too-many-arguments",
|
|
"too-many-positional-arguments",
|
|
"too-few-public-methods",
|
|
]
|
|
|
|
[tool.hatch.version]
|
|
source = "vcs"
|
|
|
|
[tool.hatch.build.hooks.vcs]
|
|
version-file = "pyflowery/version.py"
|
|
|
|
[tool.hatch.metadata.hooks.vcs.urls]
|
|
Homepage = "https://www.coastalcommits.com/cswimr/PyFlowery"
|
|
Issues = "https://www.coastalcommits.com/cswimr/PyFlowery/issues"
|
|
source_archive = "https://www.coastalcommits.com/cswimr/PyFlowery/archive/{commit_hash}.tar.gz"
|
|
|
|
[build-system]
|
|
requires = ["hatchling", "hatch-vcs"]
|
|
build-backend = "hatchling.build"
|