From 8a51bc2de5f13f370835d138773f1ade755c11eb Mon Sep 17 00:00:00 2001
From: pat1
Date: Sat, 21 Jul 2018 10:21:21 +0200
Subject: [PATCH 1/8] sure you specify the proper version support in your
setup.py file
---
setup.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/setup.py b/setup.py
index edc1742..9be2a46 100644
--- a/setup.py
+++ b/setup.py
@@ -301,6 +301,11 @@ def run(self):
author_email='p.patruno@iperbole.bologna.it',
platforms = ["any"],
url='http://autoradiobc.sf.net',
+ classifiers=(
+ "Programming Language :: Python :: 3",
+ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
+ "Operating System :: OS Independent",
+ ),
cmdclass={'build': build,'compilemessages':compilemessages,'createmanpages':createmanpages,"distclean":distclean,"haxecompileanoggplayer":haxecompileanoggplayer,"installbin":installbin,"buildall":buildall,"djangocollectstatic":djangocollectstatic},
packages=['autoradio', 'autoradio.playlists','autoradio.spots',
'autoradio.jingles', 'autoradio.programs',
From 3f23fdc5558832b4284e9d9b6aaa807f5e2c042e Mon Sep 17 00:00:00 2001
From: pat1
Date: Sat, 21 Jul 2018 11:10:20 +0200
Subject: [PATCH 2/8] porting to python3 with futurize
---
autoradio/audaciousweb.py | 14 +-
autoradio/autoaudacious.py | 8 +-
autoradio/autoepris.py | 15 +-
autoradio/autompris.py | 13 +-
autoradio/autompris2.py | 49 ++--
autoradio/autoplayer/mpris2client.py | 17 +-
autoradio/autoplayer/player.py | 44 ++--
autoradio/autoplayer/player_gstreamer0.py | 44 ++--
autoradio/autoplayer/playlist.py | 78 ++++---
autoradio/autoradio_config.py | 3 +-
autoradio/autoradio_core.py | 64 +++---
autoradio/autoxmms.py | 5 +-
autoradio/daemon.py | 11 +-
autoradio/dir2ogg.py | 92 ++++----
autoradio/gest_jingle.py | 43 ++--
autoradio/gest_palimpsest.py | 23 +-
autoradio/gest_playlist.py | 40 ++--
autoradio/gest_program.py | 23 +-
autoradio/gest_spot.py | 33 +--
autoradio/jingles/admin.py | 6 +-
autoradio/jingles/models.py | 87 ++++----
autoradio/manageamarok.py | 8 +-
autoradio/manageaudacious.py | 21 +-
autoradio/managempris.py | 25 ++-
autoradio/managepytone.py | 26 ++-
autoradio/managexmms.py | 19 +-
autoradio/mkplaylist.py | 40 ++--
autoradio/mpris2/__init__.py | 30 +--
autoradio/mpris2/interfaces.py | 1 +
autoradio/mpris2/loop_status.py | 9 +-
autoradio/mpris2/mediaplayer2.py | 6 +-
autoradio/mpris2/metada_map.py | 3 +-
autoradio/mpris2/playback_rate.py | 3 +-
autoradio/mpris2/player.py | 12 +-
autoradio/mpris2/playlist.py | 2 +-
autoradio/mpris2/playlists.py | 16 +-
autoradio/mpris2/some_players.py | 1 +
autoradio/mpris2/time_in_us.py | 3 +-
autoradio/mpris2/tracklist.py | 8 +-
autoradio/mpris2/types.py | 46 ++--
autoradio/mpris2/uri.py | 3 +-
autoradio/mpris2/utils.py | 14 +-
autoradio/mpris2/volume.py | 8 +-
autoradio/mprisweb.py | 19 +-
autoradio/player/urls.py | 19 +-
autoradio/playlists/admin.py | 3 +-
autoradio/playlists/models.py | 33 +--
autoradio/programs/admin.py | 6 +-
autoradio/programs/migrations/0002_fixture.py | 3 +-
autoradio/programs/models.py | 135 +++++------
autoradio/programs/urls.py | 3 +-
autoradio/programs/urls_podcast.py | 3 +-
autoradio/programs/views.py | 25 ++-
autoradio/programs/widgets.py | 6 +-
autoradio/pydbusdecorator/__init__.py | 13 +-
autoradio/pydbusdecorator/dbus_attr.py | 9 +-
autoradio/pydbusdecorator/dbus_decorator.py | 1 +
autoradio/pydbusdecorator/dbus_interface.py | 6 +-
autoradio/pydbusdecorator/dbus_method.py | 10 +-
autoradio/pydbusdecorator/dbus_signal.py | 5 +-
autoradio/pydbusdecorator/undefined_param.py | 6 +-
autoradio/settings.py | 5 +-
autoradio/spots/admin.py | 6 +-
autoradio/spots/models.py | 209 +++++++++---------
autoradio/urls.py | 3 +-
autoradio/xmmsweb.py | 7 +-
setup.py | 21 +-
67 files changed, 874 insertions(+), 698 deletions(-)
diff --git a/autoradio/audaciousweb.py b/autoradio/audaciousweb.py
index a7ae7f7..fa530ca 100644
--- a/autoradio/audaciousweb.py
+++ b/autoradio/audaciousweb.py
@@ -4,7 +4,11 @@
"""
Show audacious playlist on a simple web server.
"""
+from __future__ import print_function
+from builtins import str
+from builtins import range
+from builtins import object
maxplele=100 # max number of elements in playlist
port=8888 # server port
@@ -57,7 +61,7 @@