Skip to content

Commit

Permalink
Remove support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kreathon committed Aug 19, 2024
1 parent 0b855e1 commit f89304c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- '3.11'
- '3.10'
- '3.9'
- '3.8'
name: Python ${{ matrix.python }}
steps:
# Python
Expand Down Expand Up @@ -46,7 +45,7 @@ jobs:
- name: Run tests
run: pytest --ignore=tests/test_pattern_matching.py --ignore=tests/type_checking/test_result.yml
- name: Run tests (type checking)
if: matrix.python != '3.8' && matrix.python != '3.9'
if: matrix.python != '3.9'
# These started breaking for <= 3.9, due to the type checker using a
# '|' for unions rather than 'Union[...]', so it's not possible to run
# the tests without maintaining two duplicate files (one for <= 3.9 and
Expand All @@ -59,10 +58,10 @@ jobs:
# Linters
- name: Run flake8 (Python >= 3.10)
run: make lint-flake
if: matrix.python != '3.9' && matrix.python != '3.8'
if: matrix.python != '3.9'
- name: Run flake8 (Python < 3.10)
run: make lint-flake-pre310
if: matrix.python == '3.9' || matrix.python == '3.8'
if: matrix.python == '3.9'
- name: Run mypy
run: make lint-mypy

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Possible log types:

- `[changed]` Improve type narrowing for `is_ok` and `is_err` type guards by
replacing `typing.TypeGuard` with `typing.TypeIs` (#193)
- `[removed]` Drop support for Python 3.8 (#180)

## [0.17.0] - 2024-06-02

Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Expand All @@ -29,7 +28,7 @@ install_requires =
package_dir =
=src
packages = find:
python_requires = >=3.8
python_requires = >=3.9
zip_safe = True

[options.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py312,py311,py310,py39,py38
envlist = py312,py311,py310,py39

[testenv]
deps = -rrequirements-dev.txt
Expand Down

0 comments on commit f89304c

Please sign in to comment.