Skip to content

Commit 481bd54

Browse files
CI: release as solara-ipyantd
1 parent 433b644 commit 481bd54

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ jobs:
104104
path: test-results
105105

106106
release:
107-
if: startsWith(github.event.ref, 'refs/tags/v')
107+
# if: startsWith(github.event.ref, 'refs/tags/v')
108108
needs: [ui-test]
109109
# needs: [test, ui-test]
110110
runs-on: ubuntu-20.04
111+
permissions:
112+
id-token: write # this permission is mandatory for trusted publishing
111113
steps:
112114
- uses: actions/download-artifact@v3
113115
with:
@@ -129,17 +131,7 @@ jobs:
129131
python -m pip install --upgrade pip
130132
pip install twine wheel jupyter-packaging jupyterlab
131133
132-
- name: Publish the Python package
133-
env:
134-
TWINE_USERNAME: __token__
135-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
136-
run: twine upload --skip-existing dist/*.whl dist/*.tar.gz
137-
138-
# - name: Publish the NPM package
139-
# run: |
140-
# echo $PRE_RELEASE
141-
# if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
142-
# npm publish --tag ${TAG} --access public *.tgz
143-
# env:
144-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
145-
# PRE_RELEASE: ${{ github.event.release.prerelease }}
134+
- name: Publish package distributions to PyPI
135+
uses: pypa/gh-action-pypi-publish@release/v1
136+
with:
137+
packages-dir: dist

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The following components are wrapped (more will be coming):
2929
# Installation
3030

3131
```
32-
pip install ipyantd
32+
pip install solara-ipyantd
3333
```
3434

3535
# Dev install

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ requires = [
55
]
66
build-backend = "hatchling.build"
77

8+
[tool.hatch.build.targets.wheel]
9+
packages = ["ipyantd"]
10+
811
[project]
9-
name = "ipyantd"
12+
name = "solara-ipyantd"
1013
dynamic = ["version"]
1114
description = "React for ipywidgets that just works"
1215
readme = "README.md"

0 commit comments

Comments
 (0)