Skip to content

Commit 2e49756

Browse files
committed
switch to uv script
1 parent f9aee54 commit 2e49756

File tree

5 files changed

+10
-48
lines changed

5 files changed

+10
-48
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
mkdir foobar
2828
echo "VERSION = '1.0a1'" > foobar/version.py
2929
30-
- run: check-python-version.py
30+
- run: ./check-python-version.py
3131
env:
3232
# we can't use GITHUB_REF, so we use the backup var name
3333
INPUT_TEST_GITHUB_REF: refs/tags/v1.0.0a1
@@ -39,7 +39,7 @@ jobs:
3939
- run: grep -q 'VERSION=1.0a1' output1.txt
4040

4141
- run: echo "VERSION = '1.1.1'" > foobar/version.py
42-
- run: check-python-version.py
42+
- run: ./check-python-version.py
4343
env:
4444
INPUT_SKIP_ENV_CHECK: true
4545
INPUT_VERSION_FILE_PATH: foobar/version.py

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.py[cod]
55
/foobar/
66
.python-version
7+
pyproject.toml

check-python-version.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
#!/usr/bin/env uv run
1+
#!/usr/bin/env -S uv run --script
2+
# /// script
3+
# requires-python = ">=3.10"
4+
# dependencies = [
5+
# "packaging==25.0",
6+
# ]
7+
# ///
28
import os
39
import re
410
import sys

pyproject.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.

uv.lock

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)