Skip to content

Commit 949f50d

Browse files
committed
fix: add publish doc and fix pypi repository-url
1 parent 3d946ad commit 949f50d

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Publish to PyPI
3737
uses: pypa/gh-action-pypi-publish@v1.8.14
3838
with:
39-
repository-url: https://test.pypi.org/legacy/
39+
repository-url: https://upload.pypi.org/legacy/
4040
packages-dir: dist/
4141
password: ${{ secrets.PYPI_API_TOKEN }}
4242

publish.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1-
# Run cmd
1+
# Publish
22

3-
- `python3 setup.py sdist bdist_wheel`
3+
- `python3 setup.py sdist bdist_wheel` (if you not have setuptools and wheel, run `pip3 install setuptools wheel`)
44

55
- `twine upload dist/*` (if you not have twine, run `pip3 install twine`)
66

77
- input the your API token in cmd, if you not have a api token
8+
9+
## Run the script manually
10+
11+
`python3 update_version.py; git add -A; git commit -m"update version name"; git push; python3 setup.py sdist bdist_wheel; twine upload dist/*`
12+
13+
## Use github action
14+
15+
This action supports PyPI's [trusted publishing]
16+
implementation, which allows authentication to PyPI without a manually
17+
configured API token or username/password combination. To perform
18+
[trusted publishing] with this action, your project's
19+
publisher must already be [configured on PyPI].
20+
21+
[trusted publishing]: https://docs.pypi.org/trusted-publishers/
22+
[configured on PyPI]: https://docs.pypi.org/trusted-publishers/adding-a-publisher/

setup.py

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

66
setuptools.setup(
77
name="parse_llm_code",
8-
version="0.1.22",
8+
version="0.1.23",
99
author="aboutmydreams",
1010
author_email="aboutmydreams@163.com",
1111
description="a lib to parse llm answer to code",

0 commit comments

Comments
 (0)