teemtee / tmt

Test Management Tool
MIT License
76 stars 112 forks source link

Allow pip install from git-archive #2879

Closed LecrisUT closed 3 weeks ago

LecrisUT commented 3 weeks ago

This would be helpful for homebrew packaging if their automation doesn't work with PyPI

martinhoyer commented 3 weeks ago

I have no experience with homebrew packaging, but can't they just do something like pip install git+https://github.com/teemtee/tmt.git#egg=tmt?

LecrisUT commented 3 weeks ago

I am not sure about git+https://, depends if the .git folder is maintained, which might depend if -e is passed. But either way this would fix it for any users who want to pip install via a git archive. I've also removed the ref-names that would have been problematic.

lukaszachy commented 3 weeks ago

What this PR add to the currently possible pip install git+https://github.com/teemtee/tmt.git? Please excuse my lack of knowledge of install options

LecrisUT commented 3 weeks ago

Basically it allow to use git-archive sources, e.g.: pip install https://github.com/teemtee/tmt/archive/refs/tags/1.32.2.tar.gz. It doesn't seem crucial for homebrew as I managed to get it working with PyPI and I see other packages there with such sources, so their automation might work. But who knows what distro would prefer git repo source over PyPI.

lukaszachy commented 3 weeks ago

Thanks, no objections then.

psss commented 3 weeks ago

/packit build