Commit Graph

24 Commits

Author SHA1 Message Date
ecarjat
de7fccdc1a Merge branch 'master' into master 2025-06-06 09:22:44 +02:00
Donkie
70ea7ad414 Update python dependencies and ruff/black versions 2025-03-16 21:34:02 +01:00
ecarjat
108fdd2908 Added SPOOLMAN_CORS_ORIGIN variable 2025-01-26 15:41:58 +01:00
Donkie
535fa40ad2 Updated most python dependencies
Primarily FastAPI and Pydantic to v2. Also ruff to latest.

Updated some code to support Pydantic v2
2024-05-23 19:42:27 +02:00
Donkie
620febc3ab Moved hishel cache directory into spoolmans data directory
This is to prevent permission issues
2024-05-21 11:25:08 +02:00
Donkie
cbaa7b81df Added API for fetching external database, removed parameters structure, 2024-05-12 12:14:25 +02:00
Donkie
bc32f1e890 Now supports running under a sub path
Just set the SPOOLMAN_BASE_PATH environment variable and it should work.

Resolves #95
2024-05-10 11:37:09 +02:00
Dmitry Belousov
91d922d0b8 fixed version prometheus-client
added env variable SPOOLMAN_METRICS_ENABLED for enabled database collector

set metrics path as /metrics

checked Null values at vendors, init weight and price
removed some logs
2024-04-15 00:17:36 +03:00
Donkie
46c95eb5dd Fixed valueerror on invalid build date 2024-01-25 22:14:31 +01:00
Donkie
b40da6e2ee Updated commit and build date capturing
It's now written to a build.txt file instead of using environment variables internally. Standalone installs now has this properly as well.
2024-01-25 22:03:18 +01:00
Donkie
c0b4951a68 Read Spoolman version directly from pyproject.toml instead 2024-01-25 21:54:10 +01:00
Donkie
0dee856e80 Added env vars to override all storage dirs 2023-11-25 21:59:05 +01:00
Donkie
d119a27cc2 Added separate get_logs_dir function for logs dir
Instead of piggy-backing on the data dir
2023-11-25 21:42:56 +01:00
Donkie
fef41a5628 Added warning if in docker and data dir isn't mounted
Had to remove the VOLUME definition in the dockerfile for this, otherwise the data dir would always be mounted by an anonymous volume if the user didn't mount it correctly, so the python script wouldn't be able to detect it.
2023-11-07 21:45:58 +01:00
Donkie
a9f19774e4 Added an explicit data folder permissions check on startup
It will try resolve the permission issue on its own, but if not successful it will crash with a helpful message.
2023-11-06 22:17:36 +01:00
Donkie
1a3efd9ea9 Added git commit and build date env and API 2023-09-17 10:51:28 +02:00
Donkie
871e5282e5 Updated python packages 2023-08-28 21:10:07 +02:00
Donkie
b9ee4626d3 Moved version to the FastAPI app instead 2023-07-10 11:45:46 +02:00
Donkie
f24b9610e8 Added automatic nightly SQLite backups
Resolves #22
2023-07-04 14:59:05 +02:00
Donkie
d201f17e5e Improved manually specifying sqlite db 2023-07-04 12:10:14 +02:00
Donkie
de1bf05922 Added Alembic for migrations 2023-05-27 23:14:06 +02:00
Donkie
ecc34f3669 Added a debug mode 2023-05-14 18:54:05 +02:00
Donkie
1c59e0efd5 Added logging level env var 2023-05-09 21:44:25 +02:00
Donkie
1a148c0991 Added proper support for all databases 2023-04-06 16:19:33 +02:00