Commit Graph

2650 Commits

Author SHA1 Message Date
Kyle Robbertze 56f5a84146
Merge pull request #1339 from jooola/feat/ci_start_linting
Start linting 🎉 !
2021-09-13 12:01:31 +00: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
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
jo 3677a08656 Prepare Ubuntu 20.04 support
Start building docker dev images for testing purpose.
2021-09-09 17:54:27 +02: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
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 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
jo eb327c2621 Update celery worker README 2021-09-02 23:14:06 +02:00
Kyle Robbertze 1d33c037e3
Merge pull request #1322 from jooola/feat/housekeeping
Housekeeping
2021-09-02 18:59:04 +00:00
jo 45697aeaf3 Remove unused python modules in playout 2021-09-02 16:06:26 +02:00
jo 5a3b03cf19 Move playout authors credits in a README section 2021-09-02 16:06:26 +02:00
jo 3ac747f031 Remove license file in playout 2021-09-02 16:06:26 +02:00
jo f42840f9dd Rewrite celery README from .rst to .md 2021-09-02 16:06:26 +02:00
jo 97c8e88b8a Remove unused manifest.in files 2021-09-02 16:06:26 +02:00
jo c9e35b1f62 Update setup tools project details 2021-09-02 15:45:37 +02:00
jo cac25543c6 Drop Upstart support 2021-09-02 14:30:31 +02:00
jo 3da0310173 Drop SysV support 2021-09-02 14:30:31 +02:00
jo 40812c2783 Adjust replaygain value for s1-mono.m4a 2021-09-02 12:51:38 +02:00
jo be648c131c Ignore UnplayableFileError not raised on buster 2021-09-02 12:51:34 +02:00
jo be2fcd11ac Ignore silan test for mp3 on buster 2021-09-02 12:47:36 +02:00
jo 84c334eafb Add missing ffmpeg package for fixtures generation 2021-09-01 16:00:08 +02:00
Kyle Robbertze ce3957fef1 rename report function 2021-09-01 15:25:38 +02:00
Kyle Robbertze 9c001a6d06 force keyword only arguments 2021-08-31 20:11:39 +02:00
jo fb3ee2d27a Install venv instead of virtualenv 2021-08-31 16:07:29 +02:00
jo 42acf124a0 Revert "Move icecast from project to pypo packages"
This reverts commit a6cca16e579aecd4540df228c9e288d4f4f3534a.
2021-08-31 16:07:29 +02:00
jo 60c5c5fbb2 Move icecast from project to pypo packages 2021-08-31 16:07:29 +02:00
jo bfd8e8aecf ecasound is used by the show recorder in pypo 2021-08-31 16:07:29 +02:00
jo 18f9c81b74 Add dependencies manager
Used to generate list of packages dependencies
for different distributions, and should improve
dependencies management by having them in each project.
This tools should gather the reason why a dependency is present,
so one can remove it when unused.

Rename deps script to packages

Move installer/packages to scripts and write tests

Remove packages-list make target
2021-08-31 16:07:21 +02:00
jo 6238455aaf Generate +/- dB files 2021-08-31 11:02:12 +02:00
jo 9f768bb5c4 Rework tests to work with new fixtures 2021-08-30 21:23:48 +02:00
jo 8ac5c1ba03 Generate analyzer fixtures using ffmpeg 2021-08-30 21:23:38 +02:00
jo abc6420c05 Fix python shebangs
Some systems only provide a versionned `python3` executable.
2021-08-24 15:33:56 +02:00
Kyle Robbertze d8780e8add use api_clients method to update file size of items on the server 2021-08-20 13:55:01 +02:00
jo 577e581959 Explode datetime import statement 2021-08-18 17:05:29 +02:00
jo efd362eb62 Scheduler should prepare 1 day ahead, not 1 hour
The old API client v1 used to call the following action, and underlying schedule model:
d6093f7356/airtime_mvc/application/controllers/ApiController.php (L720-L730)
d6093f7356/airtime_mvc/application/models/Schedule.php (L1118-L1140)

The new API v2 prepared 1 hour of scheduled track instead
of 1 day in the old  API.
2021-08-18 16:19:58 +02:00
jo 9881eebf55 Fix shellcheck warnings 2021-08-17 12:23:36 +02:00
jo dc999f9006 Fix shellcheck errors 2021-08-17 12:23:32 +02:00
jo b5f302ac61 Enhance bash shebangs 2021-08-17 12:22:47 +02:00
jo 8b3e09d41c Format shell scripts
Fix flags order
2021-08-17 12:22:46 +02:00
jo 81e9e9f17c Rename isAlive method to is_alive
Python 3.9 compatibility fix
2021-08-15 18:47:24 +02:00
jo f5d1ffe27c Better failed request logging in api_client v1 2021-08-05 14:59:00 +02:00
jo d44317a28a Prevent falsy values obscur behavior in api call 2021-08-05 14:59:00 +02:00
jo a6e9f3109c Handle bad http requests in api clients
Previously unhandled, the http requests should either fail hard, or
errors should be logged with details of the failed request.
2021-08-01 14:14:36 +02:00