Mezzanine master version in requirements.txt

49 views
Skip to first unread message

Federico Bruni

unread,
May 25, 2015, 7:07:54 AM5/25/15
to mezzani...@googlegroups.com
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

Mathias Ettinger

unread,
May 25, 2015, 8:42:30 AM5/25/15
to mezzani...@googlegroups.com
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.

Federico Bruni

unread,
May 25, 2015, 10:31:06 AM5/25/15
to mezzani...@googlegroups.com
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


--
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 mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages