Skip to content

Commit 85fee39

Browse files
authored
Drop Support for Python 3.9, Add Support for Python 3.11 (#132)
* Drop Support for Python 3.9 Add Support for Python 3.11
1 parent fe63666 commit 85fee39

File tree

8 files changed

+15
-24
lines changed

8 files changed

+15
-24
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-python@v4
2929
with:
3030
python-version: 3.11
31-
cache: 'pip'
31+
cache: "pip"
3232

3333
- name: Install dependencies
3434
run: |

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
13-
- run: python3 -m pip install --upgrade build && python3 -m build
13+
- run: python3 -m pip install -U build && python3 -m build
1414
- name: Publish package
1515
uses: pypa/gh-action-pypi-publish@release/v1
1616
with:

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
pull_request:
55
push:
6-
branches:
6+
branches:
77
- master
88
- Development
99

@@ -14,17 +14,18 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
python-version: ['3.9']
17+
python-version: ["3.10", "3.11"]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
python -m pip install --upgrade pip
28-
pip install tox tox-gh-actions
27+
python -m ensurepip
28+
python -m pip install -U pip setuptools wheel
29+
python -m pip install tox tox-gh-actions
2930
- name: Test with tox
3031
run: tox

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Full Installation Instructions
44
Requirements
55
------------
66

7-
This package requires Python 3.9 or later.
7+
This package requires Python 3.10 or later.
88
A simple installation is possible via `Miniconda <https://docs.conda.io/en/latest/miniconda.html>`_,
99
e.g. (on Linux)
1010

environment.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ no_implicit_reexport = true
2626

2727
[tool.black]
2828
line-length = 120
29-
target-version = ["py39", "py310"]
29+
target-version = ["py310", "py311"]
3030

3131
[tool.isort]
3232
profile = "black"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ keywords =
3030
model comparison
3131

3232
[options]
33-
python_requires = >=3.9
33+
python_requires = >=3.10
3434
packages = find:
3535
install_requires =
3636
h5py >= 3.7

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ envlist =
55

66
[gh-actions]
77
python =
8-
3.9: base, flake8
8+
3.10: base, flake8
99

1010
[testenv]
1111
setenv =
@@ -16,7 +16,7 @@ commands =
1616
pytest --basetemp={envtmpdir}
1717

1818
[testenv:flake8]
19-
basepython = python3.9
19+
basepython = python3.10
2020
deps = flake8
2121
commands = flake8 bayesflow tests
2222

0 commit comments

Comments
 (0)