From 972e9f092de96ec6af9da738bb6c154b51892f55 Mon Sep 17 00:00:00 2001 From: Elizabeth Berrigan Date: Sun, 12 May 2024 19:59:55 -0700 Subject: [PATCH 1/3] update python to 3.11 --- README.md | 2 +- environment.yml | 2 +- pyproject.toml | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a2a8880..ed835d6 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ pip install sleap-roots If you are using conda (recommended): ``` -conda create -n sleap-roots python=3.9 +conda create -n sleap-roots python=3.11 conda activate sleap-roots pip install sleap-roots ``` diff --git a/environment.yml b/environment.yml index bf812d9..cd0a124 100644 --- a/environment.yml +++ b/environment.yml @@ -5,7 +5,7 @@ channels: - defaults dependencies: - - python=3.9 + - python=3.11 - numpy - matplotlib - seaborn diff --git a/pyproject.toml b/pyproject.toml index 6478b13..62a4743 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,9 @@ license = {text = "BSD-3-Clause"} classifiers = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9" + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" ] dependencies = [ "numpy", From a8d4ffab18efaf786a355b7f7b22e0a158e0d05c Mon Sep 17 00:00:00 2001 From: Elizabeth Berrigan Date: Sun, 12 May 2024 20:01:15 -0700 Subject: [PATCH 2/3] bump version because of (breaking) major changes --- sleap_roots/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleap_roots/__init__.py b/sleap_roots/__init__.py index 7b0b898..b7a4977 100644 --- a/sleap_roots/__init__.py +++ b/sleap_roots/__init__.py @@ -29,4 +29,4 @@ # Define package version. # This is read dynamically by setuptools in pyproject.toml to determine the release version. -__version__ = "0.0.9" +__version__ = "0.1.0" From b914b43ab5474b36f64e9336a539b433308b5e87 Mon Sep 17 00:00:00 2001 From: Elizabeth Berrigan Date: Sun, 12 May 2024 20:12:23 -0700 Subject: [PATCH 3/3] update ci and build to python 3.11 --- .github/workflows/build.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16bdc1d..ed1c281 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f753400..f627f8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | @@ -58,7 +58,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-22.04", "windows-2022"] - python: [3.9] + python: [3.11] name: Tests (${{ matrix.os }}, Python ${{ matrix.python }}) runs-on: ${{ matrix.os }} @@ -91,20 +91,20 @@ jobs: pip freeze - name: Test with pytest - if: ${{ !(startsWith(matrix.os, 'ubuntu') && matrix.python == 3.9) }} + if: ${{ !(startsWith(matrix.os, 'ubuntu') && matrix.python == 3.11) }} shell: bash -l {0} run: | pytest - name: Test with pytest (with coverage) - if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python == 3.9 }} + if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python == 3.11 }} shell: bash -l {0} run: | pytest --cov=sleap_roots --cov-report=xml tests/ - name: Upload coverage uses: codecov/codecov-action@v4 - if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python == 3.9 }} + if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python == 3.11 }} with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true