File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77jobs :
88 pypi_release :
9- name : Build with Poetry and Publish to PyPI
9+ name : Build with UV and Publish to PyPI
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v4
13- uses : actions/setup-python@v5
14- - name : Install and configure Poetry
15- run : |
16- pip install poetry
17- poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
12+ - uses : actions/checkout@v6
13+ - uses : actions/setup-python@v6
14+ - name : Install the latest version of uv
15+ uses : astral-sh/setup-uv@v6
16+ with :
17+ version : latest
18+ enable-cache : true
19+ - name : Build package
20+ run : uv build
1821 - name : Publish package
19- run : poetry publish --build
22+ run : uv publish
Original file line number Diff line number Diff line change 11name : Ruff
22
3- on : [ push, pull_request ]
3+ on : [push, pull_request]
44
55jobs :
66 ruff :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v4
10- - uses : chartboost/ruff-action@v1
9+ - uses : actions/checkout@v6
10+ - uses : astral-sh/ruff-action@v3
11+ with :
12+ version : latest
13+ - run : ruff check
14+ - run : ruff format --check
Original file line number Diff line number Diff line change 88 strategy :
99 matrix :
1010 python-version :
11- - " 3.8"
1211 - " 3.9"
1312 - " 3.10"
1413 - " 3.11"
1514 - " 3.12"
15+ - " 3.13"
16+ - " 3.14"
1617 steps :
17- - uses : actions/checkout@v4
18+ - uses : actions/checkout@v6
1819 - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v5
20+ uses : actions/setup-python@v6
2021 with :
2122 python-version : ${{ matrix.python-version }}
22- - name : Install and set up Poetry
23- run : |
24- pip install poetry
25- poetry config virtualenvs.create true --local
26- poetry config virtualenvs.in-project true --local
27- - name : Install python dependencies
28- run : poetry install
23+ - name : Install the latest version of uv
24+ uses : astral-sh/setup-uv@v6
25+ with :
26+ version : latest
27+ enable-cache : true
2928 - name : Test with pytest
30- run : poetry run pytest --verbose
29+ run : uv run pytest -v
Original file line number Diff line number Diff line change 11# Python Base45
22
3- A Python module to encode/decode binary data using Base45 as described in [ RFC 9285 ] ( https://www.rfc-editor.org/info/rfc9285 ) .
3+ A Python module to encode/decode binary data using Base45 as described in [ RFC 9285] ( https://www.rfc-editor.org/info/rfc9285 ) .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- [tool . poetry ]
1+ [project ]
22name = " base45"
3- version = " 0.5.0 "
3+ dynamic = [ " version " ]
44description = " Base45 Encoder/Decoder"
5- authors = [" Jakob Schlyter <jakob@kirei.se>" ]
5+ authors = [
6+ { name = " Jakob Schlyter" , email = " jakob@schlyter.se" }
7+ ]
68license = " BSD-2-Clause"
7- repository = " https://github.com/kirei/python-base45"
89readme = " README.md"
10+ requires-python = " >=3.9"
911
10- [tool .poetry .dependencies ]
11- python = " ^3.8"
12-
13- [tool .poetry .group .dev .dependencies ]
14- ruff = " ^0.4.2"
15- pytest = " ^8.2.0"
16- isort = " ^5.13.2"
17- pytest-isort = " ^4.0.0"
12+ [project .urls ]
13+ repository = " https://github.com/kirei/python-base45"
1814
19- [tool . poetry .scripts ]
15+ [project .scripts ]
2016base45 = " base45.cli:main"
2117
2218[build-system ]
23- requires = [" poetry-core>=1.0.0" ]
24- build-backend = " poetry.core.masonry.api"
19+ requires = [" hatchling" , " uv-dynamic-versioning" ]
20+ build-backend = " hatchling.build"
21+
22+ [tool .hatch .version ]
23+ source = " uv-dynamic-versioning"
2524
26- [tool .isort ]
27- profile = " black"
25+ [dependency-groups ]
26+ dev = [
27+ " pytest>=8.4.2" ,
28+ " ruff>=0.15.2" ,
29+ ]
2830
2931[tool .ruff .lint ]
3032select = [
You can’t perform that action at this time.
0 commit comments