Commit Graph

134 Commits

Author SHA1 Message Date
jo 2afb766b41 chore: outdated python packages versions 2022-09-12 10:48:43 +02:00
jo 22868ce158 chore: remove chdir in setup.py files 2022-07-27 15:35:57 +02:00
jo b93e1e5570 chore: install local python deps in editable mode 2022-07-27 15:35:57 +02:00
Jonas L 77f5c9951e
chore: improve setuptools find_packages (#1985) 2022-07-25 21:19:41 +02:00
jo c7c5bad46c chore(api): widen dependencies ranges
- https://packages.debian.org/bullseye-backports/python3-django
- https://packages.debian.org/bullseye/python3-django-filters
- https://packages.debian.org/bullseye/python3-djangorestframework
- https://packages.debian.org/bullseye/python3-psycopg2
2022-07-07 12:37:33 +02:00
jo 6c82e37fac chore(api): remove deprecated coreapi dependency
https://www.django-rest-framework.org/community/3.10-announcement/#openapi-schema-generation
2022-07-07 12:37:33 +02:00
jo 6d7510afee chore(api): remove markdown package 2022-07-07 12:37:33 +02:00
jo 70a31338f7 feat(api): create bulk_import command
- filter by allowed_extensions
2022-06-28 19:05:14 +02:00
jo 7457a29e7f chore(api): pin django related packages 2022-06-18 11:55:02 +02:00
jo 9babb0c4f0 chore(api): pin/downgrade django-filter to ~=21.1.0 2022-06-18 11:55:02 +02:00
jo 14b716d366 chore(api): pin/upgrade django to ~=3.2.13 2022-06-18 11:55:02 +02:00
Jonas L 9d0c098684
test(api): use pytest to run api tests (#1645) 2022-06-09 16:26:47 +02:00
jo 0e4bc4cacd feat: replace php migration with django migration
- keep latest legacy version in initial migration file
- move propel schema to api legacy app
- remove legacy upgrade tool
2022-06-08 23:23:08 +02:00
Jonas L 9d5de61241
chore(api): add mypy django stubs plugins (#1726) 2022-04-09 12:18:23 +02:00
jo bf8db3e6f0 chore(api): add pylint-django plugin 2022-04-04 15:20:22 +02:00
Jonas L fce988aef1
feat(api): split api into multiple apps (#1626)
Fixes #1622

- split the api into 4 apps: core, history, schedule, storage
- exploded the settings into testing/prod
2022-04-04 14:38:50 +02:00
jo 2dcc654b70 feat(api): load config using shared helpers
- add django settings module documentation
- use default for previously required fields

BREAKING CHANGE: The API command line interface require the
configuration file to be present. The default configuration file path is
`/etc/airtime/airtime.conf`
2022-03-02 22:03:56 +02:00
jo 4da8d8c06b fix(api): model_bakery is a dev dependency 2022-03-02 22:03:56 +02:00
jo 441028a1d2 chore: make setup.py file chdir consistent 2022-01-26 10:15:35 +02:00
jo e84137a8ee chore: fixes after libretime_api rename 2022-01-04 09:18:58 +02:00
Jonas L 7384dd7a2f
feature: Use setuptools entrypoints (#1409)
* Use console_scripts entrypoint for libretimeapi

* Use console_scripts entrypoint for playout
2021-10-18 09:44:39 +02:00
Kyle Robbertze 1274b2d849
Add openapi spec for API v2 (#1388) 2021-10-16 20:34:03 +02:00
jo 6013434393 Install api with prod extra requires 2021-10-01 17:49:33 +02:00
jo aad92c4ac1 Revert 77315885b9
And remove prod extra requires for api because ./setup.py install
don't handle extra requires.
2021-09-17 07:23:26 +02:00
jo c2df85c751 Cleanup redondant/useless requirements 2021-09-13 14:44:32 +02:00
jo 3a336375c2 Setup python_requires to >=3.6
Fix python_requires format
2021-09-10 15:14:48 +02:00
jo 3dbc1205d0 Start linting with mypy 2021-09-10 15:14:48 +02:00
jo 0d88d17f7c Use setup extra_requires for dev/prod dependencies
Also add pylint by default.
2021-09-10 13:45:27 +02:00
jo c9e35b1f62 Update setup tools project details 2021-09-02 15:45:37 +02:00
jo 01fbd1e8b9 Add isort pre-commit hook
Sort import statement in python files

See https://github.com/PyCQA/isort
2021-06-05 00:39:35 +02:00
jo b26de72704 Remove python encoding pragma 2021-06-05 00:39:23 +02:00
jo c27f020d73 Format code using black 2021-06-04 17:06:05 +02:00
jo ac17db97fc Fix missing encoding pragma on python files 2021-06-04 17:04:53 +02:00
Kyle Robbertze 2df0189a90 add API v2 2021-05-14 13:04:46 +02:00