-
Notifications
You must be signed in to change notification settings - Fork 34
/
pyproject.toml
111 lines (101 loc) · 3.31 KB
/
pyproject.toml
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
[tool.black]
line-length = 110
target-version = ['py39']
[tool.mypy]
python_version = "3.9"
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
strict_optional = true
strict = true
[tool.isort]
known_first_party = "tilecloud"
profile = "black"
line_length = 110
[tool.poetry]
name = "tilecloud"
version = "0.0.0"
description = "Tools for managing tiles"
readme = "README.md"
authors = ["Camptocamp <[email protected]>"]
repository = "https://github.com/camptocamp/tilecloud"
license = "BSD-2-Clause"
keywords = ["gis", "tilecloud"]
packages = [{ include = "tilecloud" }]
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
"Typing :: Typed",
]
include = ["tilecloud_chain/py.typed"]
[tool.poetry.scripts]
c2cciutils = "c2cciutils.scripts.main:main"
tc-copy = "tilecloud.scripts.tc_copy:main"
tc-delete = "tilecloud.scripts.tc_delete:main"
tc-info = "tilecloud.scripts.tc_info:main"
tc-mask = "tilecloud.scripts.tc_mask:main"
tc-mbtiles = "tilecloud.scripts.tc_mbtiles_create:main"
tc-mbtiles-info = "tilecloud.scripts.tc_mbtiles_info:main"
tc-redifined-bounds = "tilecloud.scripts.tc_refine_bounds:main"
tc-viewer = "tilecloud.scripts.tc_viewer:main"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
azure-storage-blob = { version = "12.24.0", optional = true }
azure-identity = { version = "1.19.0", optional = true }
boto3 = { version = "1.35.71", optional = true }
bottle = "0.13.2"
prometheus_client = { version = "0.21.0", optional = true }
Pillow = "11.0.0"
pyproj = "3.7.0"
pyramid = { version = "2.0.2", optional = true }
requests = "2.32.3"
redis = { version = "5.2.0", optional = true }
cryptography = "44.0.0"
[tool.poetry.extras]
azure = ["azure-storage-blob", "azure-identity"]
aws = ["boto3"]
wsgi = ["pyramid"]
redis = ["redis"]
prometheus = ["prometheus_client"]
all = ["azure-storage-blob", "azure-identity", "boto3", "pyramid", "redis", "prometheus_client"]
[tool.poetry.group.dev.dependencies]
prospector = { version = "1.13.3", extras = ["with_bandit", "with_mypy", "with_pyroma", "with_ruff"] }
prospector-profile-duplicated = "1.8.0"
prospector-profile-utils = "1.13.0"
pytest = "8.3.4"
pytest-cov = "6.0.0"
types-boto = "2.49.18.20241019"
types-redis = "4.6.0.20241004"
types-requests = "2.32.0.20241016"
pycairo = "1.27.0"
Shapely = "2.0.6"
urllib3 = "2.2.3" # Lock the used version to avoid lock issue
[build-system]
requires = [
"poetry-core>=1.3.0",
"poetry-dynamic-versioning",
"poetry-plugin-tweak-dependencies-version>=1.1.0",
"poetry-plugin-tweak-dependencies-version",
"poetry-plugin-drop-python-upper-constraint"
]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
format-jinja = """
{%- if env.get("VERSION_TYPE") == "version_branch" -%}
{{serialize_pep440(bump_version(base, 1 if env.get("IS_MASTER") == "TRUE" else 2), dev=distance)}}
{%- elif distance == 0 -%}
{{serialize_pep440(base)}}
{%- else -%}
{{serialize_pep440(bump_version(base), dev=distance)}}
{%- endif -%}
"""
[tool.poetry-plugin-tweak-dependencies-version]
default = "present"