-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (101 loc) · 2.53 KB
/
pyproject.toml
File metadata and controls
113 lines (101 loc) · 2.53 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
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
[build-system]
requires = ["setuptools>=80", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "polarrouteserver"
authors = [
{name = "David Wyld", email = "dalby@bas.ac.uk"},
{name = "Thomas Zwagerman", email = "thozwa@bas.ac.uk"},
]
description = "Backend server for serving PolarRoute and MeshiPhi assets and managing their calcuation using Django & Celery."
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
requires-python = ">= 3.10"
dependencies = [
"celery",
"Django>=5.2,<6",
"django-celery-beat",
"django-celery-results",
"django-cors-headers",
"django-rest-framework",
"django-taggit",
"drf-spectacular[sidecar]",
"haversine",
"polar-route==1.0.0",
"psycopg>=3",
"pyyaml",
"SQLAlchemy",
]
[project.urls]
Homepage = "https://github.com/bas-amop/PolarRoute-server"
Repository = "https://github.com/bas-amop/PolarRoute-server.git"
Issues = "https://github.com/bas-amop/PolarRoute-server/issues"
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*"]
[tool.setuptools_scm]
version_file = "polarrouteserver/_version.py"
[tool.setuptools.exclude-package-data]
polarrouteserver = [
"*.sqlite3",
]
[project.optional-dependencies]
dev = [
"django-debug-toolbar",
"pre-commit",
"pytest",
"pytest-celery",
"pytest-django",
"ruff",
]
prod = [
"gunicorn"
]
build = [
"build"
]
cov = [
"pytest-cov"
]
cov-badge = [
"coverage-badge"
]
[dependency-groups]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-autoapi",
"mkdocs-include-markdown-plugin",
"mkdocstrings[python]",
"mkdocs-render-swagger-plugin",
]
[project.scripts]
request_route = "request_route.request_route:main"
[tool.ruff]
exclude = ["tests/*"]
[tool.ruff.lint.per-file-ignores]
"polarrouteserver/settings/*" = [
"F403", # allow from .. import * in settings modules
"F405", # allow defined in * imports in settings modules
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "polarrouteserver.settings.test"
addopts = "--create-db"
filterwarnings = "error::RuntimeWarning" # turn RuntimeWarnings into errors/test failures
testpaths = [
"tests"
]
[tool.coverage.run]
branch = true
omit = [
"polarrouteserver/settings/*",
"polarrouteserver/route_api/migrations/*",
"polarrouteserver/route_api/admin.py",
"polarrouteserver/route_api/apps.py",
"polarrouteserver/asgi.py",
"polarrouteserver/admin.py",
"polarrouteserver/urls.py",
"polarrouteserver/wsgi.py",
"route_request/*",
]