Skip to content

Commit

Permalink
[Fix] Fix publish script (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Chou authored Jan 27, 2023
1 parent d638843 commit 533558d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
test:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand All @@ -20,16 +20,10 @@ jobs:
- name: Install Dependencies
run: pip install -r requirements-publish.txt

- name: init .pypirc
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = __token__" >> ~/.pypirc
echo -e "password = $PYPI_TOKEN" >> ~/.pypirc
- name: create packages
run: python setup.py sdist bdist_wheel

- name: upload to pypi
run: python -m twine upload dist/* --skip-existing
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: python -m twine upload -u __token__ -p $PYPI_TOKEN dist/* --skip-existing
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiohttp>=3.8.1
cytoolz==0.11.2
cytoolz==0.12.1
dateparser==1.0.0
ecdsa>=0.16.0
eth_keys
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiohttp>=3.8.1
cytoolz==0.11.2
cytoolz==0.12.1
dateparser==1.0.0
ecdsa>=0.16.0
eth_keys
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

REQUIREMENTS = [
'aiohttp>=3.8.1',
'cytoolz==0.11.2',
'cytoolz==0.12.1',
'dateparser==1.0.0',
'ecdsa>=0.16.0',
'eth_keys',
Expand Down

0 comments on commit 533558d

Please sign in to comment.