Skip to content

Drop support for insecure end-of-life Python <=3.7 #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/nosetests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11']
include:
- os: ubuntu-20.04
python-version: '3.6'
python-version: ['3.8', '3.9', '3.10', '3.11']
name: Tests with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Requirements

* GNU/Linux, BSD, Mac OS X
* OpenSSH (ssh/scp) or rsh
* Python 2.x (x >= 7) or Python 3.x (x >= 6)
* Python >=3.8
* PyYAML

License
Expand Down
18 changes: 0 additions & 18 deletions doc/sphinx/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ For instance, ClusterShell is known to work on the following operating systems:

* GNU/Linux

* Red Hat Enterprise Linux 7 (Python 2.7)

* Red Hat Enterprise Linux 8 (Python 3.6)

* Red Hat Enterprise Linux 9 (Python 3.9)

* Fedora 30 and above (Python 2.7 to 3.10+)

* Debian 10 "buster" (Python 3.7)

* Debian 11 "bullseye" (Python 3.9)

* Ubuntu 20.04 (Python 3.8)
Expand Down Expand Up @@ -68,22 +62,10 @@ ClusterShell packages as found in some common Linux distributions:
| Operating | System Python version used | Alternate Python support |
| System | by the clustershell tools | packaged (version-suffixed tools) |
+==================+============================+===================================+
| RHEL 7 | Python 2.7 | Python 3.6 |
+------------------+----------------------------+-----------------------------------+
| RHEL 8 | **Python 3.6** | |
+------------------+----------------------------+-----------------------------------+
| RHEL 9 | **Python 3.9** | |
+------------------+----------------------------+-----------------------------------+
| Fedora 36 | **Python 3.10** | |
+------------------+----------------------------+-----------------------------------+
| openSUSE Leap 15 | Python 2.7 | Python 3.6 |
+------------------+----------------------------+-----------------------------------+
| SUSE SLES 12 | Python 2.7 | Python 3.4 |
+------------------+----------------------------+-----------------------------------+
| SUSE SLES 15 | Python 2.7 | Python 3.6 |
+------------------+----------------------------+-----------------------------------+
| Ubuntu 18.04 LTS | **Python 3.6** | |
+------------------+----------------------------+-----------------------------------+
| Ubuntu 20.04 LTS | **Python 3.8** | |
+------------------+----------------------------+-----------------------------------+

Expand Down
14 changes: 4 additions & 10 deletions lib/ClusterShell/CLI/Display.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,11 @@ def __init__(self, options, config=None, color=None):
self._color = color
# GH#528 enable line buffering
self.out = sys.stdout
try :
if not self.out.line_buffering:
self.out.reconfigure(line_buffering=True)
except AttributeError: # < py3.7
pass
if not self.out.line_buffering:
self.out.reconfigure(line_buffering=True)
self.err = sys.stderr
try :
if not self.err.line_buffering:
self.err.reconfigure(line_buffering=True)
except AttributeError: # < py3.7
pass
if not self.err.line_buffering:
self.err.reconfigure(line_buffering=True)

if self._color:
self.color_stdout_fmt = self.COLOR_STDOUT_FMT
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@
"Operating System :: POSIX :: BSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Clustering",
"Topic :: System :: Distributed Computing"
],
python_requires='>=3.8',
install_requires=REQUIRES,
)