-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
106 lines (88 loc) · 2.56 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
#########################
# Project Configuration #
#########################
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "ocha-stratus"
description = "Utilities for accessing data from Azure cloud storage"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "Hannah Ker", email = "[email protected]" },
{ name = "Tristan Downing", email = "[email protected]" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"geopandas==1.0.1",
"pandas==2.2.3",
"rioxarray==0.17.0",
"xarray==2024.7.0",
"azure-storage-blob==12.22.0",
"sqlalchemy==2.0.36",
"psycopg2-binary==2.9.10",
"pyarrow==19.0.0",
"dask==2024.8.0",
"python-dotenv==1.0.1"
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"ruff==0.9.6",
"pre-commit==3.8.0",
"pytest"
]
docs = [
"sphinx>=7.1.0",
"sphinx-copybutton>=0.5.0",
"furo>=2024.1.29",
"myst-parser>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/OCHA-DAP/ocha-stratus"
Repository = "https://github.com/OCHA-DAP/ocha-stratus.git"
"Bug Tracker" = "https://github.com/OCHA-DAP/ocha-stratus/issues"
#########
# Tests #
#########
[tool.pytest.ini_options]
minversion = "6.0" # Requires pytest version 6.0 or higher
addopts = "-ra" # Default command line options for pytest
testpaths = [ # Directories to look for tests
"tests",
]
#########
# Hatch #
#########
# Build
[tool.hatch.build.targets.wheel]
packages = ["src/ocha_stratus"]
[tool.hatch.build.hooks.vcs]
version-file = "src/ocha_stratus/_version.py"
[tool.hatch.metadata]
allow-direct-references = true
# Versioning
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
version_scheme = "python-simplified-semver"
# Static code analysis
[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff==0.9.6"]
[tool.hatch.envs.hatch-static-analysis.scripts]
format-check = ["ruff format --config ruff.toml --check --diff {args:.}",]
format-fix = ["ruff format --config ruff.toml {args:.}",]
lint-check = ["ruff check --config ruff.toml {args:.}",]
lint-fix = ["ruff check --config ruff.toml --fix {args:.}",]