Skip to content

Commit

Permalink
Merge pull request #51 from datasig-ac-uk/python-version-avail
Browse files Browse the repository at this point in the history
Widen python version availability
  • Loading branch information
rchan26 authored Oct 9, 2023
2 parents f88c81e + fe6af29 commit 19c98b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: [ubuntu-latest, macos-latest]

steps:
Expand Down
14 changes: 7 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
nox.options.sessions = ["lint", "tests"]


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def lint(session: nox.Session) -> None:
"""
Run the linter.
Expand All @@ -20,7 +20,7 @@ def lint(session: nox.Session) -> None:
session.run("pre-commit", "run", "--all-files", *session.posargs)


# @nox.session(python="3.8")
# @nox.session(python=["3.8", "3.9", "3.10", "3.11"])
# def pylint(session: nox.Session) -> None:
# """
# Run PyLint.
Expand All @@ -31,7 +31,7 @@ def lint(session: nox.Session) -> None:
# session.run("pylint", "src", *session.posargs)


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def tests(session: nox.Session) -> None:
"""
Run the unit and regular tests.
Expand All @@ -40,7 +40,7 @@ def tests(session: nox.Session) -> None:
session.run("pytest", *session.posargs)


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def coverage(session: nox.Session) -> None:
"""
Run tests and compute coverage.
Expand All @@ -50,7 +50,7 @@ def coverage(session: nox.Session) -> None:
tests(session)


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def docs(session: nox.Session) -> None:
"""
Build the docs. Pass "--serve" to serve.
Expand All @@ -69,7 +69,7 @@ def docs(session: nox.Session) -> None:
session.run("python", "-m", "http.server", "8000", "-d", "_build/html")


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def build_api_docs(session: nox.Session) -> None:
"""
Build (regenerate) API docs.
Expand All @@ -88,7 +88,7 @@ def build_api_docs(session: nox.Session) -> None:
)


@nox.session(python="3.8")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def build(session: nox.Session) -> None:
"""
Build an SDist and wheel.
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ authors = [
]
description = "Path signatures for Natural Language Processing."
readme = "README.md"
requires-python = ">=3.8, <3.9"
requires-python = ">=3.8, <3.12"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
Expand All @@ -24,6 +24,9 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
]
dynamic = ["version"]
Expand Down Expand Up @@ -77,6 +80,7 @@ addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore:Tensorflow not installed; ParametricUMAP will be unavailable:ImportWarning", # umap
"ignore:pkg_resources is deprecated as an API:DeprecationWarning", # umap
"ignore:Deprecated call to *:DeprecationWarning",
Expand Down

0 comments on commit 19c98b2

Please sign in to comment.