Skip to content

Commit

Permalink
Merge pull request #105 from HuttleyLab/main
Browse files Browse the repository at this point in the history
DEV: support python 3.13
  • Loading branch information
GavinHuttley authored Jan 27, 2025
2 parents 6bb8768 + 65ccf92 commit a045b0e
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 76 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: "actions/checkout@v4"
Expand All @@ -24,14 +24,19 @@ jobs:
with:
python-version: "${{ matrix.python-version }}"

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: "Installs for ${{ matrix.python-version }}"
run: |
python --version
pip install --upgrade pip wheel setuptools flit
pip install --upgrade nox
uv venv venv -p python${{ matrix.python-version }}
uv tool install -p venv nox
- name: "Run nox for ${{ matrix.python-version }}"
run: "nox -s test_coveralls-${{ matrix.python-version }} -- --cov-report lcov:lcov-${{matrix.os}}-${{matrix.python-version}}.lcov --cov-report term --cov-append --cov diverse_seq"
run: "nox -db uv -s test_coveralls-${{ matrix.python-version }} -- --cov-report lcov:lcov-${{matrix.os}}-${{matrix.python-version}}.lcov --cov-report term --cov-append --cov diverse_seq"

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import nox

_py_versions = range(10, 13)
_py_versions = range(10, 14)

nox.options.sessions = ["test", "testcov"]

Expand All @@ -16,7 +16,7 @@ def test(session):
)


@nox.session(python=["3.12"])
@nox.session(python=["3.13"])
def testcov(session):
session.install(".[test]")
session.chdir("tests")
Expand Down
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
keywords = ["biology", "genomics", "statistics", "phylogeny", "evolution", "bioinformatics"]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<3.14"
dependencies = [
"attrs",
"click",
Expand All @@ -32,6 +32,8 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
# the following are inferred from the source code
dynamic = ["version", "description"]
Expand All @@ -50,7 +52,7 @@ test = [
"pytest",
"pytest-cov",
"pytest-xdist",
"ruff==0.9.1",
"ruff==0.9.3",
]
dev = [
"cogapp",
Expand All @@ -60,7 +62,7 @@ dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"ruff==0.9.1",
"ruff==0.9.3",
]
doc = ["click",
"ipykernel",
Expand Down Expand Up @@ -136,7 +138,11 @@ target-version = "py310"
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["ALL"]
ignore = ["EXE002", "FA100", "E501", "D"]
# turn of warnings for:
# - import numpy as np, we pefer explicit and 3 extra characters is no burden
# - strict camel case class names, we name classes with a __call__ method like
# functions since their instance behaves like a function
ignore = ["EXE002", "FA100", "E501", "D", "ICN001", "N801"]

# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
Expand Down
2 changes: 1 addition & 1 deletion src/diverse_seq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# found by h5py
import hdf5plugin # noqa

__version__ = "2024.12.26a1"
__version__ = "2024.12.26a2"
Loading

0 comments on commit a045b0e

Please sign in to comment.