Skip to content

Commit

Permalink
Drop Python 3.5 support declaration, add Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Aug 6, 2021
1 parent fa35523 commit 0316961
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.4]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-rc.1]
os: [windows-latest, ubuntu-latest, macos-latest]
arch: [x64, x86]
exclude:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An immutable mapping type for Python.
The underlying datastructure is a Hash Array Mapped Trie (HAMT)
used in Clojure, Scala, Haskell, and other functional languages.
This implementation is used in CPython 3.7 in the ``contextvars``
module (see `PEP 550 <https://www.python.org/dev/peps/pep-0550/>`_ and
module (see `PEP 550 <https://www.python.org/dev/peps/pep-0550/>`_ and
`PEP 567 <https://www.python.org/dev/peps/pep-0567/>`_ for more details).

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

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

$ pip install immutables

Expand Down
5 changes: 1 addition & 4 deletions immutables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import sys

if sys.version_info >= (3, 5, 2):
from typing import TYPE_CHECKING
else:
from typing_extensions import TYPE_CHECKING
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._map import Map
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[project]
requires-python = ">=3.6"

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
version=VERSION,
description='Immutable Collections',
long_description=readme,
python_requires='>=3.5',
python_requires='>=3.6',
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
Expand Down

0 comments on commit 0316961

Please sign in to comment.