Commit Graph

17461 Commits

Author SHA1 Message Date
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
dependabot[bot] ccde6039e7
Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy (#1418)
* Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy

Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 2.12.3 to 3.0.0.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v2.12.3...v3.0.0)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Replace deprecated AMQPConnection with AMQPStreamConnection

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2021-10-17 21:55:12 +02:00
Jonas L 3dd43d183c
Update README.md (#1420)
* Update README.md

Update CI badge with Github Action badge.
Update Copyright date.
Update link to legacy files.

* Update README.md

Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>

Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
2021-10-17 20:08:12 +02:00
dependabot[bot] d61fae8cfa
Bump rgain3 from 1.1.0 to 1.1.1 in /analyzer (#1411)
Bumps [rgain3](https://github.com/chaudum/rgain) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/chaudum/rgain/releases)
- [Changelog](https://github.com/chaudum/rgain3/blob/1.1.1/CHANGES.md)
- [Commits](https://github.com/chaudum/rgain/compare/1.1...1.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-17 18:50:43 +02:00
dependabot[bot] 8b5c6b0cfb
Bump phpunit/phpunit from 4.8.36 to 5.7.27 in /legacy (#1419)
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 4.8.36 to 5.7.27.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/5.7.27/ChangeLog-5.7.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/4.8.36...5.7.27)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-17 18:44:30 +02:00
Jonas L 7837cc2320
Add dependabot check for legacy composer (#1392) 2021-10-17 18:25:50 +02:00
Jonas L 10d073dcfb
chore: Remove dev_tools (#1384) 2021-10-17 17:29:52 +02:00
Jonas L 5e8d8db6e9
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4

* Sort composer dependencies

* Remove unused Aws S3 php library

* Pin simplepie dependency to ^1.5

* Pin getid3 dependency to ^1.9

* Pin composer semver to ^3.2

* Pin php-amqplib to ^2.12

* Drop sentry logging support

* Update composer dependencies

* Move propel regenerate to Makefile

* Regenerate propel files with v1.7.0

* Pin propel orm to ^1.7

* Regenerate propel files with v1.7.2

* fix: generator_version in airtime-conf-production.php

* Replace propel/propel1 with jooola/propel1

* Regenerate propel files with v1.7.3-dev

* Fix php7.4 compatibility

Using php-cs-fixer:

    '@PhpCsFixer' => true,
    'concat_space' => ['spacing' => 'one'],
    'ordered_class_elements' => false,
    'yoda_style' => false,
    '@PHP74Migration' => true,
    'assign_null_coalescing_to_coalesce_equal' => false,
    'ternary_to_null_coalescing' => false,
    'heredoc_indentation' => false,
    '@PHP74Migration:risky' => true,
    'declare_strict_types' => false,
    'void_return' => false,
    'use_arrow_functions' => false,

* Fix pre-commit
2021-10-17 17:19:53 +02:00
Jonas L 30b3470a06
Better format enforcing (#1391)
* Add shared python format-check target

* Add .format-check to api lint target

* Format api code with makefile format target

* Add .format-check to tools lint target

* Add .format-check to analyzer lint target

* Format analyzer code with makefile format target

* Add .format-check to celery lint target

* Add .format-check to api_client lint target

* Format api_client code with makefile format target

* Add .format-check to playout lint target

* Run CI linting in parallel

* Disable isort in pre-commit
2021-10-17 16:24:37 +02:00
Jonas L ada4c72e87
Remove unused include locale/Makefile (#1407)
* Remove unused include locale/Makefile

This was generating a mess/loop with the git clean command.

* Clean/rebuild generated locales on install
2021-10-17 15:21:17 +02:00
Weblate (bot) c613cb7d38
Translated using Weblate (German) (#1416)
Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
2021-10-17 10:22:18 +02:00
Weblate (bot) 9247b9d941
Translations update from Weblate (#1415)
* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

* Translated using Weblate (German (Austria))

Currently translated at 55.3% (531 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de_AT/

* Translated using Weblate (German)

Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

* Translated using Weblate (German)

Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

* Translated using Weblate (Greek)

Currently translated at 55.3% (531 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/el/

* Translated using Weblate (English (United Kingdom))

Currently translated at 75.2% (722 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/en_GB/

* Translated using Weblate (Italian)

Currently translated at 46.5% (446 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/it/

* Translated using Weblate (Japanese)

Currently translated at 55.2% (530 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/ja/

* Translated using Weblate (Dutch)

Currently translated at 60.4% (580 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/nl/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 51.8% (497 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/pt_BR/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Kyle Robbertze <github@paddatrapper.com>
2021-10-17 10:11:46 +02:00
jo 19c816f294 Update paths after playout move 2021-10-17 08:02:47 +00:00
jo ca12ca5c41 Move python_apps/pypo/ to playout/ 2021-10-17 08:02:47 +00:00
jo d97ecdfba7 Move python_apps/icecast2 to installer/icecast/ 2021-10-17 08:02:47 +00:00
jo 8fe0156d4f Update paths after api_client move 2021-10-17 08:02:47 +00:00
jo d06c898bcf Move python_apps/api_clients/ to api_client/ 2021-10-17 08:02:47 +00:00
jo cf36eec5f8 Update paths after wroker move 2021-10-17 08:02:47 +00:00
jo 58e275147f Move python_apps/airtime-celery/ to worker/ 2021-10-17 08:02:47 +00:00
jo 08f13d850c Update paths after analyzer move 2021-10-17 08:02:47 +00:00
jo 2ef63e8c4e Move python_apps/airtime_analyzer/ to analyzer/ 2021-10-17 08:02:47 +00:00
Jonas L a7d06ad076
Fix double path separator in require_once (#1408) 2021-10-17 08:54:08 +02:00
Weblate (bot) 8b96489332
Translations update from Weblate (#1405)
* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Jonas L <lammler.jonas@riseup.net>
2021-10-17 08:52:27 +02:00
Jonas L c7304badb2
Type fix and checks for tools packages (#1403)
* Fix scripts/packages typings

* Prevent empty packages list when invalid distro
2021-10-17 00:21:22 +02:00
Jonas L 1efa0742c9
Clean and update locales (#1402)
* Remove untranslated languages

* Add country prefix to some locales

* Remove locale template file

* Prepare nl_NL and tr_TR locale for future use

* Sort locales list and put en_Us at the top

* Enhance locale Makefile

Add clean target for locales

Set locale all target to clean and build

Ensure we keep issue tracker on po updates

* Update locales headers

* Scan sources files and update locales
2021-10-17 00:20:03 +02:00
Kyle Robbertze a2312ddfce
Update Website link to point to alpha.10 (#1404) 2021-10-16 23:54:00 +02:00
Kyle Robbertze 1274b2d849
Add openapi spec for API v2 (#1388) 2021-10-16 20:34:03 +02:00
Kyle Robbertze 9f1e41e6fa
Fix release action (#1401)
* correctly output file content

* trigger on version tags

* install gettext

* do not allow manual releases

* use maintained release action
2021-10-15 16:50:18 +02:00
Kyle Robbertze 9e9f6b433a
Create alpha.10 release notes (#1395)
* create alpha.10 release notes

* fix table of context to be markdown

* add python script cleanup

* fix links

* add API v2 feature

* Remove /usr/local/bin references

* add issue links to known issues and fix API v2 description

* Sort cleanup command args

* Better cleanup comments

Co-authored-by: Jonas L <jooola@users.noreply.github.com>
2021-10-15 15:49:45 +02:00
Jonas L 4335795c52
chore: Enhance release workflow (#1400)
* Rename package-release to release

* Move tarball creation in Makefile

* Enhance release workflow

* Add --ignore-platform-reqs to composer build
2021-10-15 14:59:59 +02:00
Kyle Robbertze 8411c6225f
Merge pull request #1398 from jooola/feat/locale_management
Enhance locale management
2021-10-15 12:43:23 +00:00
jo f7494cab7d Add locale Makefile and allow building mo files 2021-10-15 14:12:27 +02:00
jo a070e4a4c3 Rename locale text domain to libretime 2021-10-15 14:12:27 +02:00
jo a7e6cb4ed8 Remove 'pro' locales domain 2021-10-15 14:12:27 +02:00
jo ea89fc631a Rename po files to libretime 2021-10-15 14:12:27 +02:00
Kyle Robbertze 3be3a53e3b
Merge pull request #1399 from jooola/feat/rename_legacy_ci_jobs
Improve legacy Makefile
2021-10-15 05:44:36 +00:00
jo 81b0f22277 Improve legacy Makefile 2021-10-15 01:49:56 +02:00
Kyle Robbertze 2f3adac09d
Merge pull request #1373 from jooola/feat/rename_python_packages
Rename python packages/entrypoints
2021-10-14 14:06:50 +00:00
jo 69d85c4236 Fix legacy services check names 2021-10-14 16:03:35 +02:00
Kyle Robbertze 3dfd07551e
Merge pull request #1394 from jooola/fix/pin_pip_install_installer
Pin setuptools to ^58.0 in installer
2021-10-14 14:03:32 +00:00
jo 18cfd175a2 Rename airtime-playout to libretime-playout 2021-10-14 15:31:59 +02:00
jo 25e947c8bf Rename airtime-liquidsoap to libretime-liquidsoap
BREAKING:
sudo rm -f \
  /etc/logrotate.d/airtime-liquidsoap
2021-10-14 15:31:59 +02:00
jo 8be1366bef Rename python apps entrypoints
BREAKING: Remove old entrypoints using
sudo rm -f \
  /usr/{bin,local/bin}/airtime-liquidsoap \
  /usr/{bin,local/bin}/airtime-playout \
  /usr/{bin,local/bin}/pyponotify
2021-10-14 15:31:59 +02:00
jo bde2f2d494 Rename python apps
BREAKING: Remove old packages using
sudo pip uninstall \
  airtime-playout \
  airtime-celery \
  api_clients

Fix libretime-api-client import for playout
2021-10-14 15:31:57 +02:00
jo 67db856fd8 Pin setuptools to ^58.0 in installer 2021-10-14 15:23:58 +02:00
Kyle Robbertze 6081dc161b
Merge pull request #1387 from jooola/feat/format_mvc_pre-commit
Enable pre-commit for legacy code
2021-10-12 11:55:03 +00:00
jo efba0a7d09 Format xml files 2021-10-12 11:29:31 +02:00
jo 83b7e4162e Run pre-commit on legacy code 2021-10-12 11:17:57 +02:00
jo fea11ac752 Fix seed_files.yml 2021-10-12 11:16:43 +02:00
jo 3a7d450191 Enable pre-commit on legacy code 2021-10-12 11:16:43 +02:00