DEV Community

Discussion on: How to create a PIP package hosted on private Github repo

Collapse
 
matitotias profile image
Matias Galleguillos

Great post Raphael! This was really helpful, did you ever discover a way to publish different versions of the package? So some apps can keep downloading older versions if you make big changes

Collapse
 
rf_schubert profile image
Raphael Schubert

Sorry for the giant delay! The pip package has this for default. You will just need to something like: pip install myawesomepackage==1.0.1 where the version should be the exact version that you need, even if is old.

Collapse
 
karfau profile image
Christian Bewernitz

But are you aware of combining the approach that you describe (using git URL) with setting a fixed version? I would hope that it works using git tags. Would be nice if anybody has tried this can report here :)