1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
|
[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.8",
"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 :: Implementation :: CPython",
"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.8"
[project.license]
text = "LGPL"
[project.optional-dependencies]
complexity = [
"lizard",
"radon",
]
dev = [
"fastkml[complexity,docs,linting,lxml,tests,typing]",
"pre-commit",
"shapely",
]
docs = [
"Sphinx",
"pyshp",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
]
linting = [
"black",
"flake8",
"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",
]
[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
target-version = "py38"
[tool.ruff.lint]
ignore = [
"A002",
"ANN401",
"D203",
"D212",
"FA100",
"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" = [
"D101",
"D102",
"D103",
"D104",
"PLR2004",
"S101",
"SLF001",
]
"tests/repr_eq_test.py" = [
"E501",
]
[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
|