-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (56 loc) · 1.4 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (56 loc) · 1.4 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "terrametria"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [{ name = "renardeinside", email = "polarpersonal@gmail.com" }]
dependencies = [
"fastapi",
"uvicorn",
"databricks-sql-connector",
"python-dotenv",
"databricks-sdk",
"geopandas",
"numpy<2.0"
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/terrametria/_version.py"
[tool.hatch.envs.default]
python = "3.10"
# we only needs these dependencies for development
dependencies = [
"pyspark",
"delta-spark",
"pytest",
"pandas",
"numpy",
"requests",
"httpx",
"hatchling"
]
[project.scripts]
loader = "terrametria.entrypoint:loader"
[tool.hatch.envs.default.scripts]
dev-frontend = "yarn --cwd src/frontend dev"
build-frontend = "yarn --cwd src/frontend build"
dev-backend = "uvicorn terrametria.backend:app --reload --host=0.0.0.0 --port=8000"
build-for-apps = [
"rm -rf .build",
"mkdir -p .build",
"hatch build -t wheel -c",
"cp ./dist/*.whl .build/",
"cd .build && ls *.whl > requirements.txt",
]
[tool.hatch.build.targets.wheel]
# we need to explicitly include this folder because it's .gitignore'd
artifacts = ["src/terrametria/static/**"]
[tool.hatch.build.hooks.custom]
path = "hooks/yarn_build.py"