Skip to content

Commit 3118f7d

Browse files
authored
Removed support for Python 3.7. (#11)
1 parent 374a617 commit 3118f7d

File tree

7 files changed

+42
-83
lines changed

7 files changed

+42
-83
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
name: Run tox on ${{ matrix.python-version }}
1212
runs-on: ubuntu-latest
1313
env:
14-
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11'
14+
USING_COVERAGE: '3.12'
1515

1616
strategy:
1717
matrix:
18-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
18+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -32,50 +32,6 @@ jobs:
3232
- name: Run tox targets for ${{ matrix.python-version }}
3333
run: python -m tox
3434

35-
- name: Upload coverage data
36-
uses: actions/upload-artifact@v3
37-
with:
38-
name: coverage-data
39-
path: .coverage.*
40-
if-no-files-found: ignore
41-
42-
coverage:
43-
name: Combine & check coverage.
44-
runs-on: ubuntu-latest
45-
needs: tests
46-
47-
steps:
48-
- uses: actions/checkout@v3
49-
50-
- uses: actions/setup-python@v4
51-
with:
52-
python-version: ${{env.PYTHON_LATEST}}
53-
54-
- run: python -m pip install --upgrade coverage[toml]
55-
56-
- uses: actions/download-artifact@v3
57-
with:
58-
name: coverage-data
59-
60-
- name: Combine coverage & fail if it's <100%.
61-
run: |
62-
python -m coverage combine
63-
python -m coverage html --skip-covered --skip-empty
64-
# Report and write to summary.
65-
python -m coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
66-
67-
- name: Upload HTML report if check failed.
68-
uses: actions/upload-artifact@v3
69-
with:
70-
name: html-report
71-
path: htmlcov
72-
if: ${{ failure() }}
73-
74-
- name: Upload coverage to Codecov
75-
uses: codecov/codecov-action@v2
76-
with:
77-
fail_ci_if_error: true
78-
7935
docs:
8036
name: Build docs & run doctests
8137
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ coverage.xml
1717
*.cover
1818
*.py,cover
1919
.pytest_cache/
20+
.tox/
2021

2122
# Sphinx documentation
2223
docs/_build/

.pre-commit-config.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
---
21
ci:
32
autoupdate_schedule: monthly
43
#
54
#default_language_version:
65
# python: python3.10
76

87
repos:
9-
- repo: https://github.com/psf/black
10-
rev: 22.12.0
8+
- repo: https://github.com/psf/black
9+
rev: 24.8.0
1110
hooks:
12-
- id: black
11+
- id: black
1312

14-
- repo: https://github.com/PyCQA/isort
15-
rev: 5.11.4
13+
- repo: https://github.com/PyCQA/isort
14+
rev: 5.13.2
1615
hooks:
17-
- id: isort
16+
- id: isort
1817
additional_dependencies: [toml]
1918

20-
- repo: https://github.com/PyCQA/flake8
21-
rev: 6.0.0
19+
- repo: https://github.com/PyCQA/flake8
20+
rev: 7.1.1
2221
hooks:
23-
- id: flake8
22+
- id: flake8
2423
additional_dependencies: [flake8-cognitive-complexity]
2524

26-
- repo: https://github.com/pre-commit/pre-commit-hooks
27-
rev: v4.4.0
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v4.6.0
2827
hooks:
29-
- id: trailing-whitespace
30-
- id: end-of-file-fixer
31-
- id: debug-statements
32-
- id: check-toml
33-
- id: check-yaml
28+
- id: trailing-whitespace
29+
- id: end-of-file-fixer
30+
- id: debug-statements
31+
- id: check-toml
32+
- id: check-yaml

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ version: 2
33
sphinx:
44
configuration: docs/source/conf.py
55

6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.8"
10+
611
python:
7-
version: 3.8
812
install:
913
- method: pip
1014
path: .

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
66
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
77
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
88

9+
0.1.4 - 2024-09-03
10+
------------------
11+
12+
- Removed support for Python 3.7.
13+
- Fixed Github workflows vulnerability.
14+
15+
916
0.1.3 - 2023-01-02
1017
------------------
1118

src/pygopher/interfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Interface base class implementations."""
2+
23
import inspect
34
import sys
45
import typing as tp

tox.ini

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
[gh-actions]
22
python =
3-
3.7: py37
4-
3.8: pre-commit, py38
5-
3.9: pre-commit, py39
6-
3.10: pre-commit, py310
7-
3.11: pre-commit, py311
3+
3.8: py38
4+
3.9: py39
5+
3.10: py310
6+
3.11: py311
7+
3.12: py312
88

99
[tox]
10-
envlist = pre-commit,py37,py38,py39,py310,py311,coverage-report
10+
envlist = py38,py39,py310,py311,py312,coverage-report
1111
isolated_build = True
1212

13-
[testenv:pre-commit]
14-
skip_install = true
15-
deps = pre-commit
16-
commands = pre-commit run --all-files --show-diff-on-failure
17-
1813
[testenv]
1914
extras = tests
2015
setenv = PYTHONHASHSEED = 0
21-
commands = python -m coverage run -m pytest {posargs}
16+
commands = python -m pytest {posargs}
2217

2318
[testenv:docs]
2419
# Keep basepython in sync with ci.yml/docs and .readthedocs.yml.
@@ -30,11 +25,7 @@ commands =
3025
sphinx-build -n -T -W -b doctest -d {envtmpdir}/doctrees docs/source docs/_build/html
3126

3227
[testenv:coverage-report]
33-
basepython = python3.10
34-
deps = coverage[toml]
35-
skip_install = true
36-
parallel_show_output = true
37-
depends = py37,py38,py39,py310,py311
28+
extras = tests
29+
setenv = PYTHONHASHSEED = 0
3830
commands =
39-
python -m coverage combine
40-
python -m coverage report
31+
python -m coverage run -m pytest {posargs}

0 commit comments

Comments
 (0)