Commit Graph

17297 Commits

Author SHA1 Message Date
jo 67f4b60b3a Split venv setup and package install targets
This allow to reinstall the packages without
rebuilding the venv in case of dependencies change.
2021-09-15 19:40:58 +02:00
Kyle Robbertze f722d1a134
Merge pull request #1346 from jooola/feat/allow_api_v1_headers_key_auth
Auth to API v1 using Authorization: Api-Key header
2021-09-15 13:35:57 +00:00
jo 512c67b1a6 Auth to API v1 using Authorization: Api-Key header 2021-09-15 14:56:14 +02:00
Kyle Robbertze b9bfa618a6
Merge pull request #1342 from jooola/feat/ci_start_linting_again
Follow up #1339
2021-09-14 12:12:17 +00:00
Kyle Robbertze 774ead8696
Merge pull request #1345 from jooola/fix/api_client_notify_liquidsoap_status
Fix bad argument name, use kwargs
2021-09-14 04:56:27 +00:00
jo 23f8617409 Fix bad argument name, use kwargs
Argument should be `_post_data` and we only allow kwargs in `ApiRequest.__call__`.
2021-09-13 21:45:52 +02:00
jo eb223a6951 Install the api with prod extra 2021-09-13 15:01:06 +02:00
jo 77315885b9 Use pip to install apps on the system 2021-09-13 15:00:31 +02:00
jo c2df85c751 Cleanup redondant/useless requirements 2021-09-13 14:44:32 +02:00
jo d12e232a6f Add format target in makefiles 2021-09-13 14:43:18 +02:00
jo 6b7658d5a7 Use shared makefile de requirements 2021-09-13 14:23:04 +02:00
jo 5753fc34a4 Format Makefiles 2021-09-13 14:22:20 +02:00
jo 6e4876839b Add format in shared makefile 2021-09-13 14:21:19 +02:00
Kyle Robbertze 56f5a84146
Merge pull request #1339 from jooola/feat/ci_start_linting
Start linting 🎉 !
2021-09-13 12:01:31 +00:00
Kyle Robbertze 381359dc79
Merge pull request #1340 from jooola/feat/move_composer_file
Move composer file
2021-09-12 18:42:27 +00:00
jo 9a7c3e0d21 Replace build.sh with make to manage airtime_mvc 2021-09-11 04:55:51 +02:00
jo f161fb0e0a Remove duplicate script 2021-09-11 04:48:53 +02:00
jo 03b109dcb5 Fix paths after composer.* files move 2021-09-11 04:48:53 +02:00
jo f784f483a8 Move composer files in airtime_mvc 2021-09-11 04:48:53 +02:00
jo 15145039b3 Add annotations matchers 2021-09-10 15:14:48 +02:00
jo c9322fbcc8 Use makefile in test jobs
Reorder test job sorting
2021-09-10 15:14:48 +02:00
jo 00b73a3819 Add CI linting job
Use a single lint job

Run linting inside a container
2021-09-10 15:14:48 +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 ceb40ee216 Use shared python makefile and start linting
Always update setuptools/wheel/pip

Never fail while linting

We use github annotations to impove the code incrementally.
2021-09-10 15:14:46 +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 1742f91a34 Cleanup pre-commit lint task 2021-09-10 13:34:26 +02:00
Kyle Robbertze af693ed6b0
Merge pull request #1337 from jooola/fix/undefined_time_var
Fix undefined variable
2021-09-10 05:39:01 +00:00
jo f44d174744 Fix undefined variable 2021-09-10 01:07:00 +02:00
Kyle Robbertze daca0f3166
Merge pull request #1336 from paddatrapper/fix/docker-build-non-interactive
Disable interactive frontend for apt in docker builds
2021-09-09 19:16:32 +00:00
Kyle Robbertze 31c2d2ee7f disable interactive frontend for apt in docker builds 2021-09-09 20:16:22 +02:00
Kyle Robbertze 3480502012
Merge pull request #1335 from jooola/feat/prepare_ubuntu-20.04
Prepare Ubuntu 20.04 support
2021-09-09 15:55:45 +00:00
jo 3677a08656 Prepare Ubuntu 20.04 support
Start building docker dev images for testing purpose.
2021-09-09 17:54:27 +02:00
Kyle Robbertze e4118696b5
Merge pull request #1334 from jooola/feat/prepare_debian-11
Prepare Debian 11 support
2021-09-09 15:44:37 +00:00
jo 1ec11f2a87 Prepare Debian 11 support
Start building docker dev images for testing purpose.
2021-09-09 16:31:55 +02:00
Kyle Robbertze 9fbcdd494c
Merge pull request #1329 from jooola/fix/remove_pypo_unused_python_packages
Remove playout unused python packages
2021-09-09 13:48:41 +00:00
Kyle Robbertze e2aabfe580
Merge pull request #1332 from jooola/feat/enhance_scripts_tools
Enhance scripts tools
2021-09-08 06:13:53 +00:00
jo 7f1c368c13 Run tools CI job 2021-09-07 23:10:34 +02:00
jo 14d4012e8e Fix tools linting 2021-09-07 23:10:21 +02:00
jo 4724a30937 Fix tools makefile 2021-09-07 23:09:53 +02:00
jo 7cb3501540 Rename scripts/ to tools/ 2021-09-07 23:03:19 +02:00
Kyle Robbertze df3e61bfdc
Merge pull request #1330 from jooola/feat/use_stdlib_mock
Replace mock with stdlib unittest.mock
2021-09-07 11:51:20 +00:00
jo 05cb98257f Replace mock with stdlib unittest.mock 2021-09-07 12:40:45 +02:00
jo 9ca5d9f622 Remove python2 to 3 compatbility package
Additionnaly, this import was relying on a dependency in playout.
2021-09-07 11:10:01 +02:00
jo e69c2796fa Remove unused python packages from playout
- anyjson is failing with setuptools >=58, because it
dropped the use_2to3 support.
- other package are simply not used.
2021-09-07 11:08:58 +02:00
Kyle Robbertze 2513f08d07
Merge pull request #1327 from jooola/feat/hide_my_podcasts
Hide My Podcasts feature
2021-09-07 06:33:05 +00:00
jo 0c4a294265 Hide My Podcasts feature 2021-09-06 14:40:40 +02:00
Kyle Robbertze 509f680e6d
Merge pull request #1309 from paddatrapper/fix/filesize-host
Use api_clients method to update file size of items on the server
2021-09-03 10:13:42 +00:00
Kyle Robbertze 0d6f8be824
Merge pull request #1324 from jooola/fix/update_celery_readme
Update celery worker README
2021-09-02 22:17:58 +00:00
jo eb327c2621 Update celery worker README 2021-09-02 23:14:06 +02:00