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 e034573
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Code quality
on:
push:
pull_request:

jobs:

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

- name: Install uv
uses: astral-sh/setup-uv@v4

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

- name: Install dependencies
- name: Install the project
run: uv sync --all-extras --dev

- name: Install dev dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt -r dev-requirements.txt
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 e034573

Please sign in to comment.