On 22 Dec 17:10, Cédric Krier wrote:
> On 22 Dec 15:24, Code Review - New issues: ced wrote:
> > issue3436
> > issue1891
> > 
> > URL: http://codereview.tryton.org/2441002/
> 
> This is a WIP to allow to install dev version via PyPI.
> I will have to test it on PyPI by publishing this 2 dev packages.

I made some tests today. Here are the results.

The publication of dev release on PyPI using external links to mercurial
works but is very complicate. I have to activate on PyPI an options to
expose all the urls scraped from the homepage and download url which is
considered as slow and not preferred.
Once this is done, to install a dev package you have to use this command
on a recent pip:

    $ pip install --pre --allow-all-external --allow-unverified trytond trytond

The main issue here is that we have to provide the name of the packages
that should not be verified. This prevents to have an automatic way to
install a developpement version without knowing in advance all the
trytond_* dependencies.

So finally, I found a quite simple way to deal with this. It is to not
publish on PyPI (prevent bad behavior with old version of pip) but to
provide a web page on tryton.org which will contains the development
version links for all Tryton packages. So the installation will be:

    $ pip install (--pre) --find-links http://dev.tryton.org/ trytond

Rem: find-links can be set in pip configuration file

The page should look like this:

    <html>
        <a 
href="hg+http://hg.tryton.org/trytond#egg=trytond-3.1.dev0";>trytond-3.1.dev0</a>
        <a 
href="hg+http://hg.tryton.org/3.0/trytond#egg=trytond-3.0.3.dev0";>trytond-3.1.3.dev0</a>
        …
    </html>

I'm thinking about writing a small python web app to generate this page by
looking at the repositories tags etc.


PS: the dev packages published on PyPI have been removed.
-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgp77aaPpnum7.pgp
Description: PGP signature

Reply via email to