Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.7 support #256

Merged
merged 1 commit into from Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -18,7 +18,6 @@ jobs:
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- '3.10'
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -39,7 +39,7 @@ repos:
rev: v3.7.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
Expand All @@ -56,7 +56,7 @@ repos:
hooks:
- id: reorder-python-imports
args:
- --py37-plus
- --py38-plus
- --application-directories
- .:example:src
- --add-import
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,8 @@
Changelog
=========

* Drop Python 3.7 support.

1.14.0 (2023-06-13)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -29,7 +29,7 @@ Use **pip**:

python -m pip install blacken-docs

Python 3.7 to 3.12 supported.
Python 3.8 to 3.12 supported.

Black 22.1.0+ supported.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -5,7 +5,7 @@ requires = [
]

[tool.black]
target-version = ['py37']
target-version = ['py38']

[tool.pytest.ini_options]
addopts = """\
Expand Down
5 changes: 0 additions & 5 deletions requirements/compile.py
Expand Up @@ -17,11 +17,6 @@
"--generate-hashes",
"--allow-unsafe",
] + sys.argv[1:]
subprocess.run(
["python3.7", *common_args, "-o", "py37.txt"],
check=True,
capture_output=True,
)
subprocess.run(
["python3.8", *common_args, "-o", "py38.txt"],
check=True,
Expand Down
190 changes: 0 additions & 190 deletions requirements/py37.txt

This file was deleted.

3 changes: 1 addition & 2 deletions setup.cfg
Expand Up @@ -19,7 +19,6 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python :: 3
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 @@ -33,7 +32,7 @@ project_urls =
packages = find:
install_requires =
black>=22.1.0
python_requires = >=3.7
python_requires = >=3.8
include_package_data = True
package_dir =
=src
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -2,7 +2,7 @@
requires =
tox>=4.2
env_list =
py{312, 311, 310, 39, 38, 37}
py{312, 311, 310, 39, 38}

[testenv]
package = wheel
Expand Down