File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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/
Original file line number Diff line number Diff line change 55
66setuptools .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" ,
You can’t perform that action at this time.
0 commit comments