File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 deploy :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
12- - name : Set up Python
13- uses : actions/setup-python@v2
11+ - uses : actions/checkout@v4
1412 with :
15- python-version : " 3.x"
16- - name : Install build backend
17- run : python -m pip install --upgrade pip build twine
13+ fetch-depth : 0 # Need full history for version from git tags
14+ - name : Install uv
15+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
16+ - name : Add uv to PATH
17+ run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
18+ - name : Install dependencies
19+ run : uv sync --extra dev
1820 - name : Build and publish
1921 env :
2022 TWINE_USERNAME : __token__
2123 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
2224 run : |
23- python -m build
24- twine upload --repository pypi dist/*
25+ uv build
26+ uv run twine upload --repository pypi dist/*
Original file line number Diff line number Diff line change 11[project ]
22name = " python-smarttub"
3- version = " 0.0.39 "
3+ dynamic = [ " version " ]
44description = " API to query and control hot tubs using the SmartTub system"
55readme = " README.md"
66requires-python = " >=3.9"
@@ -19,13 +19,17 @@ dev = [
1919 " aresponses" ,
2020 " pre-commit" ,
2121 " black" ,
22- " flake8"
22+ " flake8" ,
23+ " twine"
2324]
2425
2526[build-system ]
26- requires = [" hatchling" ]
27+ requires = [" hatchling" , " hatch-vcs " ]
2728build-backend = " hatchling.build"
2829
30+ [tool .hatch .version ]
31+ source = " vcs"
32+
2933[tool .pytest .ini_options ]
3034testpaths = [" tests" ]
3135python_files = [" test_*.py" ]
You can’t perform that action at this time.
0 commit comments