File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed
Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,10 @@ jobs:
5959 draft : true
6060 prerelease : ${{ contains(github.ref, 'rc') }}
6161
62- - name : Build sdist, wheel, and pex
63- run : >
62+ - name : Build sdist and wheel
63+ run : |
6464 mkdir -p dist
65- && uv export --extra codegen --no-dev --format requirements-txt --output-file dist/requirements.txt --no-hashes
66- && uv build
67- && uv run pex . --scie eager -o dist/asyncapi-python-codegen.pex -e asyncapi_python_codegen:app -r dist/requirements.txt
65+ uv build
6866
6967 - name : Upload wheel to Release
7068 uses : actions/upload-release-asset@v1
8684 asset_name : asyncapi_python-${{ env.PROJECT_VERSION }}.tar.gz
8785 asset_content_type : application/gzip
8886
89- - name : Upload sdist to Release
90- uses : actions/upload-release-asset@v1
91- env :
92- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93- with :
94- upload_url : ${{ steps.create_release.outputs.upload_url }}
95- asset_path : ./dist/asyncapi-python-codegen
96- asset_name : asyncapi-python-codegen-${{ env.PROJECT_VERSION }}.pex
97- asset_content_type : application/octet-stream
9887
99- - name : Cleanup dist folder before PyPI publish
100- run : |
101- rm dist/asyncapi-python-codegen*
102- rm dist/requirements.txt
10388
10489 - name : Publish to PyPI
10590 uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ dev-dependencies = [
3131 " types-pytz" ,
3232 " pytest-asyncio" ,
3333 " pytest-timeout" ,
34- " pex" ,
3534 " pyright>=1.1.405" ,
3635]
3736
You can’t perform that action at this time.
0 commit comments