Skip to content

Commit

Permalink
Added support for numpy 2.0 and updated CICD (#86)
Browse files Browse the repository at this point in the history
* Bumped version

* Update test.yml

* Update lint.yml

* Update publish.yml

* Update build_docs.yml

* relocked poetry and updated numpy
  • Loading branch information
georgebv committed Jul 30, 2024
1 parent a38f78e commit 3706ff8
Show file tree
Hide file tree
Showing 8 changed files with 955 additions and 1,034 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"
- name: Cache poetry installation
id: cache-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: poetry-${{ hashFiles('poetry.lock') }}
key: poetry-${{ hashFiles('poetry.lock') }}-3.12
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
command: [black, pylint, flake8, isort]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"
- name: Cache poetry installation
id: cache-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: poetry-${{ hashFiles('poetry.lock') }}
key: poetry-${{ hashFiles('poetry.lock') }}-3.12
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
url: https://pypi.org/project/pyextremes
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"
- name: Cache poetry installation
id: cache-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: poetry-${{ hashFiles('poetry.lock') }}
key: poetry-${{ hashFiles('poetry.lock') }}-3.12
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Cache poetry installation
id: cache-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: poetry-${{ hashFiles('poetry.lock') }}
key: poetry-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
Expand All @@ -37,25 +37,25 @@ jobs:
- name: Run tests and generate coverage report
run: scripts/run-pytest.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: success() && matrix.python-version == '3.9'
uses: codecov/codecov-action@v4
if: success() && matrix.python-version == '3.12'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
files: ./coverage.xml
verbose: true
test-windows:
name: Test on windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Install poetry
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ keywords:
- Statistics
license: MIT
commit: b003286e436db73e7f12c9f7c3298c05773bdf88
version: 2.3.2
version: 2.3.3
date-released: '2023-10-14'
1,929 changes: 925 additions & 1,004 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyextremes"
version = "2.3.2"
version = "2.3.3"
description = "Extreme Value Analysis (EVA) in Python"
license = "MIT"
authors = ["George Bocharov <bocharovgeorgii@gmail.com>"]
Expand Down Expand Up @@ -41,7 +41,7 @@ include = [

[tool.poetry.dependencies]
python = "^3.9"
numpy = "^1.19.0"
numpy = ">=1.19.0,<3.0.0"
scipy = "^1.5.0"
pandas = ">=1.0.0,<3.0.0"
emcee = "^3.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/pyextremes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.2"
__version__ = "2.3.3"
__all__ = [
"EVA",
"get_extremes",
Expand Down

0 comments on commit 3706ff8

Please sign in to comment.