Skip to content

Commit 3f07c2f

Browse files
committed
refactor: drop support for Python 3.6
1 parent cd548a3 commit 3f07c2f

File tree

7 files changed

+10
-17
lines changed

7 files changed

+10
-17
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ jobs:
1111
strategy:
1212
matrix:
1313
python:
14-
- "3.6"
1514
- "3.7"
1615
- "3.8"
1716
- "3.9"
1817
- "3.10"
1918
- "3.11"
20-
- "pypy-3.6"
2119
- "pypy-3.7"
2220
- "pypy-3.8"
2321
- "pypy-3.9"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ adheres to [Semantic Versioning](https://semver.org/).
99

1010
[unreleased]: https://github.com/rogdham/python-xz/compare/v0.4.0...HEAD
1111

12+
### :boom: Breaking changes
13+
14+
- End of Python 3.6 support
15+
1216
### :house: Internal
1317

1418
- Necessary code changes following dev dependency update: black, pylint, pytest

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ As a general rule, all Python versions that are both [released and still officia
179179
supported][python-versions] are supported by `python-xz` and tested against (both
180180
CPython and PyPy implementations).
181181

182-
Moreover, Python 3.6 is currently supported as well, but may be dropped in future
183-
releases.
184-
185182
If you have other use cases or find issues with some Python versions, feel free to
186183
[open a ticket](https://github.com/Rogdham/python-xz/issues/new)!
187184

188-
[python-versions]: https://devguide.python.org/#status-of-python-branches
185+
[python-versions]: https://devguide.python.org/versions/#versions

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ addopts =
44
--strict-markers
55
filterwarnings =
66
error
7-
# issue in standard lib for Python 3.7.12[pypy-7.3.6-final]
7+
# issue in standard lib for PyPy < 3.9
88
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:_lzma
99
markers =
1010
generate_integration_files

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ classifiers =
1919
Programming Language :: Python
2020
Programming Language :: Python :: 3
2121
Programming Language :: Python :: 3 :: Only
22-
Programming Language :: Python :: 3.6
2322
Programming Language :: Python :: 3.7
2423
Programming Language :: Python :: 3.8
2524
Programming Language :: Python :: 3.9
@@ -33,7 +32,7 @@ classifiers =
3332
include_package_data = True
3433
package_dir = =src
3534
packages = xz
36-
python_requires = >=3.6
35+
python_requires = >=3.7
3736
setup_requires =
3837
setuptools_scm
3938
wheel

src/xz/typing.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@
88
else: # pragma: no cover
99
_LZMAFilenameType = Union[str, bytes, PathLike, BinaryIO]
1010

11-
# ducktype Literal (NB we cannot use __class_getitem__ on Python 3.6)
12-
# we could require typing-extensions package but that's hardly an improvement
13-
14-
class LiteralKlass:
15-
def __getitem__(self, items: Any) -> str:
11+
class Literal:
12+
def __class_getitem__(cls, items: Any) -> str:
1613
return f"Literal{list(items)}"
1714

18-
Literal = LiteralKlass()
19-
2015

2116
if sys.version_info >= (3, 8): # pragma: no cover
2217
from typing import Protocol

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py, py36, py37, py38, py39, py310, py311, pypy3
3+
py, py37, py38, py39, py310, py311, pypy3
44
generate-integration-files, type, lint, format
55

66
[testenv]

0 commit comments

Comments
 (0)