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

build: support Python 3.10 #20

Merged
merged 6 commits into from
Oct 20, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
".readthedocs.yml",
".vscode/*",
".vscode/.gitignore",
".zenodo.json",
"codecov.yml",
"docs/_templates/*",
"docs/adr/*/*",
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: CI-style

on:
push:
branches: [main]
branches:
- main
- epic/*
pull_request:
branches: [main]
branches:
- main
- epic/*

jobs:
style:
Expand All @@ -15,7 +19,7 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
27 changes: 19 additions & 8 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ name: CI-tests

on:
push:
branches: [main]
branches:
- main
- epic/*
pull_request:
branches: [main]
branches:
- main
- epic/*

jobs:
codecov:
Expand All @@ -15,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: [3.7]
python-version: ["3.7"]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -41,16 +45,23 @@ jobs:
os:
- macos-10.15
- ubuntu-20.04
python-version: [3.6, 3.7, 3.8, 3.9]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
exclude:
- os: macos-10.15
python-version: 3.6
python-version: "3.6"
- os: macos-10.15
python-version: 3.8
python-version: "3.8"
- os: macos-10.15
python-version: 3.9
python-version: "3.9"
- os: macos-10.15
python-version: "3.10"
- os: ubuntu-20.04 # coverage job
python-version: 3.7
python-version: "3.7"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.44
rev: 0.0.50
hooks:
- id: check-dev-files
- id: format-setup-cfg
Expand All @@ -61,7 +61,7 @@ repos:
- id: blacken-docs

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v5.6.9
rev: v5.6.10
hooks:
- id: cspell

Expand Down Expand Up @@ -100,7 +100,7 @@ repos:
- id: pydocstyle

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.175
rev: v1.1.179
hooks:
- id: pyright

Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ addopts =
--durations=3
filterwarnings =
error
ignore:The distutils package is deprecated.*:DeprecationWarning
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
testpaths =
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Documentation
Topic :: Utilities
Typing :: Typed

[options]
python_requires = >=3.6, <3.10
python_requires = >=3.6
setup_requires =
setuptools_scm
install_requires =
Expand Down