Skip to content

Commit da5b99c

Browse files
committed
- version 0.9.2.25
- droping python 2 - PyRadio will only run on python 3 - fixing #228
1 parent 0fb95a8 commit da5b99c

17 files changed

+119
-295
lines changed

Changelog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-02-24 s-n-g
2+
* version 0.9.2.25
3+
* droping python 2 - PyRadio will only run on python 3
4+
* fixing #228
5+
16
2024-01-12 s-n-g
27
* version 0.9.2.24 (BUG FIX)
38
* fixing mpv title parsing (once again)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you face this situation, please refer to [this page](docs/pip-error.md) to re
4747
and much more...
4848

4949
## Requirements
50-
* python 2.7/3.5+
50+
* python 3.7+
5151
- setuptools
5252
- wheel
5353
- requests

devel/build_install_pyradio

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env bash
22
function help(){
3-
echo "Usage: $0 [2/-R]"
3+
echo "Usage: $0 [-R/-t]"
44
echo "
55
Available options:
6-
2 build using python v. 2.7 (linux only)
76
-R remove (uninstall) pyradio
87
-t Use this terminal for Desktop file (linux only)
98
@@ -44,10 +43,8 @@ exit 1
4443
function find_paths(){
4544
local APATH
4645
python devel/site.py 2>/dev/null
47-
python2 devel/site.py 2>/dev/null
4846
python3 devel/site.py 2>/dev/null
4947
APATH=$(python -m site --user-site 2>/dev/null) && echo "$APATH"
50-
APATH=$(python2 -m site --user-site 2>/dev/null) && echo "$APATH"
5148
APATH=$(python3 -m site --user-site 2>/dev/null) && echo "$APATH"
5249
}
5350

@@ -249,6 +246,7 @@ function check_root(){
249246
check_root
250247
rm -rf build pyradio.egg-info 2>/dev/null
251248
TO_PYTHON=3
249+
[[ $(python --version 2>/dev/null) == *" 3."* ]] && TO_PYTHON=''
252250
TO_PYTHON_FROM_X=''
253251
NO_DEV=''
254252
while [[ $# -gt 0 ]]
@@ -289,15 +287,11 @@ do
289287
exit
290288
;;
291289
2)
292-
[ -z "${TO_PYTHON_FROM_X}" ] && TO_PYTHON=2
293-
if [ $(uname -s) = "Darwin" ] || [ $(uname -s) = "darwin" ]
294-
then
295-
echo
296-
echo
297-
echo "Error: PyRadio does not support python 2 any more."
298-
echo "Please install python 3 and try again."
299-
exit 1
300-
fi
290+
echo
291+
echo
292+
echo "Error: PyRadio does not support python 2 any more."
293+
echo "Please install python 3 and try again."
294+
exit 1
301295
shift
302296
;;
303297
-x)

docs/build.html

-13
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ <h2 id="table-of-contents">Table of Contents <span style="padding-left: 10px;"><
5050
<ul>
5151
<li><a href="#more-info">More info</a></li>
5252
</ul></li>
53-
<li><a href="#notice-for-python-2-users">Notice for Python 2 users</a></li>
5453
<li><a href="#installation-on-the-bsds">Installation on the BSDs</a></li>
5554
<li><a href="#rasberry-pi-installation">Rasberry Pi installation</a></li>
5655
</ul></li>
@@ -104,18 +103,6 @@ <h4 id="more-info">More info</h4>
104103
<li><p><a target="_blank" href="https://packaging.python.org/en/latest/specifications/externally-managed-environments/">Externally Managed Environments @ PyPA</a></p></li>
105104
<li><p><a target="_blank" href="https://peps.python.org/pep-0668/">PEP 668 – Marking Python base environments as “externally managed”</a></p></li>
106105
</ul>
107-
<h3 id="notice-for-python-2-users">Notice for Python 2 users</h3>
108-
<p>If you are still using <strong>Python 2</strong> in a linux system, plase make sure “<strong>pip</strong>” is installed. Execute the following command to verify its existance:</p>
109-
<pre>python[2] -m pip list</pre>
110-
<p>If you get a response, you are good to go. Otherwise, use your distro package manager to install it.</p>
111-
<p>If your distro does not provide it (some do not anymore), use the following commands to get it:</p>
112-
<pre> curl https://bootstrap.pypa.io/pip/2.7/get-pip.py \
113-
--output get-pip.py
114-
sudo python[2] get-pip.py</pre>
115-
<p>or</p>
116-
<pre> wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
117-
sudo python[2] get-pip.py</pre>
118-
<p>When you are done, proceed to “<a href="linux.html">pip installation</a> (the old way)”, adapting the commands to python2.</p>
119106
<h3 id="installation-on-the-bsds">Installation on the BSDs</h3>
120107
<p>If you are on any of the BSDs, please do install <strong>bash</strong> beforehand and try to follow the <a href="linux.html">pip installation guide</a>.</p>
121108
<p>Please be aware that <strong>PyRadio</strong> is provided as a <strong>port</strong> on <a target="_blank" href="https://www.freshports.org/audio/py-pyradio/">FreeBSB</a>.</p>

docs/build.md

-28
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* [What does it all mean and why should you care](#what-does-it-all-mean-and-why-should-you-care)
88
* [When do I need to install pipx?](#when-do-i-need-to-install-pipx?)
99
* [More info](#more-info)
10-
* [Notice for Python 2 users](#notice-for-python-2-users)
1110
* [Installation on the BSDs](#installation-on-the-bsds)
1211
* [Rasberry Pi installation](#rasberry-pi-installation)
1312
* [Installation guides](#installation-guides)
@@ -85,33 +84,6 @@ If you get that message, or a similar one, it is time to install `pipx`.
8584
- [PEP 668 – Marking Python base environments as “externally managed”](https://peps.python.org/pep-0668/)
8685

8786

88-
### Notice for Python 2 users
89-
90-
If you are still using **Python 2** in a linux system, plase make sure "**pip**" is installed. Execute the following command to verify its existance:
91-
92-
```
93-
python[2] -m pip list
94-
```
95-
96-
If you get a response, you are good to go. Otherwise, use your distro package manager to install it.
97-
98-
If your distro does not provide it (some do not anymore), use the following commands to get it:
99-
100-
```
101-
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py \
102-
--output get-pip.py
103-
sudo python[2] get-pip.py
104-
```
105-
106-
or
107-
108-
```
109-
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
110-
sudo python[2] get-pip.py
111-
```
112-
113-
When you are done, proceed to "[pip installation](linux.md) (the old way)", adapting the commands to python2.
114-
11587
### Installation on the BSDs
11688

11789
If you are on any of the BSDs, please do install **bash** beforehand and try to follow the [pip installation guide](linux.md).

docs/index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h2 id="features">Features <span style="padding-left: 10px;"><sup style="font-si
158158
<p>and much more…</p>
159159
<h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
160160
<ul>
161-
<li>python 2.7/3.5+
161+
<li>python 3.7+
162162
<ul>
163163
<li>setuptools</li>
164164
<li>wheel</li>
@@ -176,6 +176,11 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
176176
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
177177
<pre style="height: 200px;">
178178

179+
2024-02-24 s-n-g
180+
* version 0.9.2.25
181+
* droping python 2 - PyRadio will only run on python 3
182+
* fixing #228
183+
179184
2024-01-12 s-n-g
180185
* version 0.9.2.24 (BUG FIX)
181186
* fixing mpv title parsing (once again)

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you face this situation, please refer to [this page](pip-error.md) to resolve
9595
and much more...
9696

9797
## Requirements
98-
* python 2.7/3.5+
98+
* python 3.7+
9999
- setuptools
100100
- wheel
101101
- requests

docs/pyradio.1

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.\" Copyright (C) 2018-2024 Spiros Georgaras <[email protected]>
33
.\" This manual is freely distributable under the terms of the GPL.
44
.\"
5-
.TH pyradio 1 "January 2024" pyradio
5+
.TH pyradio 1 "February 2024" pyradio
66

77
.SH Name
88
.PP
@@ -603,7 +603,7 @@ A playlist that does not reside within the program’s configuration directory i
603603

604604
When this happens, \fBpyradio\fR will offer you the choise to copy the playlist in its configuration directory, thus making it available for manipulation within the program.
605605

606-
If a playlist of the same name already exists in the configuration directory, the "\fIforeign\fR" playlist will be time-stamped. For example, if a "\fIforeign\fR" playlist is named "\fIstations.csv\fR", it will be named "\fI2019-01-11_13-35-47_stations.csv\fR" (provided that the action was taked on January 11, 2019 at 13:35:47).
606+
If a playlist of the same name already exists in the configuration directory, the "\fIforeign\fR" playlist will be time-stamped. For example, if a "\fIforeign\fR" playlist is named "\fIstations.csv\fR", it will be named "\fI2019-01-11_13-35-47_stations.csv\fR" (provided that the action was taked on February 11, 2019 at 13:35:47).
607607

608608

609609
.PP

docs/pyradio_rb.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Copyright (C) 2018-2024 Spiros Georgaras <[email protected]>
22
.\" This manual is freely distributable under the terms of the GPL.
33
.\"
4-
.TH pyradio_rb 1 "January 2024" pyradio
4+
.TH pyradio_rb 1 "February 2024" pyradio
55

66
.SH Name
77
.PP

docs/pyradio_rec.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH pyradio_rec 1 "January 2024" pyradio
1+
.TH pyradio_rec 1 "February 2024" pyradio
22

33
.SH Name
44
.PP

docs/pyradio_server.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Copyright (C) 2018-2024 Spiros Georgaras <[email protected]>
22
.\" This manual is freely distributable under the terms of the GPL.
33
.\"
4-
.TH pyradio_server 1 "January 2024" pyradio
4+
.TH pyradio_server 1 "February 2024" pyradio
55

66
.SH Name
77
.PP

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyradio"
3-
version = "0.9.2.24"
3+
version = "0.9.2.25"
44
authors = [
55
{ name="Ben Dowling", email="[email protected]" },
66
{ name="Spiros Georgaras", email="[email protected]" },

pyradio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
" pyradio -- Console radio player. "
33

4-
version_info = (0, 9, 2, 24)
4+
version_info = (0, 9, 2, 25)
55

66
# Set it to True if new stations have been
77
# added to the package's stations.csv

0 commit comments

Comments
 (0)