diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 04ea2f1..fb9b860 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -1,7 +1,6 @@ name: Code quality on: push: - pull_request: jobs: @@ -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: @@ -25,10 +27,9 @@ jobs: path: ~/.cache/pip key: pip-${{ hashFiles('**/requirements-*.txt') }} - - name: Install dependencies + - 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: | diff --git a/.gitignore b/.gitignore index 6506c9e..08eea49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ *.so *.c __pycache__ - -/build +/.idea/ +/build/ /dist/ /docs/_build /python_pkcs11.egg-info/ diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/pyproject.toml b/pyproject.toml index 9cd3927..5e4e4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,4 +53,4 @@ extend-select = [ combine-as-imports = true [tool.setuptools.packages.find] -include = ["pkcs11*"] \ No newline at end of file +include = ["pkcs11*"] diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..a520750 --- /dev/null +++ b/uv.lock @@ -0,0 +1,22 @@ +version = 1 +requires-python = ">=3.9" + +[[package]] +name = "asn1crypto" +version = "1.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/de/cf/d547feed25b5244fcb9392e288ff9fdc3280b10260362fc45d37a798a6ee/asn1crypto-1.5.1.tar.gz", hash = "sha256:13ae38502be632115abf8a24cbe5f4da52e3b5231990aff31123c805306ccb9c", size = 121080 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/7f/09065fd9e27da0eda08b4d6897f1c13535066174cc023af248fc2a8d5e5a/asn1crypto-1.5.1-py2.py3-none-any.whl", hash = "sha256:db4e40728b728508912cbb3d44f19ce188f218e9eba635821bb4b68564f8fd67", size = 105045 }, +] + +[[package]] +name = "python-pkcs11" +version = "0.7.0" +source = { editable = "." } +dependencies = [ + { name = "asn1crypto" }, +] + +[package.metadata] +requires-dist = [{ name = "asn1crypto", specifier = ">=1.4.0" }]