Skip to content

Commit

Permalink
Drop Python 3.7 (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysle authored Nov 15, 2023
1 parent b8efde1 commit aa5e940
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_tests_package_lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/exhaustive_package_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
include:
- os: windows-latest
python-version: "3.11"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## dev

- Drop support for Python 3.7
- Make usage message in `pipx run` show `package_or_url`, so extra will be printed out as well
- Add `--force-reinstall` to pip arguments when `--force` was passed
- Use the py launcher, if available, to select Python version with the `--python` option
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import nox # type: ignore

PYTHON_ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
PYTHON_ALL_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
PYTHON_DEFAULT_VERSION = "3.11"
DOC_DEPENDENCIES = [".", "jinja2", "mkdocs", "mkdocs-material"]
MAN_DEPENDENCIES = [".", "argparse-manpage[setuptools]"]
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ name = "pipx"
description = "Install and Run Python Applications in Isolated Environments"
readme = "README.md"
license = "MIT"
requires-python = ">=3.7"
requires-python = ">=3.8"
keywords = ["pip", "install", "cli", "workflow", "Virtual Environment"]
authors = [{ name = "Chad Smith", email = "[email protected]" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -24,7 +23,6 @@ classifiers = [
dependencies = [
"argcomplete>=1.9.4",
"colorama>=0.4.4; sys_platform == 'win32'",
"importlib-metadata>=3.3.0; python_version < '3.8'",
"packaging>=20.0",
"platformdirs>=2.1.0",
"userpath>=1.6.0,!=1.9.0",
Expand Down
4 changes: 2 additions & 2 deletions src/pipx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import sys

if sys.version_info < (3, 6, 0):
if sys.version_info < (3, 8, 0):
sys.exit(
"Python 3.6 or later is required. "
"Python 3.8 or later is required. "
"See https://github.com/pypa/pipx "
"for installation instructions."
)
4 changes: 2 additions & 2 deletions tests/test_package_specifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_fix_package_name(package_spec_in, package_name, package_spec_out):
True,
),
(
'my-project[cli] @ git+ssh://[email protected]/my-company/myproject.git ; python_version<"3.7"',
'my-project[cli] @ git+ssh://[email protected]/my-company/myproject.git ; python_version<"3.8"',
"my-project[cli]@ git+ssh://[email protected]/my-company/myproject.git",
True,
),
Expand Down Expand Up @@ -165,7 +165,7 @@ def test_parse_specifier_for_metadata(
True,
),
(
'my-project[cli] @ git+ssh://[email protected]/my-company/myproject.git ; python_version<"3.7"',
'my-project[cli] @ git+ssh://[email protected]/my-company/myproject.git ; python_version<"3.8"',
"my-project[cli]@ git+ssh://[email protected]/my-company/myproject.git",
True,
),
Expand Down

0 comments on commit aa5e940

Please sign in to comment.