Skip to content

Commit

Permalink
bump minimum Python to 3.8 (#702)
Browse files Browse the repository at this point in the history
* bump minimum Python to 3.8

Signed-off-by: William Woodruff <[email protected]>

* ci: drop 3.7 from test matrix

Signed-off-by: William Woodruff <[email protected]>

* lint: bump python version

Signed-off-by: William Woodruff <[email protected]>

* release: bump python version

Signed-off-by: William Woodruff <[email protected]>

---------

Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw authored Dec 5, 2023
1 parent 0cf296f commit be74883
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
strategy:
matrix:
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
cache: "pip"
cache-dependency-path: pyproject.toml

Expand All @@ -31,7 +31,7 @@ jobs:
# in this check, since Python can change the `--help` rendering in
# `argparse` between major versions.
with:
python-version: "3.7"
python-version: "3.8"
cache: "pip"
cache-dependency-path: pyproject.toml

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: ">= 3.7"
python-version: ">= 3.8"
cache: "pip"
cache-dependency-path: pyproject.toml

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All versions prior to 0.0.9 are untracked.

## [Unreleased]

### Changed

* `pip-audit`'s minimum Python version is now 3.8.

## [2.6.1]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ as well as performing common development tasks.

## Requirements

`pip-audit`'s only development environment requirement *should* be Python 3.7
`pip-audit`'s only development environment requirement *should* be Python 3.8
or newer. Development and testing is actively performed on macOS and Linux,
but Windows and other supported platforms that are supported by Python
should also work.
Expand Down Expand Up @@ -79,7 +79,7 @@ including code coverage with [`coverage.py`](https://coverage.readthedocs.io/).

### Documentation

If you're running Python 3.7 or newer, you can run the documentation build locally:
You can run the documentation build locally:

```bash
make doc
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ with support from Google. This is not an official Google or Trail of Bits produc

## Installation

`pip-audit` requires Python 3.7 or newer, and can be installed directly via `pip`:
`pip-audit` requires Python 3.8 or newer, and can be installed directly via `pip`:

```bash
python -m pip install pip-audit
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -40,7 +39,7 @@ dependencies = [
"rich>=12.4",
"toml>=0.10",
]
requires-python = ">=3.7"
requires-python = ">=3.8"

[project.optional-dependencies]
test = ["coverage[toml]", "pretend", "pytest", "pytest-cov"]
Expand Down Expand Up @@ -97,5 +96,4 @@ reset = true
# Never enforce `E501` (line length violations).
ignore = ["E501"]
select = ["E", "F", "I", "W", "UP"]
target-version = "py37"
line-length = 100

0 comments on commit be74883

Please sign in to comment.