-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
148 lines (129 loc) · 3.87 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "matorral"
dynamic = ["version"]
description = "A project managent system / Taiga.io clone with a simpler UX built @ Málaga"
readme = "README.md"
license = "MPL-2.0"
authors = [
{ name = "Matias Agustin Mendez", email = "[email protected]" },
]
keywords = []
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"Django>=4.0,<6.0",
"celery",
"django-admin-list-filter-dropdown",
"django-debug-toolbar",
"django-environ",
"django-extensions",
"django-simple-history",
"django-tagulous",
"django-watchman",
"msgpack",
"pytz",
"sentry-sdk",
"whitenoise",
]
[project.urls]
Homepage = "https://github.com/matagus/matorral"
Issues = "https://.github.com/matagus/matorral/issues"
Repository = "https://github.com/matagus/matorral"
Changelog = "https://githib.com/matagus/matorral/releases"
[tool.hatch.version]
path = "config/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["."]
exclude = ["matorral.db"]
[tool.hatch.build.targets.wheel]
packages = ["."]
exclude = ["matorral.db"]
[tool.hatch.envs.default]
extra-dependencies = []
# Local environment
[tool.hatch.envs.local]
extra-dependencies = [
"Werkzeug",
"coverage[toml]",
"django-coverage-plugin",
"django-test-plus",
"ipdb",
"ipython",
"mypy",
"typing-extensions",
]
[tool.hatch.envs.local.scripts]
server = "python manage.py runserver_plus {args}"
shell = "python manage.py shell_plus {args}"
migrate = "python manage.py migrate {args}"
makemigrations = "python manage.py makemigrations {args}"
createuser = "python manage.py createsuperuser {args}"
copy-config = "cp config/env.example config/.env"
install = ["migrate", "copy-config", "createuser"]
# Production environment
[tool.hatch.envs.prod]
extra-dependencies = [
"gunicorn",
"psycopg2-binary",
]
[tool.hatch.envs.prod.scripts]
server = "gunicorn --bind '0.0.0.0:8000' --worker-tmp-dir /dev/shm --workers 3 config.wsgi:application"
migrate = "python manage.py migrate {args}"
makemigrations = "python manage.py makemigrations {args}"
run = ["migrate", "server"]
# Test environment
[tool.hatch.envs.test]
extra-dependencies = [
"coverage[toml]",
"django~={matrix:django}.0",
"django_coverage_plugin",
"django-debug-toolbar",
"factory-boy",
]
[[tool.hatch.envs.test.matrix]]
django = ["4.0"]
python = ["3.9", "3.10"]
[[tool.hatch.envs.test.matrix]]
django = ["4.1"]
python = ["3.9", "3.10", "3.11"]
[[tool.hatch.envs.test.matrix]]
django = ["4.2"]
python = ["3.9", "3.10", "3.11", "3.12"]
[[tool.hatch.envs.test.matrix]]
django = ["5.0"]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.test.scripts]
test = "python manage.py test --settings=config.settings {args}"
test-cov = "coverage run -m django test --settings=config.settings {args}"
cov-report = ["coverage json", "coverage report"]
cov = ["test-cov", "cov-report"]
[tool.ruff]
line-length = 120
exclude = ["matorral.db", "static", "config/settings.py"]
[tool.black]
line-length = 120
[tool.codespell]
skip = "matorral.db,matorral/static/js/htmx.min.js"
quiet-level = 3
write-changes = true