Overview
Python registry features:- PyPI-compatible repository protocol
- Support for wheel (
.whl) and source distributions (.tar.gz) - Folder uploads for multiple distribution files
- Version management
- Integration with pip, poetry, and other Python package managers
Pushing Python packages
Use thehc artifact push python command:
Supported formats
- Wheel (.whl)
- Source (.tar.gz)
- Folder
Binary distribution format:
Building Python packages
Installing Python packages
Configure pip to use your Harness registry:Using pip configuration
Create or edit~/.pip/pip.conf (Linux/macOS) or %APPDATA%\pip\pip.ini (Windows):
Using environment variables
Per-command authentication
Examples
Using Poetry
Configure Poetry to use your Harness registry:Package naming conventions
Python package filenames follow strict conventions:Wheel format
mypackage-1.0.0-py3-none-any.whl
Source distribution format
mypackage-1.0.0.tar.gz
CI/CD integration
- GitHub Actions
- GitLab CI
Troubleshooting
Unsupported file type
Unsupported file type
Only
.whl and .tar.gz files are supported:Package name extraction failed
Package name extraction failed
Ensure your wheel/sdist follows Python naming conventions:
Authentication failed during pip install
Authentication failed during pip install
Check your index URL includes credentials: