Ok, if I use -e option then pip freeze shows the exact commit used:

-e git+
https://github.com/stephenmcd/mezzanine.git@48776c2f5e19b780349da05f14b6527ffaa165e4#egg=Mezzanine-master

Thanks
Federico


2015-05-25 14:42 GMT+02:00 Mathias Ettinger <[email protected]>:

> You can use the -e option of pip install. Example:
> pip install -e git+
> https://github.com/stephenmcd/mezzanine.git@master#egg=Mezzanine
> pip install -e git+
> https://github.com/stephenmcd/cartridge.git@master#egg=Cartridge
>
> If you need a requirements.txt file afterwards, just use the output of pip
> freeze.
>
>
>
> Le lundi 25 mai 2015 13:07:54 UTC+2, Federico Bruni a écrit :
>>
>> Even if I install mezzanine from git repository, the requirements file
>> created by mezzanine-project will be taken from the version present in
>> project_template:
>>
>> https://github.com/stephenmcd/mezzanine/blob/081dd68c8c53893c28c6c96cca666f6db15317ca/mezzanine/project_template/requirements.txt
>>
>> that is, the last stable release.
>>
>> How can I turn this:
>>
>> $ cat requirements.txt
>> Mezzanine==3.1.10
>>
>> into a git version?
>> I need it also for deploying.
>>
>> I've read this page
>> https://pip.pypa.io/en/stable/user_guide.html#requirements-files
>> and I tried several variants of this:
>>
>> Mezzanine==git+
>> https://github.com/stephenmcd/mezzanine@master#egg=mezzanine
>>
>> but nothing works and I get this error:
>>
>> File
>> "/home/fede/.virtualenvs/mezzanine/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py",
>> line 2880, in scan_list
>>     raise ValueError(msg, line, "at", line[p:])
>> ValueError: ("Expected ',' or end-of-list in", 'Mezzanine==git+
>> https://github.com/stephenmcd/mezzanine@master#egg=mezzanine', 'at', '://
>> github.com/stephenmcd/mezzanine@master#egg=mezzanine')
>>
>>
>> Thanks in advance
>> Federico
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/Av5nZzD4bLw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to