From 3a29db0b61c9aad32101fe71c02c6bf84223b317 Mon Sep 17 00:00:00 2001 From: Alex Riley Date: Thu, 2 Nov 2023 21:53:37 +0000 Subject: [PATCH] Update CI, test Python 3.12 --- .github/workflows/python-package.yaml | 6 ++---- pyproject.toml | 27 ++++++++++++++------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index 7f71ca7..8c1389f 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -29,9 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -r dev_requirements.txt - python -m pip install -r requirements.txt - python -m pip install . + python -m pip install .[dev] - name: Check with ruff run: ruff check . - name: Check types diff --git a/pyproject.toml b/pyproject.toml index 2cd469a..8c96d73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,21 +5,22 @@ build-backend = "setuptools.build_meta" [project] name = "urn-calculator" version = "0.0.1" -description = "Multivariate hypergeometric command line calculator" +description = "Multivariate hypergeometric command line calculator." readme = "README.md" authors = [{ name = "Alex Riley" }] license = { file = "LICENSE" } - classifiers=[ - "Development Status :: 3 - Alpha", - "Topic :: Scientific/Engineering :: Mathematics", - "Topic :: Scientific/Engineering :: Visualization", - "Topic :: Utilities", - "Typing :: Typed", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ] +classifiers = [ + "Development Status :: 3 - Alpha", + "Topic :: Scientific/Engineering :: Mathematics", + "Topic :: Scientific/Engineering :: Visualization", + "Topic :: Utilities", + "Typing :: Typed", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] keywords = ["calculator", "probability", "count", "draw", "random", "sample", "hypergeometric"] dependencies = [ "lark >= 1.1.5", @@ -30,7 +31,7 @@ dependencies = [ requires-python = ">=3.10" [project.optional-dependencies] -dev = ["pytest"] +dev = ["pytest", "ruff"] [project.urls] Homepage = "https://github.com/ajcr/urn"