Skip to content

Commit 9b10f16

Browse files
committed
Remove support for old python versions
Debian just dropped 3.10 in their latest release.
1 parent 6dce5bf commit 9b10f16

File tree

4 files changed

+12
-32
lines changed

4 files changed

+12
-32
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
runs-on: ubuntu-22.04
1818
strategy:
1919
matrix:
20-
# only use one version for the lint step
21-
python-version: [3.9]
20+
# only use one version for the lint step, also use 3.10 as
21+
# snappy is not installable with 3.11 and we don't want to
22+
# install all dependencies just for linting.
23+
python-version: [3.10]
2224

2325
steps:
2426

@@ -59,7 +61,7 @@ jobs:
5961
strategy:
6062
max-parallel: 5
6163
matrix:
62-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
64+
python-version: ["3.11"]
6365

6466
steps:
6567
- id: checkout-code

README.rst

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ PGHoard can backup and restore PostgreSQL versions 9.6 and above, but is
8484
only tested and actively developed with version 10 and above.
8585

8686
The daemon is implemented in Python and is tested and developed with version
87-
3.7 and above. The following Python modules are required:
87+
3.11 and above. The following Python modules are required:
8888

8989
* psycopg2_ to look up transaction log metadata
9090
* requests_ for the internal client-server architecture
@@ -127,41 +127,23 @@ should work on other platforms that provide the required modules.
127127
Vagrant
128128
=======
129129

130-
The Vagrantfile can be used to setup a vagrant development environment. The vagrant environment has
131-
python 3.7, 3.8, 3.9 and 3.10 virtual environments and installations of postgresql 10, 11 and 12, 13 and 14.
130+
The Vagrantfile can be used to setup a vagrant development environment. The vagrant environment has
131+
python 3.11 virtual environments and installations of postgresql 10, 11 and 12, 13 and 14.
132132

133133
By default vagrant up will start a Virtualbox environment. The Vagrantfile will also work for libvirt, just prefix
134134
``VAGRANT_DEFAULT_PROVIDER=libvirt`` to the ``vagrant up`` command.
135135

136-
Any combination of Python (3.7, 3.8, 3.9 and 3.10) and Postgresql (10, 11, 12, 13 and 14)
136+
Any combination of Python (3.11) and Postgresql (10, 11, 12, 13 and 14)
137137

138138
Bring up vagrant instance and connect via ssh::
139139

140140
vagrant up
141141
vagrant ssh
142142
vagrant@ubuntu2004:~$ cd /vagrant
143143

144-
Test with Python 3.7 and Postgresql 10::
144+
Test with Python 3.11 and Postgresql 13::
145145

146-
vagrant@ubuntu2004:~$ source ~/venv3.7/bin/activate
147-
vagrant@ubuntu2004:~$ PG_VERSION=10 make unittest
148-
vagrant@ubuntu2004:~$ deactivate
149-
150-
Test with Python 3.8 and Postgresql 11::
151-
152-
vagrant@ubuntu2004:~$ source ~/venv3.8/bin/activate
153-
vagrant@ubuntu2004:~$ PG_VERSION=11 make unittest
154-
vagrant@ubuntu2004:~$ deactivate
155-
156-
Test with Python 3.9 and Postgresql 12::
157-
158-
vagrant@ubuntu2004:~$ source ~/venv3.9/bin/activate
159-
vagrant@ubuntu2004:~$ PG_VERSION=12 make unittest
160-
vagrant@ubuntu2004:~$ deactivate
161-
162-
Test with Python 3.10 and Postgresql 13::
163-
164-
vagrant@ubuntu2004:~$ source ~/venv3.10/bin/activate
146+
vagrant@ubuntu2004:~$ source ~/venv3.11/bin/activate
165147
vagrant@ubuntu2004:~$ PG_VERSION=13 make unittest
166148
vagrant@ubuntu2004:~$ deactivate
167149

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Vagrant.configure("2") do |config|
6868
config.vm.provision "shell", inline: $script, privileged: true
6969

7070
$script = <<-SCRIPT
71-
versions=(3.7 3.8 3.9 3.10)
71+
versions=(3.11)
7272
for version in "${versions[@]}"; do
7373
python${version} -m venv venv${version}
7474
source ~/venv${version}/bin/activate

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
"Intended Audience :: Information Technology",
5454
"Intended Audience :: System Administrators",
5555
"License :: OSI Approved :: Apache Software License",
56-
"Programming Language :: Python :: 3.7",
57-
"Programming Language :: Python :: 3.8",
58-
"Programming Language :: Python :: 3.9",
59-
"Programming Language :: Python :: 3.10",
6056
"Programming Language :: Python :: 3.11",
6157
"Topic :: Database :: Database Engines/Servers",
6258
"Topic :: Software Development :: Libraries",

0 commit comments

Comments
 (0)