The Python Package Index (PyPI) is the primary repository for software and libraries written in the Python programming language. As of v5.2, ProGet supports creating PyPI feeds to host and serve in-house Python software packages.
PyPI packages are installed using pip. To install a package from a ProGet feed, use the following command:
pip install {package-name}=={package-version} -i http://{proget-server}/pypi/{feed-name}/simple
To learn how to create a package that can be hosted by ProGet, visit the Packaging Python Projects tutorial.
PyPI packages are pushed to ProGet using twine. To push a package to a ProGet feed, use the following command:
twine upload --repository-url http://{proget-server}/pypi/{feed-name}/legacy <dist>
PyPI packages may be published to ProGet with cURL using the following syntax:
curl https://{proget-server}/pypi/{feed-name}/upload/<packageName-version.tar.gz> --user <user>:<password> --upload-file <packageName-version.tar.gz>
-
and _
(e.g. my-package 1.0
and my_package 1.1
) aren't properly listed under my-package
. In addition, UI-based searching does not treat _
and -
the sameIf these limitations present more than minor inconveniences, please let us know and we can consider fixing/addressing them.
Is this documentation incorrect or incomplete? Help us by contributing!
This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.