Commit graph

46 commits

Author SHA1 Message Date
jo
ca12ca5c41 Move python_apps/pypo/ to playout/ 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
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
893f172432 Add local api_client dependency to playout 2021-10-12 02:06:42 +02:00
jo
c2df85c751 Cleanup redondant/useless requirements 2021-09-13 14:44:32 +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
0d88d17f7c Use setup extra_requires for dev/prod dependencies
Also add pylint by default.
2021-09-10 13:45:27 +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
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
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
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
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
Lucas Bickel
7aa95bf204 fix(pypo): install .liq files from subdirs 2020-12-26 13:24:49 +01: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
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
36891c18c8 ♻️ (pypo) cleanup pypo/__main__.py
Clean up code and add python 3 support (with python 2 bc).
2018-12-23 12:06:26 +01:00
Lucas Bickel
acdc529139 Do not bundle liquidsoap library
I think the code was bundled into legacy upstream before it was
readily available in liquidsoap proper. These snippets are now
maintained at https://github.com/savonet/liquidsoap/tree/master/scripts.

On all distros I checked these scripts are installed to /usr/bin/liquidsoap
by the corresponding package. Liquidsoap loads them from there by
default.

By not bundling this we will be ready to profit from new features and
bugfixes in liquidsoap that is expected to land on opam soon. We'll
need to figure out how to get debian and others updated when that
happens.
2017-03-28 12:26:11 +02:00
Albert Santoni
bb05fa996a SAAS-1132: Improve safety of XML parsing for listener stats 2015-11-09 19:32:56 -05:00
Duncan Sommerville
1816be156f SAAS-922 - change file extensions in pypo based on mime-type, update lists of accepted mime types 2015-07-16 16:26:52 -04:00
Albert Santoni
b81069ace3 Added missing requests dependency to pypo's requirements 2015-05-22 18:43:05 -04:00
Albert Santoni
027adc7749 Three bugfixes
* Removed Support Settings nav link
* SAAS-801: pypo log configuration files are overkill and must be removed
* CC-6043: CTRL-C doesn't work in pypo / airtime-playout
2015-05-22 18:20:45 -04:00
Albert Santoni
a2d8da617d Fixed everything about Airtime on Debian
* Added sysvinit scripts back in and cleaned them up
* service status now works correctly for all services
* Moved logging config files into install/ folders for the python_apps
* Fixed some small setup.py problems in the various python_apps
* Gave each python app a better bin/ script which doesn't fork, which lets
  service status work automagically.
2015-02-13 16:06:59 -05:00
Albert Santoni
bbcd4fbe2e Tons of bugfixes for the installer on Debian
* Still need to get pypo working with sysvinit
* Still need to fix this logger.cfg silliness with pypo and
  media_monitor
2015-02-13 11:32:07 -05:00
Duncan Sommerville
b673017bfd Fix to setuptools deployment of pyponotify and liquidsoap 2015-01-28 15:09:13 -05:00
Duncan Sommerville
875a9dfd8b CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime 2015-01-27 18:43:36 -05:00
Duncan Sommerville
4552089c19 Fixes to install & uninstall procedure 2015-01-15 17:33:47 -05:00
Duncan Sommerville
791466b023 Fixes for code review https://github.com/sourcefabric/Airtime/pull/84 2015-01-15 16:33:33 -05:00
Duncan Sommerville
5e22f929c7 Reverted commit mistakenly changing file modifiers to 755 2015-01-14 20:45:03 -05:00
Duncan Sommerville
0fcac545e6 For now, just prompt users to start background services at the end of the install process 2015-01-12 10:53:31 -05:00
Duncan Sommerville
bf1355a203 Yet another attempt to run upstart jobs as unprivileged user 2015-01-12 09:48:08 -05:00
Duncan Sommerville
e568013db6 More work on running services as web user 2015-01-08 13:21:08 -05:00
Duncan Sommerville
ab35827439 Different approach for running airtime services as unprivileged user 2015-01-08 12:56:09 -05:00
Duncan Sommerville
a790527e67 More work on running upstart services as non-privileged user 2015-01-08 10:06:37 -05:00
Duncan Sommerville
e6d8a6f25e Move upstart .conf files to directory accessible by non-privileged users 2015-01-07 16:04:48 -05:00
Duncan Sommerville
f4c5cf1353 Added virtualenv back into install process 2015-01-05 16:41:03 -05:00
Duncan Sommerville
6bc3a1cfba More work on switching pypo to use setuptools, added lxc-bootstrap script for ease of testing across distros 2014-12-19 09:47:54 -05:00
Duncan Sommerville
4749ef111c More work on switching pypo to use setuptools 2014-12-17 17:05:55 -05:00
Duncan Sommerville
29917ebf63 More work on switching pypo to use setuptools 2014-12-17 16:42:29 -05:00