[build-system] build-backend = "setuptools.build_meta" requires = [ "setuptools>=61.2", ] [project] authors = [ { email = "christian.ledermann@gmail.com", name = "Christian Ledermann" }, ] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: GraalPy", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering :: GIS", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: XML", "Typing :: Typed", ] dependencies = [ "arrow", "pygeoif>=1.5", "typing-extensions>4", ] description = "Fast KML processing in python" dynamic = [ "version", ] name = "fastkml" requires-python = ">=3.9" [project.license] text = "LGPL" [project.optional-dependencies] complexity = [ "complexipy", "lizard", "radon", ] dev = [ "fastkml[complexity,docs,linting,lxml,tests,typing]", "pre-commit", "shapely", ] docs = [ "Sphinx", "pyshp", "sphinx-autodoc-typehints", "sphinx-rtd-theme", ] linting = [ "flake8-cognitive-complexity", "flake8-comments", "flake8-encodings", "flake8-expression-complexity", "flake8-typing-imports", "ruff", "yamllint", ] lxml = [ "lxml", ] tests = [ "hypothesis[dateutil]", "pytest", "pytest-cov", "pytz", "tzdata", ] typing = [ "mypy", "types-python-dateutil", ] [project.readme] content-type = "text/x-rst" file = "README.rst" keywords = [ "GIS", "Google", "KML", "Maps", "OpenLayers", ] [project.urls] Changelog = "https://github.com/cleder/fastkml/blob/develop/docs/HISTORY.rst" Documentation = "https://fastkml.readthedocs.org/" Homepage = "https://github.com/cleder/fastkml" [tool.check-manifest] ignore = [ ".*", "examples/*", "mutmut_config.py", "tox.ini", ] [tool.coverage.paths] source = [ "fastkml", "tests", ] [tool.coverage.report] exclude_also = [ "^\\s*\\.\\.\\.$", "class \\w+\\(Protocol\\)\\:", "except AssertionError:", "except ImportError:", "if TYPE_CHECKING:", ] [tool.coverage.run] branch = true [tool.flake8] max_line_length = 89 [tool.isort] force_single_line = true line_length = 88 [tool.mypy] disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_calls = true disallow_untyped_decorators = true disallow_untyped_defs = true enable_error_code = [ "ignore-without-code", ] ignore_errors = false ignore_missing_imports = true implicit_reexport = false no_implicit_optional = true show_error_codes = true strict_equality = true strict_optional = true warn_no_return = true warn_redundant_casts = true warn_return_any = true warn_unreachable = true warn_unused_configs = true warn_unused_ignores = true [[tool.mypy.overrides]] disable_error_code = "attr-defined, union-attr" module = "tests.oldunit_test" [[tool.mypy.overrides]] disable_error_code = "attr-defined, union-attr, no-untyped-def, no-untyped-call, arg-type" module = "examples.*" [[tool.mypy.overrides]] disable_error_code = "union-attr" module = "tests.*" [tool.pyright] exclude = [ "**/__pycache__", "**/node_modules", ".pyre", ".pytype", ] include = [ "fastkml", ] [tool.rstcheck] ignore_directives = [ "autoclass", "automodule", ] report_level = "WARNING" [tool.ruff] fix = true [tool.ruff.lint] ignore = [ "ANN401", "D203", "D212", "FA100", "FBT001", "PLR0913", ] select = [ "ALL", ] [tool.ruff.lint.extend-per-file-ignores] "examples/*.py" = [ "ANN001", "ANN201", "D100", "D104", "D401", "ICN001", "INP001", "S311", "T201", ] "fastkml/helpers.py" = [ "ARG001", "PLR0913", ] "tests/*.py" = [ "A002", "D101", "D102", "D103", "D104", "PLR2004", "S101", "SLF001", ] "tests/repr_eq_test.py" = [ "E501", ] [tool.ruff.lint.flake8-builtins] builtins-allowed-modules = [ "types", ] builtins-ignorelist = [ "id", ] [tool.ruff.lint.isort] force-single-line = true [tool.setuptools] include-package-data = true [tool.setuptools.dynamic.version] attr = "fastkml.about.__version__" [tool.setuptools.package-data] fastkml = [ "schema/*.xsd", ] [tool.setuptools.packages.find] exclude = [ "docs/*", ] include = [ "fastkml*", "fastkml/py.typed", ] namespaces = false