Skip to content

Commit

Permalink
[CLIENT-2405] Remove Python 3.7 support (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 authored Sep 22, 2023
1 parent 481cccf commit ac80c4d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ jobs:
matrix:
# Python versions to build wheels on
python: [
"cp37",
"cp38",
"cp39",
"cp310",
Expand Down Expand Up @@ -208,7 +207,6 @@ jobs:
matrix:
# Python versions to build wheels on
python: [
["cp37", "3.7"],
["cp38", "3.8"],
["cp39", "3.9"],
["cp310", "3.10"],
Expand Down Expand Up @@ -405,7 +403,6 @@ jobs:
fail-fast: false
matrix:
python-version: [
["cp37", "3.7"],
["cp38", "3.8"],
["cp39", "3.9"],
["cp310", "3.10"],
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: PR pre-merge tests

env:
LOWEST_SUPPORTED_PY_VERSION: '3.8'

# Trigger test workflow whenever:
# 1. A pull request is updated (e.g with new commits)
# 2. Commits are pushed directly to the stage or master branch
Expand Down Expand Up @@ -36,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
py-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
py-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false

steps:
Expand Down Expand Up @@ -162,12 +165,12 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: ${{ env.LOWEST_SUPPORTED_PY_VERSION }}
architecture: 'x64'

- uses: actions/download-artifact@v3
with:
name: wheel-3.7
name: wheel-${{ env.LOWEST_SUPPORTED_PY_VERSION }}

- name: Install client
run: pip install *.whl
Expand All @@ -190,12 +193,12 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: ${{ env.LOWEST_SUPPORTED_PY_VERSION }}
architecture: 'x64'

- uses: actions/download-artifact@v3
with:
name: wheel-3.7
name: wheel-${{ env.LOWEST_SUPPORTED_PY_VERSION }}

- name: Install client
run: pip install *.whl
Expand All @@ -220,7 +223,6 @@ jobs:
strategy:
matrix:
py-version: [
"3.7",
"3.8",
"3.9",
"3.10",
Expand Down Expand Up @@ -274,12 +276,12 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: ${{ env.LOWEST_SUPPORTED_PY_VERSION }}
architecture: 'x64'

- uses: actions/download-artifact@v3
with:
name: wheel-3.7
name: wheel-${{ env.LOWEST_SUPPORTED_PY_VERSION }}

- name: Install client
run: pip install *.whl
Expand Down Expand Up @@ -310,12 +312,12 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: ${{ env.LOWEST_SUPPORTED_PY_VERSION }}
architecture: 'x64'

- uses: actions/download-artifact@v3
with:
name: wheel-3.7
name: wheel-${{ env.LOWEST_SUPPORTED_PY_VERSION }}

- name: Install client
run: pip install *.whl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: '3.8'
architecture: 'x64'

- name: Install client
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Aerospike Python Client
Compatibility
-------------

The Python client for Aerospike works with Python 3.7 - 3.11 and supports the following OS'es:
The Python client for Aerospike works with Python 3.8 - 3.11 and supports the following OS'es:

* macOS 11 and 12
* CentOS 7 Linux
Expand Down
3 changes: 1 addition & 2 deletions aerospike-stubs/aerospike.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Any, Callable, Union
from typing_extensions import final, Literal
from typing import Any, Callable, Union, final, Literal

from aerospike_helpers.batch.records import BatchRecords
AS_BOOL: Literal[1]
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
2 changes: 1 addition & 1 deletion test/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
skipsdist = True
envlist = py37, py38, py39, py310, py311
envlist = py38, py39, py310, py311
[testenv]
commands =
pip install --find-links=local/wheels --no-index aerospike
Expand Down

0 comments on commit ac80c4d

Please sign in to comment.