Skip to content

Commit

Permalink
uv-ize this project
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Dec 9, 2024
1 parent 6b9e902 commit b906ff1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Code quality
on:
push:
pull_request:
env:
UV_SYSTEM_PYTHON: 1

jobs:

Expand All @@ -13,6 +14,11 @@ jobs:
- name: Acquire sources
uses: actions/checkout@v4.1.1

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
Expand All @@ -25,10 +31,8 @@ jobs:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements-*.txt') }}

- name: Install dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt -r dev-requirements.txt
- name: Install dev dependencies
run: uv pip install -r dev-requirements.txt

- name: Run ruff
run: |
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*.so
*.c
__pycache__

/build
/.idea/
/build/
/dist/
/docs/_build
/python_pkcs11.egg-info/
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ extend-select = [
combine-as-imports = true

[tool.setuptools.packages.find]
include = ["pkcs11*"]
include = ["pkcs11*"]
22 changes: 22 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b906ff1

Please sign in to comment.