Commit Graph

78 Commits

Author SHA1 Message Date
jo 04490676f6 chore: release 3.0.0-beta.2 2022-10-03 12:43:38 +02:00
jo ddae3202cc chore: release 3.0.0-beta.1 2022-09-23 13:41:14 +02:00
jo bdc2e92454 chore: release 3.0.0-beta.0 2022-09-16 16:32:00 +02:00
Jonas L 9b3207b8a4
feat: move timezone preference to config file (#2096)
BREAKING CHANGE: The timezone preference moved to the configuration
file.
2022-09-14 12:48:08 +02:00
jo ef091d10cb fix(shared): load env from oneOf union schema 2022-09-12 12:54:06 +02:00
renovate[bot] ef44ad392d chore(deps): update dependency pydantic to >=1.7.4,<1.11 2022-09-12 12:54:06 +02:00
jo 2afb766b41 chore: outdated python packages versions 2022-09-12 10:48:43 +02:00
Jonas L f4b1387e01
fix(shared): install tzdata distibutions package (#2105)
zoneinfo rely on the system tzdata package to work.
2022-09-08 17:50:39 +02:00
jo d9920a1196 feat(shared): create stream config models 2022-09-06 13:21:54 +02:00
Jonas L c28c048bf4
chore: use https links (#2075) 2022-08-25 16:25:54 +02:00
jo cfcfcc82e4 chore: revert pin setuptools to <64.0.0 for build backend
This reverts commit 2bde574487.
2022-08-25 09:51:36 +02:00
Jonas L 1147853c63
feat(shared): pass config data via init (#2042) 2022-08-12 15:12:39 +02:00
jo 2bde574487 chore: pin setuptools to <64.0.0 for build backend 2022-08-11 22:16:00 +02:00
Jonas L b465629977
chore: disable pylint logging-fstring-interpolation format (#2033) 2022-08-09 20:30:44 +02:00
Jonas L 6df1087abc
fix(shared): remove unused field from rabbitmq config (#2012) 2022-08-01 12:03:03 +02:00
jo bcd877266f feat(shared): load env config using jsonschema
The env loader is now capable of loading lists of objects, union types
or list of union types from the env variables.
They are some limitations: for example it doesn't support unions of
different shapes `list | dict` or `str | dict`.
2022-07-31 21:43:34 +02:00
jo 6c449e3019 fix(shared): validator value type can be wrong 2022-07-31 21:43:34 +02:00
jo dec51eacee test(shared): move config tests 2022-07-31 21:43:34 +02:00
Jonas L 140cf4427b
test: enable logs when running pytest (#2008) 2022-07-31 11:23:27 +02:00
jo 22868ce158 chore: remove chdir in setup.py files 2022-07-27 15:35:57 +02:00
Jonas L e75426bc4c
refactor(shared): explode config into multiple files (#1987) 2022-07-25 21:30:15 +02:00
Jonas L 77f5c9951e
chore: improve setuptools find_packages (#1985) 2022-07-25 21:19:41 +02:00
jo 8996d4beb4 chore(shared): update pydantic version range 2022-07-17 21:25:37 +02:00
jo 1a8da4c000 chore(shared): update pyyaml version range 2022-07-17 21:25:37 +02:00
jo 80218f33eb chore: rewrite extract-requirements to python
Using python ast to guess requirements in the setup.py file.
2022-07-17 21:25:37 +02:00
jo be9f36dbdc feat(analyzer): move compute_md5 to shared library 2022-06-28 19:05:14 +02:00
Jonas L 6ef941b3f2
chore(shared): explicit function name time_fromisoformat (#1917) 2022-06-25 17:10:59 +02:00
jo 3ce60d4881 chore: move api-client datetime utils to shared 2022-06-24 17:56:24 +02:00
Jonas L 3705747132
feat(shared): add config trailing slash sanitizer (#1870) 2022-06-11 18:18:34 +02:00
jo f7bb6e7592 feat: move storage path setting to configuration file
- change default storage path to /srv/libretime
- remove music dirs table
- use /tmp for testing storage
- storage dir should always have a trailing slash
2022-06-08 23:23:08 +02:00
jo e4439390fe feat: change config file format to yaml
- docs: add link to yaml.org

BREAKING: The `ini` configuration file format changed to `yml`. Please
rewrite your configuration file using the yaml format.
2022-06-08 23:23:08 +02:00
Jonas L c78854b139
test(shared): remove bad disable no-self-use (#1862) 2022-06-04 22:27:09 +02:00
Jonas L a4caf4782b
fix(shared): allow list settings (#1837) 2022-05-05 18:14:32 +02:00
jo 9130cf2895 feat(shared): allow to disable log rotate/retention 2022-05-05 09:42:34 +02:00
Jonas L d098671f3b
feat: replace click envar with auto_envvar_prefix (#1829) 2022-05-05 09:41:32 +02:00
Jonas L 515a975e51
feat(shared): remove unused abstract app (#1828) 2022-05-04 14:12:06 +02:00
Jonas L 3a2e910f12
feat(shared): compress logs with gz (#1827) 2022-05-04 13:56:20 +02:00
jo 751d430bcc feat: replace exploded base_* with public_url
Fixes #1574

BREAKING CHANGE: The `general` section in the config schema has changed: the `general.base_*`, `general.protocol` and `general.force_ssl` configuration fields have been replaced with a single `general.public_url` field. Be sure to use a valid url with the new configuration field.
2022-04-25 16:45:01 +02:00
Jonas L 87d2da9d84
chore(shared): pin click to 8.0.* (#1732)
8.1.0 dropped support for python 3.6
2022-04-04 11:23:12 +02:00
jo 000f09b095 feat(shared): do not exit on missing config file 2022-03-02 22:03:56 +02:00
Jonas L d55e58e416
chore: auto generate requirements.txt (#1651)
- force LC_ALL for the sort command
2022-02-28 20:02:01 +02:00
jo ba0897a023 fix(shared): fix missing port in public_url 2022-02-25 11:42:28 +02:00
jo 31cf8361be feat(shared): return log level and filepath 2022-02-22 17:33:48 +02:00
jo 045fdc8d96 feat(shared): create time functions 2022-02-22 17:33:48 +02:00
jo 9d7d0ee6ca feat(shared): create general config model 2022-02-22 17:33:48 +02:00
jo d9852940d6 refactor(shared): dict merging using pydantic deep_update 2022-02-22 17:33:48 +02:00
jo 27c2221a68 feat(shared): load config from str filepath 2022-02-22 17:33:48 +02:00
Jonas L 5769821995
test(shared): config with required submodel (#1616) 2022-02-20 20:11:49 +00:00
jo a26f3824bb test(shared): add bandit linter check 2022-02-14 21:01:35 +02:00
jo c7332db8ed test(shared): add missing format lint check 2022-02-14 21:01:35 +02:00