From 423c68bc1e81ccd67448a46a45a31ba0e528b794 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Sat, 3 Dec 2022 15:58:02 +0800 Subject: [PATCH] chore: upload to PyPI --- .github/workflows/release.yml | 7 +++---- .gitignore | 2 ++ README.md | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ce936a..6d876d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,6 @@ jobs: python -m pip install dist/*.whl fix-future-annotations tests/samples/from_import.py || true - # - name: Upload to Pypi - # run: | - # pip install twine - # twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/* + - name: Upload to Pypi + run: | + twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/* diff --git a/.gitignore b/.gitignore index d909cff..6948ae5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .pdm.toml __pycache__/ +dist/ +build/ diff --git a/README.md b/README.md index dcc37e1..95009f5 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ repos: ## Use as command line tool ```bash -python3 -m pip install git+https://github.com/frostming/fix-future-annotations.git +python3 -m pip install -U fix-future-annotations fix-future-annotations my_script.py ```