Skip to content

Commit 28106bb

Browse files
authored
build: use version-pioneer and hatchling (#5)
1 parent 4362932 commit 28106bb

File tree

19 files changed

+1188
-1430
lines changed

19 files changed

+1188
-1430
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
if: ${{ github.event.inputs.dry-run == 'false' }}
3030
needs: commit-changelog-and-release
3131
runs-on: ubuntu-24.04
32+
permissions:
33+
contents: read
34+
id-token: write
3235
steps:
33-
- name: Set up Python 3.11
34-
uses: actions/setup-python@v4
36+
- uses: actions/checkout@v4
3537
with:
36-
python-version: 3.11
37-
38+
ref: ${{ github.event.inputs.version-tag }}
39+
- uses: deargen/workflows/actions/setup-python-and-uv@master
3840
- name: Build and upload to PyPI
3941
run: |
40-
python -m pip install --upgrade pip
41-
pip3 install build twine
42-
python -m build . --sdist
43-
python3 -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --non-interactive
42+
uv build
43+
uv publish

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uv venv
2828
source .venv/bin/activate
2929
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
30-
uv pip install -e .
30+
uv pip install .
3131
- name: Run pytest
3232
uses: deargen/workflows/actions/run-pytest@master
3333
with:
@@ -52,6 +52,6 @@ jobs:
5252
uv venv
5353
source .venv/bin/activate
5454
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
55-
uv pip install -e .
55+
uv pip install .
5656
- name: Run doctest
5757
uses: deargen/workflows/actions/run-doctest@master
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d7314ad59261b4109ef6e9022d331c212b1cb1dc62da32163cea3cef9fc1a3f2 requirements_dev.in
1+
425899e6ec1e329b19f09174d83b1bccec945bba515f7747009f7f494d77cd18 requirements_dev.in

deps/lock/aarch64-apple-darwin/requirements_dev.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements_dev.in -o /home/runner/work/python-import.nvim/python-import.nvim/deps/lock/aarch64-apple-darwin/requirements_dev.txt --python-platform aarch64-apple-darwin --python-version 3.9
2+
# uv pip compile requirements_dev.in -o /Users/kiyoon/project/python-import.nvim/deps/lock/aarch64-apple-darwin/requirements_dev.txt --python-platform aarch64-apple-darwin --python-version 3.9
33
click==8.1.7
44
# via typer
55
coverage==7.5.3
@@ -26,14 +26,15 @@ pytest-cov==5.0.0
2626
# via -r requirements_dev.in
2727
rich==13.7.1
2828
# via typer
29-
ruff==0.6.9
29+
ruff==0.9.6
3030
# via -r requirements_dev.in
3131
shellingham==1.5.4
3232
# via typer
3333
tomli==2.0.1
3434
# via
3535
# coverage
3636
# pytest
37+
# version-pioneer
3738
tree-sitter==0.23.0
3839
# via -r requirements.in
3940
tree-sitter-python==0.23.0
@@ -42,3 +43,5 @@ typer==0.12.4
4243
# via -r requirements.in
4344
typing-extensions==4.12.2
4445
# via typer
46+
version-pioneer==0.0.13
47+
# via -r requirements_dev.in
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d7314ad59261b4109ef6e9022d331c212b1cb1dc62da32163cea3cef9fc1a3f2 requirements_dev.in
1+
425899e6ec1e329b19f09174d83b1bccec945bba515f7747009f7f494d77cd18 requirements_dev.in

deps/lock/x86_64-apple-darwin/requirements_dev.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements_dev.in -o /home/runner/work/python-import.nvim/python-import.nvim/deps/lock/x86_64-apple-darwin/requirements_dev.txt --python-platform x86_64-apple-darwin --python-version 3.9
2+
# uv pip compile requirements_dev.in -o /Users/kiyoon/project/python-import.nvim/deps/lock/x86_64-apple-darwin/requirements_dev.txt --python-platform x86_64-apple-darwin --python-version 3.9
33
click==8.1.7
44
# via typer
55
coverage==7.5.3
@@ -26,14 +26,15 @@ pytest-cov==5.0.0
2626
# via -r requirements_dev.in
2727
rich==13.7.1
2828
# via typer
29-
ruff==0.6.9
29+
ruff==0.9.6
3030
# via -r requirements_dev.in
3131
shellingham==1.5.4
3232
# via typer
3333
tomli==2.0.1
3434
# via
3535
# coverage
3636
# pytest
37+
# version-pioneer
3738
tree-sitter==0.23.0
3839
# via -r requirements.in
3940
tree-sitter-python==0.23.0
@@ -42,3 +43,5 @@ typer==0.12.4
4243
# via -r requirements.in
4344
typing-extensions==4.12.2
4445
# via typer
46+
version-pioneer==0.0.13
47+
# via -r requirements_dev.in
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d7314ad59261b4109ef6e9022d331c212b1cb1dc62da32163cea3cef9fc1a3f2 requirements_dev.in
1+
425899e6ec1e329b19f09174d83b1bccec945bba515f7747009f7f494d77cd18 requirements_dev.in

deps/lock/x86_64-manylinux_2_28/requirements_dev.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements_dev.in -o /home/runner/work/python-import.nvim/python-import.nvim/deps/lock/x86_64-manylinux_2_28/requirements_dev.txt --python-platform x86_64-manylinux_2_28 --python-version 3.9
2+
# uv pip compile requirements_dev.in -o /Users/kiyoon/project/python-import.nvim/deps/lock/x86_64-manylinux_2_28/requirements_dev.txt --python-platform x86_64-manylinux_2_28 --python-version 3.9
33
click==8.1.7
44
# via typer
55
coverage==7.5.3
@@ -26,14 +26,15 @@ pytest-cov==5.0.0
2626
# via -r requirements_dev.in
2727
rich==13.7.1
2828
# via typer
29-
ruff==0.6.9
29+
ruff==0.9.6
3030
# via -r requirements_dev.in
3131
shellingham==1.5.4
3232
# via typer
3333
tomli==2.0.1
3434
# via
3535
# coverage
3636
# pytest
37+
# version-pioneer
3738
tree-sitter==0.23.0
3839
# via -r requirements.in
3940
tree-sitter-python==0.23.0
@@ -42,3 +43,5 @@ typer==0.12.4
4243
# via -r requirements.in
4344
typing-extensions==4.12.2
4445
# via typer
46+
version-pioneer==0.0.13
47+
# via -r requirements_dev.in
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d7314ad59261b4109ef6e9022d331c212b1cb1dc62da32163cea3cef9fc1a3f2 requirements_dev.in
1+
425899e6ec1e329b19f09174d83b1bccec945bba515f7747009f7f494d77cd18 requirements_dev.in

deps/lock/x86_64-pc-windows-msvc/requirements_dev.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements_dev.in -o /home/runner/work/python-import.nvim/python-import.nvim/deps/lock/x86_64-pc-windows-msvc/requirements_dev.txt --python-platform x86_64-pc-windows-msvc --python-version 3.9
2+
# uv pip compile requirements_dev.in -o /Users/kiyoon/project/python-import.nvim/deps/lock/x86_64-pc-windows-msvc/requirements_dev.txt --python-platform x86_64-pc-windows-msvc --python-version 3.9
33
click==8.1.7
44
# via typer
55
colorama==0.4.6
@@ -30,14 +30,15 @@ pytest-cov==5.0.0
3030
# via -r requirements_dev.in
3131
rich==13.7.1
3232
# via typer
33-
ruff==0.6.9
33+
ruff==0.9.6
3434
# via -r requirements_dev.in
3535
shellingham==1.5.4
3636
# via typer
3737
tomli==2.0.1
3838
# via
3939
# coverage
4040
# pytest
41+
# version-pioneer
4142
tree-sitter==0.23.0
4243
# via -r requirements.in
4344
tree-sitter-python==0.23.0
@@ -46,3 +47,5 @@ typer==0.12.4
4647
# via -r requirements.in
4748
typing-extensions==4.12.2
4849
# via typer
50+
version-pioneer==0.0.13
51+
# via -r requirements_dev.in

0 commit comments

Comments
 (0)