Skip to content

Commit 533558d

Browse files
author
Brendan Chou
authored
[Fix] Fix publish script (#191)
1 parent d638843 commit 533558d

4 files changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
jobs:
9-
test:
9+
publish:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out repository code
@@ -20,16 +20,10 @@ jobs:
2020
- name: Install Dependencies
2121
run: pip install -r requirements-publish.txt
2222

23-
- name: init .pypirc
24-
env:
25-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
26-
run: |
27-
echo -e "[pypi]" >> ~/.pypirc
28-
echo -e "username = __token__" >> ~/.pypirc
29-
echo -e "password = $PYPI_TOKEN" >> ~/.pypirc
30-
3123
- name: create packages
3224
run: python setup.py sdist bdist_wheel
3325

3426
- name: upload to pypi
35-
run: python -m twine upload dist/* --skip-existing
27+
env:
28+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
29+
run: python -m twine upload -u __token__ -p $PYPI_TOKEN dist/* --skip-existing

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohttp>=3.8.1
2-
cytoolz==0.11.2
2+
cytoolz==0.12.1
33
dateparser==1.0.0
44
ecdsa>=0.16.0
55
eth_keys

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohttp>=3.8.1
2-
cytoolz==0.11.2
2+
cytoolz==0.12.1
33
dateparser==1.0.0
44
ecdsa>=0.16.0
55
eth_keys

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
REQUIREMENTS = [
66
'aiohttp>=3.8.1',
7-
'cytoolz==0.11.2',
7+
'cytoolz==0.12.1',
88
'dateparser==1.0.0',
99
'ecdsa>=0.16.0',
1010
'eth_keys',

0 commit comments

Comments
 (0)