Add support for pep440 version specifiers

This commit is contained in:
Kevin Stillhammer
2025-05-26 20:02:40 +02:00
parent da0c801a2d
commit 0a94239999
6 changed files with 856 additions and 7 deletions
+18
View File
@@ -203,6 +203,23 @@ jobs:
fi
env:
RUFF_VERSION: ${{ steps.ruff-action.outputs.ruff-version }}
test-pep440-version-specifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install version 0.11.11
id: ruff-action
uses: ./
with:
version: ">=0.11.10,<0.12.0"
src: __tests__/fixtures/python-project
- name: Correct version gets installed
run: |
if [ "$RUFF_VERSION" != "0.11.11" ]; then
exit 1
fi
env:
RUFF_VERSION: ${{ steps.ruff-action.outputs.ruff-version }}
test-checksum:
runs-on: ${{ matrix.inputs.os }}
strategy:
@@ -298,6 +315,7 @@ jobs:
- test-default-version-from-pyproject-optional-dependencies
- test-default-version-from-requirements
- test-semver-range
- test-pep440-version-specifier
- test-checksum
- test-with-explicit-token
- test-args