by servilio · 12y ago · 0 comments
For the little of npm I've seen its equivalent is pip, and package.json maybe pip's requirements files.
[1] https://packaging.python.org/en/latest/current.html [2] https://packaging.python.org/en/latest/glossary.html
So if I understand correctly, the usual workflow is to create a distribution for your source code using setuptools (python setup.py sdist) and then upload them to Pypi using (python setup.py upload) or using Twine (twine upload dist/*). The uploaded distributions can then be installed by third party users by using pip (pip install somedistname).
* You are right on the usual workflow
* I haven't used Twine so I can't comment on it
Additional things you might want to look into:
* Using ssh[2] to upload to PyPI
* Signing distributions with OpenPGP