From aa515fc27e2d02842291ce4fb31923ef8c9eb3f8 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Thu, 10 Oct 2024 19:19:15 +0200 Subject: [PATCH] Drop python 3.7 and 3.8; add 3.13 support --- .github/workflows/main.yml | 29 ++++++++++++++++------------- setup.py | 3 +-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05eb093..c6b7cac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,40 +13,43 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] + python-version: [3.9, '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v3 with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: setup.py + version: "latest" + enable-cache: true + cache-dependency-glob: "**/setup.py" - name: Set up Java uses: actions/setup-java@v4 with: distribution: "temurin" - java-version: 11 + java-version: 17 + + - name: Install python + run: uv venv --python ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install pycodestyle unittest-xml-reporting - pip install . + uv pip install pycodestyle unittest-xml-reporting + uv pip install . - name: Test - run: python -m xmlrunner discover -v -o test-results/test/ + run: uv run -m xmlrunner discover -v -o test-results/test/ - name: Pycodestyle - run: pycodestyle cr8 + run: uv run -m pycodestyle cr8 - name: Upload results to wacklig env: WACKLIG_TOKEN: ${{ secrets.WACKLIG_TOKEN }} run: | - curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | python - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed" + curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | uv run - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed" publish: name: Build & publish package to pypi diff --git a/setup.py b/setup.py index cdfae51..6eda5f8 100644 --- a/setup.py +++ b/setup.py @@ -40,12 +40,11 @@ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], use_scm_version=True, setup_requires=['setuptools_scm']