jo
01e8ee924b
fix: force playout status > 0 for playout schedule
2021-10-11 23:43:36 +02:00
jo
4799c80700
Properly import sleep function
2021-09-29 12:46:31 +02:00
Kyle Robbertze
6caa29e0c9
filter out invalid schedule items
2021-09-21 11:36:49 +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
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
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
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
jo
f44d174744
Fix undefined variable
2021-09-10 01:07:00 +02:00
jo
05cb98257f
Replace mock with stdlib unittest.mock
2021-09-07 12:40:45 +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
c9e35b1f62
Update setup tools project details
2021-09-02 15:45:37 +02:00
jo
3da0310173
Drop SysV support
2021-09-02 14:30:31 +02:00
Kyle Robbertze
9c001a6d06
force keyword only arguments
2021-08-31 20:11:39 +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
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
Kyle Robbertze
8d259aaf98
add missing fields to v2 get schedule api call
...
Fixes : #1258
2021-07-09 12:15:15 +02:00
Kyle Robbertze
27fb1e5076
require python-dateutil version 2.7 or higher
2021-06-22 17:14:24 +02:00
Kyle Robbertze
a1bf8c8c44
allow times without microseconds
2021-06-11 09:19:09 +02:00
jo
8d9d1e43c5
Update CI to run api_clients pytest
2021-06-08 14:06:32 +02:00
jo
f944eca0a7
Migrate api_clients tests to pytest
2021-06-08 00:08:32 +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
571b1a25ca
Rename test_* to *_test in api_clients
2021-06-04 17:06:05 +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
027b3525b1
fix python 3.6 support in api_client v2
...
Closes : #1228
2021-06-04 10:55:54 +02:00
Kyle Robbertze
e3564cc5e6
fix python format call
2021-06-02 09:02:37 +02:00
jo
391701f02f
Fix unparsable python files
2021-05-27 15:23:34 +02:00
Kyle Robbertze
7db2777d63
drop f-format string for python 3.5 compatibility
2021-05-21 15:09:47 +02:00
Kyle Robbertze
2df0189a90
add API v2
2021-05-14 13:04:46 +02:00
Kyle Robbertze
6b37b3dbab
fully test set protocol
2021-01-22 22:13:31 +02:00
Kyle Robbertze
7cb34df4fa
Use force_ssl in python apps
...
Fixes : #957
2021-01-21 09:49:55 +02:00
Kyle Robbertze
9112f205e2
fix decode error
2020-05-04 22:42:42 +02:00
Kyle Robbertze
e0e4d4c87f
Ensure all json loads calls use strings
2020-05-04 13:25:36 +02:00
Kyle Robbertze
6ebb1fd555
more pypo fixes
2020-04-29 19:06:52 +02:00
Kyle Robbertze
5923dee839
Fix running apps
2020-04-29 19:06:52 +02:00
Kyle Robbertze
e8a0783139
Fix tests
2020-04-29 19:06:52 +02:00
Kyle Robbertze
ea54493c21
add chaudum fixes
2020-04-29 19:05:35 +02:00
Kyle Robbertze
8346e89e99
install successfully using py3
2020-04-29 19:05:35 +02:00
Kyle Robbertze
632ba9acfe
convert print statements to py3
2020-04-29 19:05:35 +02:00
Lucas Bickel
b267036483
Fix recording through ecasound
...
This is part 2 of fixing ecasound recordings from line-in. Part 1 restored the User-Interface, part 2 takes care of getting to the point where ecasound gets started, records something and uploads it through rest when done. Part 3 will take care of making sure that the recorded file is mapped to the show and not just stored as a new track.
I refactored api_clients to not use urllib2 for posting multipart data since I was loosing my sanity over it and requests seems to have a modern approach to doing this compared to what api_clients was previously doing.
2017-03-24 15:15:37 +01:00