File tree Expand file tree Collapse file tree 5 files changed +54
-15
lines changed Expand file tree Collapse file tree 5 files changed +54
-15
lines changed Original file line number Diff line number Diff line change 7
7
steps :
8
8
- uses : actions/checkout@main
9
9
- run : ./poetry/admin.ps1 Install-Poetry
10
- - run : |
11
- & "$env:APPDATA\Python\Scripts\poetry" install --extras poetry
12
- - run : |
13
- & "$env:APPDATA\Python\Scripts\poetry" run python tests/poetry/test_.py
10
+ - uses : astral-sh/setup-uv@main
11
+ with :
12
+ version : ' latest'
13
+ - run : uv sync --extra poetry
14
+ - run : uv run python tests/poetry/test_.py
14
15
15
16
ubuntu :
16
17
runs-on : ubuntu-latest
17
18
steps :
18
19
- uses : actions/checkout@main
19
20
- run : ./poetry/admin.sh install
20
- - run : poetry install --extras poetry
21
- - run : poetry run python tests/poetry/test_.py
21
+ - uses : astral-sh/setup-uv@main
22
+ with :
23
+ version : ' latest'
24
+ - run : uv sync --extra poetry
25
+ - run : uv run python tests/poetry/test_.py
22
26
mac :
23
27
runs-on : macos-latest
24
28
steps :
25
29
- uses : actions/checkout@main
30
+ - uses : astral-sh/setup-uv@main
31
+ with :
32
+ version : ' latest'
26
33
- run : curl -sSL https://install.python-poetry.org | python3 -
27
- - run : poetry install --extras poetry
28
- - run : poetry run python tests/poetry/test_.py
34
+ - run : uv sync --extra poetry
35
+ - run : uv run python tests/poetry/test_.py
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@main
10
- - uses : snok/install-poetry@main
11
- - run : poetry build
12
- - run : poetry config http-basic.pypi __token__ ${{secrets.PYPI_TOKEN}}
13
- - run : poetry publish --skip-existing
10
+ - uses : astral-sh/setup-uv@main
11
+ with :
12
+ version : ' latest'
13
+ - run : uv build
14
+ - run : uv publish --token ${{secrets.PYPI_TOKEN}}
14
15
poetry-util :
15
16
runs-on : windows-latest
16
17
steps :
Original file line number Diff line number Diff line change 8
8
strategy :
9
9
matrix :
10
10
os : [ubuntu-latest, windows-latest, macos-latest]
11
- version : ['3.9 ', '3.x']
11
+ version : ['3.10 ', '3.x']
12
12
runs-on : ${{matrix.os}}
13
13
steps :
14
14
- uses : actions/checkout@main
15
- - uses : davidkhala/poetry -buildpack@main
15
+ - uses : davidkhala/uv -buildpack@main
16
16
with :
17
17
test-entry-point : pytest --ignore=tests/poetry
18
18
version : ${{matrix.version}}
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ clean-poetry = "poetry:clean"
19
19
[dependency-groups ]
20
20
dev = [
21
21
" pytest" ,
22
- " python-dotenv" ,
23
22
]
24
23
25
24
[tool .hatch .build .targets .sdist ]
Original file line number Diff line number Diff line change
1
+ $ErrorActionPreference = " Stop"
2
+ function Install
3
+ {
4
+ powershell - ExecutionPolicy ByPass - c " irm https://astral.sh/uv/install.ps1 | iex"
5
+ }
6
+ function WinGet-Install
7
+ {
8
+ winget install -- id= astral- sh.uv - e
9
+ }
10
+ function Uninstall
11
+ {
12
+ uv cache clean
13
+ $python_dir = uv python dir
14
+ if (Test-Path $python_dir )
15
+ {
16
+ Remove-Item $python_dir - Recurse - Force
17
+ }
18
+
19
+ $tool_dir = uv tool dir
20
+ if (Test-Path $tool_dir )
21
+ {
22
+ Remove-Item $tool_dir - Recurse - Force
23
+ }
24
+
25
+ rm $HOME \.local\bin\uv.exe
26
+ rm $HOME \.local\bin\uvx.exe
27
+ }
28
+
29
+ if ($args.Count -gt 0 )
30
+ {
31
+ Invoke-Expression ($args -join " " )
32
+ }
You can’t perform that action at this time.
0 commit comments