File tree Expand file tree Collapse file tree 5 files changed +693
-43
lines changed Expand file tree Collapse file tree 5 files changed +693
-43
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,12 @@ jobs:
16
16
- uses : actions/checkout@v2
17
17
with :
18
18
ref : ${{ github.event.pull_request.head.sha }}
19
- - name : Set up Python ${{ matrix.python-version }}
20
- uses : actions /setup-python@v2
19
+ - name : Install uv
20
+ uses : astral-sh /setup-uv@v6
21
21
with :
22
+ version : " 0.8.2"
22
23
python-version : ${{ matrix.python-version }}
23
- - name : Set up Poetry 2.1.0
24
-
25
- with :
26
- poetry-version : 1.1.2
24
+
27
25
- name : Run tests
28
26
run : make tests
29
27
- name : Upload coverage
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
- - name : Set up Python 3.9
13
- uses : actions /setup-python@v2
12
+ - name : Install uv
13
+ uses : astral-sh /setup-uv@v6
14
14
with :
15
- python-version : 3.9
16
- - name : Set up Poetry 2.1.0
17
-
18
- with :
19
- poetry-version : 1.1.2
15
+ version : " 0.8.2"
16
+ python-version : " 3.11"
20
17
- name : Run tests
21
18
run : make tests
22
19
- name : Run build
23
- run : poetry build
20
+ run : uv build
24
21
- name : Publish in GitHub Releases
25
22
uses : svenstaro/upload-release-action@v2
26
23
with :
Original file line number Diff line number Diff line change 1
- install :
2
- poetry install
3
-
4
- tests : install
5
- poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
6
- poetry run black . --check
7
- poetry run isort . --profile=black
8
- poetry run pre-commit run --all-files
9
- poetry run pytest --cov=./ --cov-report=xml
1
+ tests :
2
+ uv run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
3
+ uv run black . --check
4
+ uv run isort . --profile=black
5
+ uv run pre-commit run --all-files
6
+ uv run pytest --cov=./ --cov-report=xml
10
7
11
8
update_index :
12
9
cp README.md docs/index.md
Original file line number Diff line number Diff line change 1
- [tool . poetry ]
1
+ [project ]
2
2
name = " unasync-cli"
3
3
version = " 0.0.1"
4
4
description = " Command line interface for unasync. Fork of https://github.com/leynier/unasync-cli/"
5
- authors = [
" Leynier Gutiérrez González <[email protected] >" ]
6
- homepage = " https://github.com/leynier/unasync-cli/"
7
- repository = " https://github.com/leynier/unasync-cli"
8
- documentation = " https://github.com/leynier/unasync-cli"
5
+ authors = [
6
+ {
name =
" Leynier Gutiérrez González" ,
email =
" [email protected] " },
7
+ ]
9
8
readme = " README.md"
10
9
license = " MIT"
10
+ requires-python = " >= 3.9"
11
+ dependencies = [
12
+ " typer >=0.4.0" ,
13
+ " unasync >=0.6.0" ,
14
+ " setuptools >=78.1.1" ,
15
+ ]
16
+
17
+ [project .urls ]
18
+ homepage = " https://github.com/leynier/unasync-cli"
19
+ repository = " https://github.com/leynier/unasync-cli"
20
+ documentation = " https://github.com/leynier/unasync-cli"
11
21
12
- [tool . poetry .scripts ]
22
+ [project .scripts ]
13
23
unasync = " unasync_cli.main:app"
14
24
15
- [tool .poetry .dependencies ]
16
- python = " ^3.9"
17
- typer = " ^0.4.0"
18
- unasync = " ^0.6.0"
19
- setuptools = " ^78.1.1"
25
+ [dependency-groups ]
26
+ dev = [
27
+ " pytest >= 6.2.5" ,
28
+ " pytest-cov >= 3.0.0" ,
29
+ " flake8 >= 7.1.1" ,
30
+ " black >= 24.3" ,
31
+ " isort >= 5.9.3" ,
32
+ " pre-commit >= 2.15.0" ,
33
+ ]
34
+
35
+ [tool .uv ]
36
+ default-groups = [ " dev" ]
20
37
21
- [tool .poetry .dev-dependencies ]
22
- pytest = " ^6.2.5"
23
- pytest-cov = " ^3.0.0"
24
- flake8 = " ^7.1.1"
25
- black = " ^24.3"
26
- isort = " ^5.9.3"
27
- pre-commit = " ^2.15.0"
38
+ [tool .uv .build-backend ]
39
+ module-name = " unasync_cli"
40
+ module-root = " "
28
41
29
42
[build-system ]
30
- requires = [" poetry-core>=1.0 .0" ]
31
- build-backend = " poetry.core.masonry.api "
43
+ requires = [" uv_build>=0.8.3,<0.9 .0" ]
44
+ build-backend = " uv_build "
You can’t perform that action at this time.
0 commit comments