- Go to Package file where
setup.py
file exist.
cd datascienv
- Generate the wheel file and dist env.
python setup.py sdist bdist_wheel
- Once
dist/*
folder generated successfully. Time to upload with twine
twine upload dist/*
- Your package uploaded successfully.
- When you want to update the package must update version in
setup.py
file.
- update package on
pypi
.
- For build package again follow the step 2 and then use below command to upload packages.
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --skip-existing