Skip to content

Commit d85be8e

Browse files
committed
Update for testpypi release
1 parent b481e84 commit d85be8e

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
build-and-deploy:
6363
runs-on: ubuntu-latest
6464
needs: [release, ts-tests, pre-commit-checks, e2e-tests]
65+
environment: release
6566
env:
6667
VERSION: ${{ needs.release.outputs.version }}
6768
permissions:
@@ -104,11 +105,11 @@ jobs:
104105
- name: Verify build artifacts
105106
run: |
106107
ls -la dist/
107-
if [ ! -f "dist/streamlit_pivot_table-$VERSION-py3-none-any.whl" ]; then
108+
if [ ! -f "dist/streamlit_pivot-$VERSION-py3-none-any.whl" ]; then
108109
echo "Expected wheel file not found"
109110
exit 1
110111
fi
111-
if [ ! -f "dist/streamlit_pivot_table-$VERSION.tar.gz" ]; then
112+
if [ ! -f "dist/streamlit_pivot-$VERSION.tar.gz" ]; then
112113
echo "Expected source distribution not found"
113114
exit 1
114115
fi
@@ -121,9 +122,10 @@ jobs:
121122
path: dist/
122123
retention-days: 30
123124

124-
- name: Publish to PyPI
125+
- name: Publish to TestPyPI
125126
uses: pypa/gh-action-pypi-publish@release/v1
126127
with:
128+
repository-url: https://test.pypi.org/legacy/
127129
packages-dir: dist/
128130
verbose: true
129131

@@ -146,10 +148,10 @@ jobs:
146148
if: success()
147149
env:
148150
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
149-
PYPI_URL: "https://pypi.org/project/streamlit-pivot-table/${{ needs.release.outputs.version }}/"
151+
PYPI_URL: "https://test.pypi.org/project/streamlit-pivot/${{ needs.release.outputs.version }}/"
150152
run: |
151153
curl -X POST -H 'Content-type: application/json' \
152-
--data "{\"text\": \"streamlit-pivot-table v$VERSION has been released! PyPI: $PYPI_URL\"}" \
154+
--data "{\"text\": \"streamlit-pivot v$VERSION has been released to TestPyPI! $PYPI_URL\"}" \
153155
$SLACK_WEBHOOK
154156
155157
- name: Send Slack notification (failure)
@@ -158,12 +160,12 @@ jobs:
158160
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
159161
run: |
160162
curl -X POST -H 'Content-type: application/json' \
161-
--data "{\"text\": \"streamlit-pivot-table v$VERSION release failed! Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \
163+
--data "{\"text\": \"streamlit-pivot v$VERSION release failed! Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \
162164
$SLACK_WEBHOOK
163165
164166
- name: Release summary
165167
if: success()
166168
run: |
167169
echo "Release v$VERSION completed successfully!"
168-
echo "PyPI: https://pypi.org/project/streamlit-pivot-table/$VERSION/"
170+
echo "TestPyPI: https://test.pypi.org/project/streamlit-pivot/$VERSION/"
169171
echo "GitHub: https://github.com/${{ github.repository }}/releases/tag/v$VERSION"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requires = ["setuptools>=61", "wheel"]
1717
build-backend = "setuptools.build_meta"
1818

1919
[project]
20-
name = "streamlit-pivot-table"
20+
name = "streamlit-pivot"
2121
version = "0.1.0"
2222
description = "BI-focused pivot table component for Streamlit"
2323
readme = "README.md"

streamlit_pivot_table/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class PivotTableResult(TypedDict, total=False):
367367
# [[tool.streamlit.component.components]] name = ... -> component.name
368368
# See component_manifest_handler.py line 65 for the join logic.
369369
_component = st.components.v2.component(
370-
"streamlit-pivot-table.streamlit_pivot_table",
370+
"streamlit-pivot.streamlit_pivot_table",
371371
js="index-*.js",
372372
css="index-*.css",
373373
html='<div class="react-root"></div>',

streamlit_pivot_table/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# In-package CCv2 manifest, discovered by Streamlit's manifest scanner at
22
# runtime. The fully-qualified component registration key is constructed as:
3-
# "<project.name>.<component.name>" -> "streamlit-pivot-table.streamlit_pivot_table"
3+
# "<project.name>.<component.name>" -> "streamlit-pivot.streamlit_pivot_table"
44
# The Python wrapper must use this exact key in st.components.v2.component().
55
[project]
6-
name = "streamlit-pivot-table"
6+
name = "streamlit-pivot"
77
version = "0.1.0"
88

99
[[tool.streamlit.component.components]]

0 commit comments

Comments
 (0)