Skip to content

Commit

Permalink
Drop Python 3.7 support (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
klausweiss authored Feb 1, 2024
1 parent ce8b6f4 commit a8fe47d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
# for the list of all versions look here: https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.0

Drop support for Python 3.7.

## 0.3.10

Add support for mypy==1.8.x.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ See the [examples](#examples) section below.

## Supported versions

The plugin supports python 3.7 up to 3.12 and mypy >= 0.920 and <= 1.8.x.
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.8.x.

## Installation

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[tool.black]
line-length = 120
target-version = ['py37']
target-version = ['py38']
include = '\.pyi?$'

[tool.isort]
Expand Down Expand Up @@ -52,7 +52,7 @@ disable = """
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{37,38,39,310,311,312}-mypy{,0920}
envlist = py{38,39,310,311,312}-mypy{,0920}
isolated_build = true
[testenv]
Expand Down Expand Up @@ -86,7 +86,6 @@ deps =
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = typing-protocol-intersection
version = 0.3.10
version = 0.4.0
description = Protocol intersection for mypy
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -9,7 +9,6 @@ project_urls =
Bug Tracker = https://github.com/klausweiss/typing-protocol-intersection/issues
classifiers =
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 All @@ -23,7 +22,7 @@ classifiers =
package_dir =
= .
packages = find:
python_requires = >=3.7
python_requires = >=3.8

[options.package_data]
* = py.typed, *.pyi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def main() -> None:


# expected stdout
# tests/testcases/protocol_extending_another_builder_unhappy_path.py:44:5: error: "ProtocolIntersection[Y]" has no attribute "base" [attr-defined]
# tests/testcases/protocol_extending_another_builder_unhappy_path.py:50:13: error: Argument 1 to "get_x_y" has incompatible type "Builder[typing_protocol_intersection.types.ProtocolIntersection[X]]"; expected "Builder[typing_protocol_intersection.types.ProtocolIntersection[Y]]" [arg-type]
# tests/testcases/protocol_extending_another_builder_unhappy_path.py:43:5: error: "ProtocolIntersection[Y]" has no attribute "base" [attr-defined]
# tests/testcases/protocol_extending_another_builder_unhappy_path.py:49:13: error: Argument 1 to "get_x_y" has incompatible type "Builder[typing_protocol_intersection.types.ProtocolIntersection[X]]"; expected "Builder[typing_protocol_intersection.types.ProtocolIntersection[Y]]" [arg-type]
# Found 2 errors in 1 file (checked 1 source file)

0 comments on commit a8fe47d

Please sign in to comment.