pyg
pyg copied to clipboard
Allow `dev` version
For example:
$ pyg install pkgtools==dev
Do you already know how is it going to be implemented ?
I actually have no idea. :) But we can add an attribute or something to our Requirement and then retrieve specific files from PyPI. Another way would be to rely on pkg_resources.Requirement.parse for the parsing.
I think for now we can rely on our web.get_links, in the future we can implement our own finder.
I uploaded a test package to PyPI: pyg_test_dev. You can try to install it with the following command:
$ pyg install pyg_test_dev==dev
It should work. I also tried with sphinx==dev but it raises some strange errors:
$ pyg i sphinx==dev
Looking for sphinx releases on PyPI
Looking for packages at http://pypi.python.org/simple
Error: An error occurred during the installation of sphinx==dev: Error: Cannot find files available for dowloading and installing
Removing broken files...
Unknown error occurred: (Sphinx 1.1predev-20110718 (/home/miki/env/lib/python2.7/site-packages/Sphinx-1.1predev_20110718-py2.7.egg), Requirement.parse('sphinx==dev'))