From a353d10ecd785c6bd67ccd08b642437e7204be57 Mon Sep 17 00:00:00 2001 From: Freddy <1391977+f-ewald@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:35:07 -0800 Subject: [PATCH] Bump minimum Python version to Python 3.8 (#264) This change bumps the minimum Python version to 3.8. This change is done as typing hints have been introduced and lower Python versions are deprecated. The version of shiv is changed to 1.1.0 to indicate this breaking change. --- README.md | 4 ++-- docs/cli-reference.rst | 2 +- setup.cfg | 3 +-- src/shiv/__version__.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fa331c7..b25a138 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ shiv's primary goal is making distributing Python applications fast & easy. 📗 Full documentation can be found [here](http://shiv.readthedocs.io/en/latest/). -### sys requirements +### System Requirements -- python3.8+ +- Python >= 3.8 - linux/osx/windows ### quickstart diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst index c80236a..ef9abce 100644 --- a/docs/cli-reference.rst +++ b/docs/cli-reference.rst @@ -30,7 +30,7 @@ Choosing a Python Interpreter Path A good overall interpreter path as passed into :option:`--python` is ``/usr/bin/env python3``. If you want to make sure your code runs on the Python version you tested it on, -include the minor version (e.g. ``… python3.6``) – use what fits your circumstances best. +include the minor version (e.g. ``… python3.8``) – use what fits your circumstances best. On Windows, the Python launcher ``py`` knows how to handle shebangs using ``env``, so it's overall the best choice if you target multiple platforms with a pure Python zipapp. diff --git a/setup.cfg b/setup.cfg index 3101036..2542d75 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,8 +50,7 @@ install_requires = click>=6.7,!=7.0 pip>=9.0.3 setuptools - importlib_resources; python_version < "3.7" -python_requires = >=3.6 +python_requires = >=3.8 include_package_data = True [options.extras_require] diff --git a/src/shiv/__version__.py b/src/shiv/__version__.py index e13bd59..6849410 100644 --- a/src/shiv/__version__.py +++ b/src/shiv/__version__.py @@ -1 +1 @@ -__version__ = "1.0.8" +__version__ = "1.1.0"