Skip to content

Commit

Permalink
Remove Python 3.6 support (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Sep 8, 2021
1 parent 27b61a5 commit 1d12e71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 1 addition & 7 deletions docs/src/advanced_usage.rst
Expand Up @@ -189,17 +189,11 @@ Synchronous credentials clients are recommended.

.. note::

:ref:`client` context managers are async safe on Python 3.7+, meaning that
:ref:`client` context managers are async safe, meaning that
they can be used in many tasks without affecting the state of other tasks.
*However*, setting values outside of all contexts modifies the persistent
value directly, and as such may affect other tasks.

.. warning::

:ref:`client` context managers are **not** async safe on Python 3.6
due to missing async implementation in the PyPI backport of
the ``contextvars`` package from the standard library of Python 3.7.

Localisation
------------
Many API calls that retrieve track information accept a ``market`` or
Expand Down
1 change: 1 addition & 0 deletions docs/src/release_notes.rst
Expand Up @@ -7,6 +7,7 @@ Unreleased
----------
Changed
*******
- Removed Python 3.6 support and its conditional dependencies (:issue:`252`)
- Dependency to HTTPX upgraded to include versions
from ``0.15`` to ``0.19.*`` (:issue:`250`, :issue:`261`)
- Add fields to :class:`Request` and change their meaning to be in line with
Expand Down
5 changes: 1 addition & 4 deletions setup.py
@@ -1,6 +1,6 @@
import sys

python_requires = (3, 6)
python_requires = (3, 7)
python_requires_str = '.'.join([str(i) for i in python_requires])

error = """
Expand Down Expand Up @@ -88,8 +88,6 @@
python_requires='>=' + python_requires_str,
install_requires=[
'httpx>=0.15,<0.20',
'dataclasses;python_version<"3.7"',
'contextvars;python_version<"3.7"',
],
extras_require=extras_require,

Expand All @@ -98,7 +96,6 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand Down

0 comments on commit 1d12e71

Please sign in to comment.