Skip to content

Commit

Permalink
Support python 3.12, drop 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojunfeng committed May 10, 2024
1 parent fb74455 commit 69f0566
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

services:
postgres:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.12"]

steps:
- name: Checkout code
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: &exclude_txtfiles >-
Expand All @@ -27,25 +27,25 @@ repos:
- id: check-toml

- repo: https://github.com/asottile/pyupgrade
rev: v3.8.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/ikamensh/flynt/
rev: "0.78"
rev: "1.0.1"
hooks:
- id: flynt
args: ["--line-length=120", "--fail-on-change"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
additional_dependencies: ["toml"]

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.4.2
hooks:
- id: black

Expand All @@ -61,7 +61,7 @@ repos:
args: ["--ignore=D104,D202,D203,D213"]

- repo: https://github.com/PyCQA/pylint
rev: v3.0.0a6
rev: v3.1.0
hooks:
- id: pylint
language: system
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ formats: []

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
version: 3
install:
- method: pip
path: .
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"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",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Science/Research"
]
keywords = ["aiida", "plugin", "wannier90"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = ["aiida-core>=2.0,<3"]

[project.urls]
Expand Down Expand Up @@ -171,12 +171,12 @@ known_aiida_quantumespresso = ['aiida_quantumespresso']
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38
envlist = py39
[testenv]
usedevelop=True
[testenv:py{38,39,310}]
[testenv:py{39,310,311,312}]
description = Run the test suite against a python version
extras = testing
commands = pytest {posargs}
Expand Down

0 comments on commit 69f0566

Please sign in to comment.