Hello All !
This is the Second release of my python package. Basically this is like a boilerplate for creating your own python package.
--> Basically, Nothing :P , You can clone this repo and simply edit it and publish it to either test PyPi or Live PyPi.
earthworm.sayHello("Shubham")
Output is
Hello there Shubham !
earthworm.sayHi("Shubham")
Output is
Hi there Shubham !
earthworm.sayPipPip("Shubham")
Output is
PipPip Shubham !
-> 1] Make account on [https://test.pypi.org] and [https://pypi.org]
-> 2] Create a file in your $HOME with name .pypirc
with the following.
[distutils] index-servers= pypi testpypi
[pypi] username: <YOUR_USERNAME> password: <YOUR_PASSWORD>
[testpypi] repository: https://test.pypi.org/legacy/ username: <YOUR_USERNAME> password: <YOUR_PASSWORD>
sudo python3 -m pip install --user --upgrade setuptools wheel
sudo python -m pip install --user --upgrade setuptools wheel
sudo python3 setup.py sdist bdist_wheel
This will generate a dist/
folder for uploading to test pypi
or pypi
.
sudo python3 -m pip install --user --upgrade twine
Twine helps you upload your packages to test pypi
and pypi
very easily.
For test pypi
sudo python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
For PyPi
sudo python3 -m twine upload dist/*
-> The same way you uploaded the package. First Make version change in setup.py
and increment the version.
e.g. 0.0.1 -> 0.0.2
After that, repeat step 4 and 6 to generate dist/
and reupload newer version of your package.