Publish to PYPI
go to site: [https://pypi.org]
- Create Your Account
- Go to Account Setting and scroll down you will see Add API token
- Just remember token name should be same as setup.py name. Now from scope select Entire account (all project)
- click on create token
- Now on your code editor terminal write:
nano ./pypirc
After that write:
[distutils] index-servers = pypi [pypi] username = __token__ password = "paste created token"
now save it ctrl+o and press enter.
exit ctrl+x.
-
Now on terminal run.
twine upload dist/datatoinfinity_hello_package-0.2-py3-none-any.whl --verbose
Now on pypi site go to menu and click on you project you will see it.
If any error occur please let me know. It would be helpful for me also.
Top comments (0)