Skip to content

Commit 76dce99

Browse files
authored
Merge pull request #122 from gulfofmaine/post-release-cleanup
No WASM for PyPI
2 parents 465e765 + 83285ec commit 76dce99

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/python.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,37 @@ jobs:
155155
path: dist
156156
merge-multiple: true
157157

158+
- name: Remove unsupported pyodide wheel
159+
working-directory: .
160+
run: rm -f dist/*pyodide_2024_0_wasm32*.whl
161+
158162
- uses: pypa/gh-action-pypi-publish@release/v1
159163
# To test uploads to TestPyPI, uncomment the following:
160164
# with:
161165
# repository-url: https://test.pypi.org/legacy/
166+
167+
upload_testpypi:
168+
needs: [test, build_wheels, build_sdist]
169+
runs-on: ubuntu-latest
170+
# environment: pypi
171+
permissions:
172+
id-token: write
173+
# if: github.event_name == 'release' && github.event.action == 'published'
174+
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
175+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
176+
steps:
177+
- uses: actions/download-artifact@v7
178+
with:
179+
# unpacks all CIBW artifacts into dist/
180+
pattern: cibw-*
181+
path: dist
182+
merge-multiple: true
183+
184+
- name: Remove unsupported pyodide wheel
185+
working-directory: .
186+
run: rm -f dist/*pyodide_2024_0_wasm32*.whl
187+
188+
- uses: pypa/gh-action-pypi-publish@release/v1
189+
# To test uploads to TestPyPI, uncomment the following:
190+
with:
191+
repository-url: https://test.pypi.org/legacy/

py/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ classifiers = [
1111
"Programming Language :: Python :: Implementation :: PyPy",
1212
]
1313
dynamic = ["version"]
14+
readme = "Readme.md"
15+
description = "Programmatically augmenting CF Standards with operational knowledge."
16+
license = "Apache-2.0"
1417

1518
[dependency-groups]
1619
dev = [
@@ -21,7 +24,7 @@ dev = [
2124
features = ["pyo3/extension-module"]
2225
module-name = "standard_knowledge._standard_knowledge_py"
2326
python-source = "python"
24-
exclude = ["README.md"]
27+
exclude = ["Readme.md"]
2528

2629

2730
[tool.uv]

0 commit comments

Comments
 (0)