diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b9c194..a3ffd03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,14 +11,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + env: + UV_PYTHON: ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} + - name: Checkout the repository + uses: actions/checkout@main + - name: Install the default version of uv + id: setup-uv + uses: astral-sh/setup-uv@v3 + - name: Print the installed version + run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}" + - name: Install Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} - name: Install dependencies run: make env - name: Lint with pylint diff --git a/Makefile b/Makefile index ae2b4de..7b2609b 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,15 @@ default: test test: env - .env/bin/pytest -x tests --cov=backslash --cov-report=html + .venv/bin/pytest -x tests --cov=backslash --cov-report=html pylint: env - .env/bin/pylint --rcfile .pylintrc backslash tests + .venv/bin/pylint --rcfile .pylintrc backslash tests doc: env - .env/bin/sphinx-build -a -W -E docs build/sphinx/html + .venv/bin/sphinx-build -a -W -E docs build/sphinx/html -env: .env/.up-to-date - - -.env/.up-to-date: Makefile pyproject.toml - python3 -m venv .env - .env/bin/pip install -e .[testing,doc] - touch $@ +env: + uv venv --seed + uv pip install -e .[testing,doc] diff --git a/README.md b/README.md index 625fab6..32e3630 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ | | | |-----------------------|-----------------------------------------------------------------------------------------| -| Build Status | ![Build Status](https://github.com/getslash/backslash-python/actions/workflows/main.yml/badge.svg?branch=develop) | +| Build Status | ![Build Status](https://github.com/getslash/backslash-python/actions/workflows/main.yml/badge.svg?branch=master) | | Supported Versions | ![Supported Versions](https://img.shields.io/pypi/pyversions/backslash.svg) | | Latest Version | ![Latest Version](https://img.shields.io/pypi/v/backslash.svg) | -# Licence +# License BSD3 diff --git a/pyproject.toml b/pyproject.toml index 7a5bc22..67cde24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,11 +10,11 @@ requires-python = ">=3.8" license = { text = "BSD 3-Clause License" } classifiers = [ - "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", ] dependencies = [ "GitPython", @@ -53,4 +53,4 @@ source = "vcs" [tool.pytest] testpaths = "tests" timeout_method = "signal" -addopts = "-ra -W error::DeprecationWarning" +# addopts = "-ra -W error::DeprecationWarning"