Description
Note that the django-stubs project has @ symbols in tag names: https://github.com/typeddjango/django-stubs/tags e.g. django-stubs-ext@0.5.0, django-stubs@1.12.0
If I want to install from a git tag, I have to separate it with the @ symbol from the repository URL. So I assume it should look like:
pip install git+https://github.com/typeddjango/django-stubs.git@django-stubs@1.12.0
But it breaks the URL at the wrong place:
Collecting git+https://github.com/typeddjango/django-stubs.git@django-stubs@1.12.0
Cloning https://github.com/typeddjango/django-stubs.git@django-stubs (to revision 1.12.0) to /private/var/folders/fh/jwxwnc6132b3hb96lgpcyg_c0000gp/T/pip-req-build-01egdhgm
Running command git clone --filter=blob:none --quiet https://github.com/typeddjango/django-stubs.git@django-stubs /private/var/folders/fh/jwxwnc6132b3hb96lgpcyg_c0000gp/T/pip-req-build-01egdhgm
fatal: unable to access 'https://github.com/typeddjango/django-stubs.git@django-stubs/': The requested URL returned error: 400
Using URL-encoded escaping django-stubs@1.12.0 -> django-stubs%401.12.0 is apparently not supported either.
Workaround
Thankfully there is a simple workaround, I can install with the git commit hash instead git+https://github.com/typeddjango/django-stubs.git@d6a9a4ef03b589cf82954bf229b920102a16e3d2
Expected behavior
No response
pip version
22.2.2
Python version
3.10.6
OS
macOS
How to Reproduce
pip install git+https://github.com/typeddjango/django-stubs.git@django-stubs@1.12.0
pip install git+https://github.com/typeddjango/django-stubs.git@django-stubs%401.12.0
Output
No response
Code of Conduct
Description
Note that the django-stubs project has
@symbols in tag names: https://github.com/typeddjango/django-stubs/tags e.g.django-stubs-ext@0.5.0,django-stubs@1.12.0If I want to install from a git tag, I have to separate it with the
@symbol from the repository URL. So I assume it should look like:But it breaks the URL at the wrong place:
Using URL-encoded escaping
django-stubs@1.12.0->django-stubs%401.12.0is apparently not supported either.Workaround
Thankfully there is a simple workaround, I can install with the git commit hash instead
git+https://github.com/typeddjango/django-stubs.git@d6a9a4ef03b589cf82954bf229b920102a16e3d2Expected behavior
No response
pip version
22.2.2
Python version
3.10.6
OS
macOS
How to Reproduce
Output
No response
Code of Conduct