Skip to content

Commit cfe85bd

Browse files
committed
Change package name for test.pypi
1 parent 7232a25 commit cfe85bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
run: |
3131
uv sync --extra dev
3232
33+
- name: Modify package name for test release
34+
run: |
35+
# Create a temporary pyproject.toml with modified name
36+
sed 's/name = "temp-mail"/name = "temp-mail-io"/' pyproject.toml > pyproject.toml.tmp
37+
mv pyproject.toml.tmp pyproject.toml
38+
3339
- name: Build package
3440
run: |
3541
uv build
@@ -53,6 +59,6 @@ jobs:
5359
- name: Test installation from TestPyPI
5460
run: |
5561
sleep 30 # Wait for package to be available
56-
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ temp-mail
62+
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ temp-mail-io
5763
python -c "import tempmail; print('✓ Package installed successfully from TestPyPI')"
5864
python -c "from tempmail import TempMailClient; print('✓ TempMailClient imports successfully')"

0 commit comments

Comments
 (0)