Skip to content

Commit

Permalink
Update release action to use flit instead of twine (#18)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #18

Test Plan: neat

Reviewed By: amyreese

Differential Revision: D51767809

Pulled By: fried

fbshipit-source-id: b1dc2188286cd0b3ffff18433eb787ff40d25f6b
  • Loading branch information
amyreese authored and facebook-github-bot committed Dec 1, 2023
1 parent f46a277 commit 7a9935d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Install project
run: |
python -m pip install -e ".[dev]"
- name: Build and publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
FLIT_USERNAME: "__token__"
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --verbose -u '__token__' dist/*
python -m flit publish
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies = [
dev = [
"async-timeout==4.0.3",
"coverage==4.5.4",
"flit==3.9.0",
]

[project.urls]
Expand Down

0 comments on commit 7a9935d

Please sign in to comment.