Skip to content

Commit 0e0f094

Browse files
make publish
1 parent ec1f239 commit 0e0f094

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
3131
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3232
PYPI_TEST_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }}
33-
34-
run: make publish
33+
run: |
34+
make publish -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -e PYPI_TEST_PASSWORD=$PYPI_TEST_PASSWORD

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ We use [`twine`](https://twine.readthedocs.io/en/stable/) to make our life easie
5757
export PYPI_USERNAME="you_username"
5858
export PYPI_PASSWORD="your_password"
5959
export PYPI_TEST_PASSWORD="your_password_for_test_pypi"
60-
make publish
60+
make publish -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -e PYPI_TEST_PASSWORD=$PYPI_TEST_PASSWORD
6161
```
6262

6363
You can also use token for auth, see [pypi doc](https://pypi.org/help/#apitoken). In that case,
@@ -66,7 +66,7 @@ You can also use token for auth, see [pypi doc](https://pypi.org/help/#apitoken)
6666
export PYPI_USERNAME="__token__"
6767
export PYPI_PASSWORD="your_token"
6868
export PYPI_TEST_PASSWORD="your_token_for_test_pypi"
69-
make publish
69+
make publish -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -e PYPI_TEST_PASSWORD=$PYPI_TEST_PASSWORD
7070
```
7171

7272
**Note**: We will try to push to [test pypi](https://test.pypi.org/) before pushing to pypi, to assert everything will work

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
content = f.read()
77
# from https://www.py4u.net/discuss/139845
88
version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content).group(1)
9-
9+
1010
with open("README.md", "r") as fh:
1111
long_description = fh.read()
1212

1313
setuptools.setup(
14-
name="template-python-zuppif",
14+
name="template-python-zuppif#1",
1515
version=version,
1616
author="zuppif",
1717
author_email="[email protected]",

0 commit comments

Comments
 (0)