From d5ce0f6c5f3a53afdce124ffd52a22e1121a6cae Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Thu, 26 Oct 2023 13:06:01 +0200 Subject: [PATCH 1/2] Add python up to 3.10 to CI. Signed-off-by: Johannes Mueller --- .github/workflows/python-package.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 826891c3..ff00391a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,17 +16,18 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip + pip install -U setuptools setuptools_scm wheel python -m pip install flake8 pytest pytest-cov python -m pip install -e . if [ -f requirements.txt ]; then pip install -r requirements.txt; fi From b9d9c4adbe0920e2064bbc5986307c112727a81a Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Thu, 26 Oct 2023 13:37:38 +0200 Subject: [PATCH 2/2] Restore scm versioning Signed-off-by: Johannes Mueller --- pyproject.toml | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7894902d..2c63dbb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,6 @@ requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5", "wheel"] build-backend = "setuptools.build_meta" -#[tool.setuptools_scm] +[tool.setuptools_scm] # See configuration details in https://github.com/pypa/setuptools_scm -#version_scheme = "no-guess-dev" +version_scheme = "no-guess-dev" diff --git a/setup.py b/setup.py index 993a724c..77b7d7bf 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ if __name__ == "__main__": try: - setup(use_scm_version=False) #use_scm_version={"version_scheme": "no-guess-dev"} + setup(use_scm_version={"version_scheme": "no-guess-dev"}) except: # noqa print( "\n\nAn error occurred while building the project, "