Commit Graph

2650 Commits

Author SHA1 Message Date
Kyle Robbertze f902c42095
Merge pull request #1270 from paddatrapper/fix/pycairo
Install pycairo before PyGObject
2021-07-16 15:02:05 +02:00
Kyle Robbertze f5ca20ed3e install pycairo before PyGObject
Fixes: #1267
2021-07-15 10:27:23 +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 eac3a61460 limit pygobject version to 3.36.1 for pycairo 2021-07-06 10:12:28 +02:00
Kyle Robbertze 27fb1e5076 require python-dateutil version 2.7 or higher 2021-06-22 17:14:24 +02:00
Kyle Robbertze d5781d198c
Merge pull request #1231 from paddatrapper/fix/python-valueerror
Allow schedule times without microseconds in api_client
2021-06-17 21:03:37 +02:00
Kyle Robbertze 42d1ce07ec
Merge pull request #1239 from LibreTime/dependabot/pip/python_apps/airtime_analyzer/mutagen-1.45.1
Bump mutagen from 1.42.0 to 1.45.1 in /python_apps/airtime_analyzer
2021-06-11 10:38:31 +02:00
dependabot[bot] 5ac3b6d2e9 Bump mutagen from 1.42.0 to 1.45.1 in /python_apps/airtime_analyzer
Bumps [mutagen](https://github.com/quodlibet/mutagen) from 1.42.0 to 1.45.1.
- [Release notes](https://github.com/quodlibet/mutagen/releases)
- [Changelog](https://github.com/quodlibet/mutagen/blob/master/NEWS)
- [Commits](https://github.com/quodlibet/mutagen/compare/release-1.42.0...release-1.45.1)

---
updated-dependencies:
- dependency-name: mutagen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 10:35:31 +02:00
dependabot[bot] fac48adb13
Bump rgain3 from 1.0.0 to 1.1.0 in /python_apps/airtime_analyzer
Bumps [rgain3](https://github.com/chaudum/rgain) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/chaudum/rgain/releases)
- [Changelog](https://github.com/chaudum/rgain3/blob/main/CHANGES.md)
- [Commits](https://github.com/chaudum/rgain/compare/1.0...1.1)

---
updated-dependencies:
- dependency-name: rgain3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 08:26:45 +00:00
dependabot[bot] 1c6b190a91 Update pika requirement in /python_apps/airtime_analyzer
Updates the requirements on [pika](https://github.com/pika/pika) to permit the latest version.
- [Release notes](https://github.com/pika/pika/releases)
- [Commits](https://github.com/pika/pika/compare/1.1.0...1.2.0)

---
updated-dependencies:
- dependency-name: pika
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 10:22:26 +02:00
Kyle Robbertze 668d050a0e
Merge pull request #1236 from LibreTime/dependabot/pip/python_apps/airtime_analyzer/pygobject-lt-3.40.2
Drop pygobject requirement from /python_apps/airtime_analyzer
2021-06-11 09:37:30 +02:00
dependabot[bot] 64c87ba341 Drops pygobject requirement in /python_apps/airtime_analyzer
Updates the requirements on [pygobject](https://pygobject.readthedocs.io) to permit the latest version.

---
updated-dependencies:
- dependency-name: pygobject
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 09:33:55 +02:00
Kyle Robbertze a1bf8c8c44 allow times without microseconds 2021-06-11 09:19:09 +02:00
jo 15cd4e58dc Properly test metadata unparsable file 2021-06-08 14:28:18 +02:00
jo f84af8aa2e Remove old unicode prefix 2021-06-08 14:28:18 +02:00
jo ed3d527c09 Update CI to run pytest 2021-06-08 14:28:16 +02:00
jo bec298d63f Fix missing mutagen 2021-06-08 14:24:32 +02:00
jo 9f88f82404 Fix inconsistent test across env
Liquidsoap version in CI is different from debian buster
and on test about playability is failing because of
this unhandled versions mismatch.
2021-06-08 14:24:32 +02:00
jo bafa6fc6d8 Add comment in pytest conftest 2021-06-08 14:24:32 +02:00
jo 8b7d6f8a7e Migrate metadata_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 9639010ba6 Fix tests naming 2021-06-08 14:24:32 +02:00
jo d94193ce57 Migrate analyzer_pipeline_test to pytest 2021-06-08 14:24:32 +02:00
jo 23d02bf959 fix: Temp dir path might contain underscores 2021-06-08 14:24:32 +02:00
jo 21c8aa65db Add extra comment on helper function 2021-06-08 14:24:32 +02:00
jo 6700b4b8e0 Extract common fixtures in conftest.py 2021-06-08 14:24:32 +02:00
jo dad360255b Fix wildcard import 2021-06-08 14:24:32 +02:00
jo 6dee626cbd Migrate filemover_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 27090c8f2f Use requirements.txt and add pytest dependency
Requirements.txt is a developement deps list
2021-06-08 14:24:32 +02:00
jo b37a095414 Migrate playability_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo efcbd26447 Migrate replaygain_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 5ff923887d Migrate cuepoint_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 591b62ebee Migrate analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 0a9b0223a6 Replace deprecated .warn() with .warning() 2021-06-08 14:24:32 +02:00
jo 3522c3c86e Remove empty test file 2021-06-08 14:24:32 +02:00
Kyle Robbertze 8bbd0d608c
Merge pull request #1244 from jooola/api_client_pytest
Migrate api_clients tests to pytest
2021-06-08 14:19:31 +02:00
jo 8d9d1e43c5 Update CI to run api_clients pytest 2021-06-08 14:06:32 +02:00
jo ce976743e7 Remove daemon helper from analyzer
Let the system daemonize the process.
2021-06-08 00:31:18 +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 1e1cf249f7 Search and replace unicode a0c2 with 0020 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 5eb357520e Rename tests to test in airtime_analyzer 2021-06-04 17:06:05 +02:00
jo 97fed1c18d Remove broken symlink 2021-06-04 17:06:05 +02:00
jo 0180fa0e49 Fix shebangs 2021-06-04 17:06:05 +02:00
jo f2e840989a Fix executable bit 2021-06-04 17:06:05 +02:00
jo 6871956baa Fix end of files 2021-06-04 17:06:05 +02:00
jo d8195f0fd8 Fix trailing whitespaces in files 2021-06-04 17:06:05 +02:00
jo c27f020d73 Format code using black 2021-06-04 17:06:05 +02:00
jo 65f7b41487 Fix spelling 2021-06-04 17:04:53 +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
Robb cfec65c40a
Merge pull request #1125 from zklosko/gh-actions
Moving from Travis CI to Github Actions
2021-05-24 16:09:15 -04:00
Kyle Robbertze 6f6d90fad7 update replaygain values 2021-05-21 16:15:50 +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 649468074b
Merge pull request #1174 from paddatrapper/fix/pypofile
fix: force_ssl logic in pypofile
2021-02-15 09:48:26 +02:00
Kyle Robbertze 5e080ce5e5
Merge pull request #1144 from hairmare/chore/pythonic-analyzer
refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic
2021-02-12 22:40:44 +02:00
Kyle Robbertze 3af17a6761 fix: force_ssl logic in pypofile 2021-02-10 16:34:42 +02:00
Jérôme Lebleu 298c5a9264 Fix missing 'fallback' kwarg for base_port in pypofile 2021-02-03 17:25:11 +01:00
Kyle Robbertze 90e5005c76
Merge pull request #1158 from hairmare/fix/remove-soundcloud
fix(soundcloud): remove broken integration
2021-01-24 23:09:30 +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
Lucas Bickel 4c72403b9b fix(soundcloud): remove broken integration 2021-01-06 12:40:30 +00:00
Lucas Bickel e21abf1bf1 refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic 2021-01-04 10:30:27 +00:00
Lucas Bickel 7788397304 fix(pypo): refactor liquidsoap entrypoint 2020-12-26 13:44:14 +01:00
Lucas Bickel 7aa95bf204 fix(pypo): install .liq files from subdirs 2020-12-26 13:24:49 +01:00
Lucas Bickel 42328b9277 feat(pypo): support liquidsoap 1.4 2020-12-24 23:22:58 +01:00
rjhelms 2160daea00 Fix replaygain_analyzer in Python 3.5
'text' argument was added in Python 3.7 as an alias of 'universal_newlines'. Using 'universal_newlines' works on Python 3.5/3.6 and should be forward-compatible.
2020-11-19 14:52:52 -05:00
Zachary Klosko a5023d031a pin PyGObject versions to distro provided packages
this prevents pip trying to build the pypi package and failing.
Fixes: #1107
2020-11-18 17:49:51 +02:00
Kyle Robbertze 4c0146db74 pin celery version until we can fix compatibility with celery 5 2020-08-28 12:47:01 +02:00
Jakub Skory 7058def9a8
Renamed template conf for liquidsoap and playout 2020-06-27 14:36:08 +02:00
Robb 16bff4ff9e
Merge pull request #1047 from paddatrapper/listener-stats
Correctly encode icecast admin credentials for listener stats
2020-05-23 09:43:52 -04:00
Kyle Robbertze afd3d7842b Rewrite Travis script to be modular
Fixes: #1039
2020-05-20 11:06:56 +02:00
Zachary Klosko 6540a34a9b Adding back scripts in /docs 2020-05-19 10:16:31 -04:00
Kyle Robbertze cf414239e2 Correctly encode icecast admin credentials for listener stats
Fixes: #1045
2020-05-18 16:49:19 +02:00
Kyle Robbertze c44346fe94 Rename all systemd, sysvinit and upstart files to libretime
Fixes: #516
2020-05-15 15:32:13 +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 cf3b9782ac fix legacy version check 2020-04-29 19:06:52 +02:00
Kyle Robbertze 6640e5624c move legacy script to python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 30d6db1e5e Make sure command calls python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 91996c91bc Remove double encode which caused webstream playout to break 2020-04-29 19:06:52 +02:00
Kyle Robbertze ca0d01b693 Fix mutagen to compatible versions 2020-04-29 19:06:52 +02:00
Keoni Mahelona d48e792922 Checking type of command to only encode if string. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 348f8573c7 Add traceback so we can debug. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 9724298f40 Use `utf-8` encoding. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 0a9781d138 Added traceback so we can find the bug 2020-04-29 19:06:52 +02:00
Keoni Mahelona 0289f84111 Ok hopefully this is it. python3 requries a bytestring https://docs.python.org/3.7/library/telnetlib.html 2020-04-29 19:06:52 +02:00
Keoni Mahelona dd46b4c984 Remove .encode(). Not needed in python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 42a5937288 Updated other old tn.write() functions 2020-04-29 19:06:52 +02:00
Keoni Mahelona 1ac3f691b4 Fixed #968. Needed to send a byte string to telnet not a normal string. 2020-04-29 19:06:52 +02:00
Keoni Mahelona a643883d06 Set pika version to ~1.1.0 to prevent api updates from breaking code.
Updated message_listener for new version.
2020-04-29 19:06:52 +02:00
Keoni Mahelona 4a45225369 Suggest using `universal_newlines` as the alias `text` only works for python 3.7 and above.
Default python3 for example is 3.6 in Ubuntu Bionic and therefore liquidsoap fails with parameter `text`.
2020-04-29 19:06:52 +02:00
Kyle Robbertze 6ebb1fd555 more pypo fixes 2020-04-29 19:06:52 +02:00
Kyle Robbertze 3a8b1e207f deprecate media_monitor completely 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