Skip to content

Commit 0d46004

Browse files
committed
Correct naming to follow PEP503 normalization.
1 parent f8d671a commit 0d46004

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
package:
19+
# As per PEP 503 normalization, these names should all be (a) lower case, and
20+
# (b) use underscores. See https://github.com/pypa/packaging.python.org/pull/1032
1921
- "toga"
2022
- "toga_android"
2123
- "toga_cocoa"
@@ -25,7 +27,7 @@ jobs:
2527
- "toga_gtk"
2628
- "toga_positron"
2729
- "toga_textual"
28-
- "toga_iOS"
30+
- "toga_ios"
2931
- "toga_web"
3032
- "toga_winforms"
3133
- "travertino"
@@ -41,7 +43,7 @@ jobs:
4143
- name: Extract ${{ matrix.package }}
4244
run: |
4345
mkdir dist
44-
mv packages/$(echo ${{ matrix.package }} | sed 's/_/?/')-[0-9]* dist
46+
mv packages/${{ matrix.package }}-[0-9]* dist
4547
4648
- name: Publish to PyPI
4749
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ jobs:
5959
fail-fast: false
6060
matrix:
6161
package:
62+
# As per PEP 503 normalization, these names should all be (a) lower case, and
63+
# (b) use underscores. See https://github.com/pypa/packaging.python.org/pull/1032
6264
- "toga"
6365
- "toga_android"
6466
- "toga_cocoa"
6567
- "toga_core"
6668
- "toga_demo"
6769
- "toga_dummy"
6870
- "toga_gtk"
69-
- "toga_iOS"
71+
- "toga_ios"
7072
- "toga_positron"
7173
- "toga_textual"
7274
- "toga_web"
@@ -83,7 +85,7 @@ jobs:
8385
- name: Extract ${{ matrix.package }}
8486
run: |
8587
mkdir dist
86-
mv staging_dist/$(echo ${{ matrix.package }} | sed 's/_/?/')-[0-9]* dist
88+
mv staging_dist/${{ matrix.package }}-[0-9]* dist
8789
8890
- name: Publish to TestPyPI
8991
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)