Skip to content

Commit

Permalink
Remove support for old python versions
Browse files Browse the repository at this point in the history
Debian just dropped 3.10 in their latest release.
  • Loading branch information
packi committed Jul 6, 2023
1 parent 6dce5bf commit 9b10f16
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -17,8 +17,10 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
# only use one version for the lint step
python-version: [3.9]
# only use one version for the lint step, also use 3.10 as
# snappy is not installable with 3.11 and we don't want to
# install all dependencies just for linting.
python-version: [3.10]

steps:

Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.11"]

steps:
- id: checkout-code
Expand Down
30 changes: 6 additions & 24 deletions README.rst
Expand Up @@ -84,7 +84,7 @@ PGHoard can backup and restore PostgreSQL versions 9.6 and above, but is
only tested and actively developed with version 10 and above.

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

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

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

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

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

Bring up vagrant instance and connect via ssh::

vagrant up
vagrant ssh
vagrant@ubuntu2004:~$ cd /vagrant

Test with Python 3.7 and Postgresql 10::
Test with Python 3.11 and Postgresql 13::

vagrant@ubuntu2004:~$ source ~/venv3.7/bin/activate
vagrant@ubuntu2004:~$ PG_VERSION=10 make unittest
vagrant@ubuntu2004:~$ deactivate

Test with Python 3.8 and Postgresql 11::

vagrant@ubuntu2004:~$ source ~/venv3.8/bin/activate
vagrant@ubuntu2004:~$ PG_VERSION=11 make unittest
vagrant@ubuntu2004:~$ deactivate

Test with Python 3.9 and Postgresql 12::

vagrant@ubuntu2004:~$ source ~/venv3.9/bin/activate
vagrant@ubuntu2004:~$ PG_VERSION=12 make unittest
vagrant@ubuntu2004:~$ deactivate

Test with Python 3.10 and Postgresql 13::

vagrant@ubuntu2004:~$ source ~/venv3.10/bin/activate
vagrant@ubuntu2004:~$ source ~/venv3.11/bin/activate
vagrant@ubuntu2004:~$ PG_VERSION=13 make unittest
vagrant@ubuntu2004:~$ deactivate

Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Expand Up @@ -68,7 +68,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: $script, privileged: true

$script = <<-SCRIPT
versions=(3.7 3.8 3.9 3.10)
versions=(3.11)
for version in "${versions[@]}"; do
python${version} -m venv venv${version}
source ~/venv${version}/bin/activate
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Expand Up @@ -53,10 +53,6 @@
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries",
Expand Down

0 comments on commit 9b10f16

Please sign in to comment.