Skip to content

Commit

Permalink
Merge pull request #112 from scikit-hep/py311
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle authored Jun 22, 2023
2 parents 030e2ee + c3c5718 commit cbed58e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ jobs:
os:
- ubuntu-latest
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
include:
- os: windows-latest
python-version: "3.7"
python-version: "3.8"
- os: windows-latest
python-version: "3.10"
python-version: "3.11"
- os: macos-latest
python-version: "3.7"
python-version: "3.8"
- os: macos-latest
python-version: "3.10"
python-version: "3.11"
name: Check Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -63,7 +63,7 @@ jobs:
run: python -m pytest --doctest-modules --cov=hepstats --cov-report=xml -n4

- name: Upload coverage to Codecov
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # technically not needed, but prevents failures: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
pip install -U -q -e .[docs]
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ repos:
rev: v3.7.0
hooks:
- id: pyupgrade
args: [ --py37-plus ]
args: [ --py38-plus ]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.3.0
hooks:
- id: setup-cfg-fmt
args: [ --max-py-version=3.10, --include-version-classifiers ]
args: [ --max-py-version=3.11, --include-version-classifiers ]

# Notebook formatting
- repo: https://github.com/nbQA-dev/nbQA
Expand All @@ -67,7 +67,7 @@ repos:

- id: nbqa-pyupgrade
additional_dependencies: [ pyupgrade==2.7.4 ]
args: [ --py37-plus ]
args: [ --py38-plus ]


- repo: https://github.com/roy-ht/pre-commit-jupyter
Expand Down
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ version: 2
sphinx:
configuration: docs/conf.py

build:
os: ubuntu-22.04
tools:
python: "3.11"

python:
version: "3"
install:
- method: pip
path: .
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
master
******

Version 0.7.0
*************

* Add support for Python 3.11, drop support for Python 3.7

Version 0.6.1
*************

Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ classifiers =
Programming Language :: Python
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
Programming Language :: Python :: 3.11
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Information Analysis
Topic :: Scientific/Engineering :: Mathematics
Expand All @@ -43,7 +43,7 @@ install_requires =
scipy
tqdm
uhi
python_requires = >=3.7
python_requires = >=3.8
package_dir =
= src

Expand All @@ -52,7 +52,7 @@ where = src

[options.extras_require]
dev =
black==19.10b0
black
zfit
docs =
matplotlib
Expand Down

0 comments on commit cbed58e

Please sign in to comment.