Skip to content

Commit cc4598e

Browse files
Michael Behrensmfbehrens
Michael Behrens
andauthored
Fix some dependencies and rewrite db tooling in bash (#50)
Co-authored-by: Michael Behrens <[email protected]>
1 parent b77c16b commit cc4598e

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

pyproject.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ dependencies = [
2727
'gunicorn==21.2.0',
2828
'holidays==0.40',
2929
'icalendar==5.0.11',
30-
'Pillow==10.2.0',
31-
'psycopg2-binary==2.9.9',
30+
'Pillow==10.4.0',
31+
'psycopg2-binary==2.9.10',
3232
'python-dateutil==2.8.2',
33-
'requests==2.31.0'
33+
'requests==2.31.0',
3434
]
3535

3636
[project.optional-dependencies]
3737
tests = [
3838
'django-stubs==4.2.7',
3939
'types-python-dateutil==2.8.19.14',
4040
'types-requests==2.31.0.10',
41-
'mypy==1.8.0'
41+
'mypy==1.8.0',
4242
]
4343
docs = [
4444
'mkdocs==1.4.2',
45-
'mkdocs-material==9.0.11'
45+
'mkdocs-material==9.0.11',
4646
]
4747

4848
[project.urls]
4949
repository = 'https://github.com/HaDiNet/shiftings'
5050

5151
[tool.setuptools.packages.find]
52-
where=['src']
52+
where = ['src']
5353

5454
[tool.setuptools.package-data]
5555
shiftings = ['py.typed']

setup_db.py

-26
This file was deleted.

setup_db.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DB_FILE="test_db/db.sqlite3"
2+
3+
[ -e "$DB_FILE" ] && rm "$DB_FILE"
4+
python src/manage.py migrate
5+
python src/manage.py loaddata user
6+
python src/manage.py loaddata organization
7+
python src/manage.py loaddata shift

0 commit comments

Comments
 (0)