Skip to content

Commit

Permalink
Update config to drop py3.7 and add 3.12 (#580)
Browse files Browse the repository at this point in the history
* Update config to drop py3.7 and add 3.12

Update configs to add 3.12.0rc1 to build matrix.

Also update requires-python data.

* Remove ruff from GHA

This is already run in pre-commit there is no benefit to running it
twice.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update pyproject-fmt to use tox

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
sirosen and pre-commit-ci[bot] authored Aug 30, 2023
1 parent 6f41b29 commit f94af2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ on:
schedule:
- cron: '0 4 * * 1'
jobs:
ruff: # https://beta.ruff.rs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --format=github .

# this job ensures that tests can run from the packaged version, which means
# that nose2 is correctly packaging and distributing its tests
test-sdist:
Expand Down Expand Up @@ -43,7 +36,7 @@ jobs:
# any additional builds for windows and macos
# handled via `include` to avoid an over-large test matrix
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
include:
- os: windows-latest
python-version: "3.x"
Expand All @@ -56,6 +49,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: install tox
run: python -m pip install -U tox
- name: test
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ repos:
hooks:
- id: validate-pyproject
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.11.2
rev: 1.1.0
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.9"]
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license = {text = "BSD-2-Clause"}
authors = [
{ name = "Stephen Rosen", email = "[email protected]" },
]
requires-python = ">=3.6"
requires-python = ">=3.8"
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand All @@ -26,12 +26,11 @@ classifiers=[
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
Expand Down Expand Up @@ -116,7 +115,7 @@ ignore = [
"RUF005",
"RUF100"
]
target-version = "py37"
target-version = "py38"

[tool.ruff.isort]
known-third-party = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py{37,38,39,310,311}{,-nocov},pypy,docs,lint
envlist=py{38,39,310,311,312}{,-nocov},pypy,docs,lint

[testenv]
passenv = CI
Expand Down

0 comments on commit f94af2e

Please sign in to comment.