svg2ild/pyproject.toml

178 lines
3.8 KiB
TOML

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "svg2ild"
version = "0.1.0"
description = "Converts SVG files to ILDA animation format for laser shows"
readme = "README.md"
license = "AGPL-3.0"
authors = [
{name = "miklo",email = "test@miklobit.com"}
]
maintainers = [
{name = "miklo", email = "test@miklobit.com"}
]
keywords = ["svg", "ilda", "laser", "animation", "laser-show", "graphics"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.21.0",
"scipy>=1.7.0",
"shapely>=1.8.0",
"svgpathtools>=1.5.0",
"svgwrite>=1.4.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=5.0.0",
"mypy>=1.0.0",
"pre-commit>=2.20.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
docs = [
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.2.0",
"myst-parser>=0.18.0",
]
[project.urls]
Homepage = "https://forge.citizen4.eu/miklo/svg2ild"
Documentation = "https://forge.citizen4.eu/miklo/svg2ild/wiki"
Repository = "https://forge.citizen4.eu/miklo/svg2ild.git"
"Bug Tracker" = "https://forge.citizen4.eu/miklo/svg2ild/issues"
Changelog = "https://forge.citizen4.eu/miklo/svg2ild/blob/main/CHANGELOG.md"
[tool.setuptools]
package-dir = {"" = "."}
[tool.setuptools.packages.find]
where = ["."]
include = ["ilda*"]
exclude = ["tests*"]
[tool.setuptools.package-data]
"*" = ["*.txt", "*.md", "*.yml", "*.yaml", "*.json"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["ilda"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"svgpathtools.*",
"shapely.*",
"scipy.*",
"numpy.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--cov=ilda",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
[tool.coverage.run]
source = ["ilda"]
omit = [
"*/tests/*",
"*/test_*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503", "E501"]
exclude = [
".git",
"__pycache__",
"build",
"dist",
".eggs",
"*.egg-info",
".venv",
".env",
]