Skip to content

Commit f75d3c0

Browse files
committed
Revise release workflow
1 parent c20d58e commit f75d3c0

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
- name: Build
2424
run: uv build
2525
# Check can launch app as built...
26-
- name: Smoke test (wheel)
27-
run: uv run --isolated --no-project --with dist/*.whl tests/build_test.py
28-
- name: Smoke test (source distribution)
29-
run: uv run --isolated --no-project --with dist/*.tar.gz tests/build_test.py
30-
- name: Publish
26+
- name: Build test (wheel)
27+
run: bash -c 'uv run --isolated --no-project --with dist/*.whl tests/build_test.py'
28+
- name: Build test (source distribution)
29+
run: bash -c 'uv run --isolated --no-project --with dist/*.tar.gz tests/build_test.py'
30+
- name: Publish to Test PyPI
31+
run: uv publish --index testpypi
32+
- name: Publish to PyPI
3133
run: uv publish
3234
- name: Wait for PyPI to publish
3335
shell: bash
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
name: Build and test
1+
name: Test
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- master
85
pull_request:
96
branches:
107
- master

pyproject.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm[toml]>=6.2"]
2+
requires = ["setuptools>=77.0.0", "wheel", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -11,7 +11,7 @@ authors = [
1111
{name = "Marcus Read"}
1212
]
1313
readme = "README.md"
14-
license = {text = "MIT License"}
14+
license = "MIT"
1515
keywords = [
1616
"game",
1717
"arcade",
@@ -24,7 +24,6 @@ requires-python = ">3.9.0"
2424
classifiers = [
2525
"Development Status :: 4 - Beta",
2626
"Natural Language :: English",
27-
"License :: OSI Approved :: MIT License",
2827
"Operating System :: OS Independent",
2928
"Programming Language :: Python",
3029
"Programming Language :: Python :: 3",
@@ -47,6 +46,9 @@ documentation = "https://github.com/maread99/pyroids/blob/master/README.md"
4746
"Issue Tracker" = "https://github.com/maread99/pyroids/issues"
4847
"Source Code" = "https://github.com/maread99/pyroids"
4948

49+
[project.scripts]
50+
pyroids = "pyroids.play:main"
51+
5052
[tool.setuptools]
5153
include-package-data = true
5254

@@ -63,5 +65,8 @@ pyroids = [
6365
[tool.setuptools_scm]
6466
write_to = "_version.py"
6567

66-
[project.scripts]
67-
pyroids = "pyroids.play:main"
68+
[[tool.uv.index]]
69+
name = "testpypi"
70+
url = "https://test.pypi.org/simple/"
71+
publish-url = "https://test.pypi.org/legacy/"
72+
explicit = true

0 commit comments

Comments
 (0)