Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dblenkus committed Apr 26, 2023
1 parent 7f8e535 commit 7cde8e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
strategy:
fail-fast: false
matrix:
tox-env: [py37, py38, py39, py310, py311, linters, packaging, migrations]
tox-env: [py38, py39, py310, py311, linters, packaging, migrations]
include:
- tox-env: py37
python-version: 3.7
- tox-env: py38
python-version: 3.8
- tox-env: py39
Expand Down Expand Up @@ -64,7 +62,7 @@ jobs:
# Get randomly assigned published port.
ROLCA_POSTGRESQL_PORT: ${{ job.services.postgres.ports[5432] }}
- name: Upload coverage to Codecov
if: matrix.tox-env == 'py37' || matrix.tox-env == 'py38' || matrix.tox-env == 'py39' || matrix.tox-env == 'py310' || matrix.tox-env == 'py311'
if: matrix.tox-env == 'py38' || matrix.tox-env == 'py39' || matrix.tox-env == 'py310' || matrix.tox-env == 'py311'
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ requires = [
build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py37","py38","py39","py310","py311"]
target-version = ["py38","py39","py310","py311"]
skip-string-normalization = true
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
],
},
package_dir={'': 'src'},
python_requires='>=3.7, <3.12',
python_requires='>=3.8, <3.12',
install_requires=[
'boto3~=1.26.0',
'channels~=4.0.0',
Expand Down Expand Up @@ -75,7 +75,6 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311},
py{38,39,310,311},
docs,
linters,
packaging,
Expand All @@ -20,7 +20,6 @@ basepython = python3
[testenv]
basepython =
docs,linters,packaging,migrations: python3.11
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
Expand All @@ -30,7 +29,7 @@ extras =
!docs: test
passenv =
# Pass environment variables controlling project's tests.
py{37,38,39,310,311},migrations: TOXENV,ROLCA_*
py{38,39,310,311},migrations: TOXENV,ROLCA_*
whitelist_externals =
migrations: bash
ignore_errors =
Expand All @@ -50,7 +49,7 @@ commands =
# Run tests.
# NOTE: PyTest is run as python module to use tha fact that Python adds
# the root directory to the system path.
py{37,38,39,310,311}: python -m pytest --cov=src/rolca {env:TEST_SUITE:src/rolca}
py{38,39,310,311}: python -m pytest --cov=src/rolca {env:TEST_SUITE:src/rolca}

# Docs commands:
# Build documentation.
Expand Down

0 comments on commit 7cde8e5

Please sign in to comment.