Skip to content

Commit 90234e3

Browse files
authored
Build py distributions in different directory to JS distributions (#1061)
1 parent ae5a055 commit 90234e3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545
token: ${{ secrets.NPM_TOKEN }}
4646

4747
- name: Publish to PyPI
48-
uses: pypa/gh-action-pypi-publish@v1.4.2
48+
uses: pypa/gh-action-pypi-publish@v1.12.3
4949
with:
5050
password: ${{ secrets.PYPI_API_TOKEN }}
51+
packages-dir: py-dist/
5152

5253
- name: Commit updated package-lock.json and docs requirements
5354
uses: stefanzweifel/git-auto-commit-action@v4
@@ -114,9 +115,10 @@ jobs:
114115
token: ${{ secrets.NPM_TOKEN }}
115116

116117
- name: Publish to PyPI
117-
uses: pypa/gh-action-pypi-publish@v1.4.2
118+
uses: pypa/gh-action-pypi-publish@v1.12.3
118119
with:
119120
password: ${{ secrets.PYPI_API_TOKEN }}
121+
packages-dir: py-dist/
120122

121123
- name: Commit updated package-lock.json
122124
uses: stefanzweifel/git-auto-commit-action@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dash_bootstrap_components/_components/
1616
__pycache__
1717
*.pyc
1818
dist
19+
py-dist
1920
*.egg-info
2021

2122
# release artifacts

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ test-js:
4141

4242
# Delete generated files and recreate empty directories
4343
clean:
44-
rm -rf dist lib dash_bootstrap_components/_components
45-
mkdir -p dist lib dash_bootstrap_components/_components
44+
rm -rf py-dist dist lib dash_bootstrap_components/_components
45+
mkdir -p py-dist dist lib dash_bootstrap_components/_components
4646

4747
# Build dash-bootstrap-components
4848
build: clean && _build-py
@@ -79,7 +79,7 @@ deploy-docs: _copy-examples
7979
_build-py: && _move-generated-files
8080
uv run dash-generate-components ./src/components dash_bootstrap_components
8181
cp dash_bootstrap_components/_components/dash_bootstrap_components.min.js dist
82-
uv build --sdist --wheel
82+
uv build --sdist --wheel -o py-dist
8383

8484
_copy-examples:
8585
cp examples/gallery/iris-kmeans/app.py docs/examples/vendor/iris.py

0 commit comments

Comments
 (0)