Skip to content

Commit 189b959

Browse files
authored
Drop Python 3.5 support declaration, add Python 3.10 (MagicStack#71)
1 parent fa35523 commit 189b959

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.4]
17+
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-rc.1]
1818
os: [windows-latest, ubuntu-latest, macos-latest]
1919
arch: [x64, x86]
2020
exclude:

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ An immutable mapping type for Python.
1212
The underlying datastructure is a Hash Array Mapped Trie (HAMT)
1313
used in Clojure, Scala, Haskell, and other functional languages.
1414
This implementation is used in CPython 3.7 in the ``contextvars``
15-
module (see `PEP 550 <https://www.python.org/dev/peps/pep-0550/>`_ and
15+
module (see `PEP 550 <https://www.python.org/dev/peps/pep-0550/>`_ and
1616
`PEP 567 <https://www.python.org/dev/peps/pep-0567/>`_ for more details).
1717

1818
Immutable mappings based on HAMT have O(log N) performance for both
@@ -30,7 +30,7 @@ copy-on-write approach (the benchmark code is available
3030
Installation
3131
------------
3232

33-
``immutables`` requires Python 3.5+ and is available on PyPI::
33+
``immutables`` requires Python 3.6+ and is available on PyPI::
3434

3535
$ pip install immutables
3636

immutables/__init__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import sys
44

5-
if sys.version_info >= (3, 5, 2):
6-
from typing import TYPE_CHECKING
7-
else:
8-
from typing_extensions import TYPE_CHECKING
5+
from typing import TYPE_CHECKING
96

107
if TYPE_CHECKING:
118
from ._map import Map

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[project]
2+
requires-python = ">=3.6"
3+
4+
[build-system]
5+
requires = ["setuptools>=42", "wheel"]
6+
build-backend = "setuptools.build_meta"

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@
6565
version=VERSION,
6666
description='Immutable Collections',
6767
long_description=readme,
68-
python_requires='>=3.5',
68+
python_requires='>=3.6',
6969
classifiers=[
7070
'License :: OSI Approved :: Apache Software License',
7171
'Intended Audience :: Developers',
7272
'Programming Language :: Python :: 3 :: Only',
73-
'Programming Language :: Python :: 3.5',
7473
'Programming Language :: Python :: 3.6',
7574
'Programming Language :: Python :: 3.7',
7675
'Programming Language :: Python :: 3.8',
7776
'Programming Language :: Python :: 3.9',
77+
'Programming Language :: Python :: 3.10',
7878
'Operating System :: POSIX',
7979
'Operating System :: MacOS :: MacOS X',
8080
'Operating System :: Microsoft :: Windows',

0 commit comments

Comments
 (0)