Pergunta

I Am trying to create a buildout recipe for pywhois on google code.

The site of which is here: http://code.google.com/p/pywhois/

Note: if you use easy_install pywhois it installs another package from pypi (python package index) : http://pypi.python.org/pypi/pywhois/0.1

I Am following the documentation on buildout recipe... (http://pypi.python.org/pypi/djangorecipe/1.3)

and I found out I can clone the sourcecode from here:

hg clone https://code.google.com/p/pywhois/

but I can't get it all stick together in a working buildout script... (to be honoust, this is my first buildout script trial... for all other packages I found an existing recipe and normally I try to avoid anything that's not on pypi)

i created 2 issues on their site... on of them is to use another name than in the python package index, the other one is to get their package over there.

Any buildout guru?

EDIT

(already 2 guys trying to help me, thanks!)

I used this in my buildout.conf:

extensions = 
    buildout.dumppickedversions
    mr.developer
auto-checkout = pywhois

and added to my list develop: develop = src/pywhois

and added to my egg list:

eggs =
    myproject
    pywhois

and declared the source of the repo:

[sources]
pywhois = hg https://code.google.com/p/pywhois/

and off course add to eggs: pywhois

and it's downloading it and creating an egg...

EDIT2

Whatever I do, I keep getting: Source URL for existing package 'pywhois' differs. Expected 'https://code.google.com/p/pywhois/'.";

It seems to me if the package-name of the google code package is gonna be changed, that this issue will be solved... I aleady got response on the issue tracker about this.

see http://code.google.com/p/pywhois/issues/detail?id=33

EDIT 3: Now on PyPI: python-whois

And, a brilliant quick action from the developer (Richard Penman). So the package is renamed to python-whois (he is thinking about another name, but for now this works). And he put it on pypi!

So this issue is resolved for me, but the answers of Martijn and Reinout learned me a lot more about buildout, thanks!

Foi útil?

Solução

I'd use mr.developer to grab a local checkout, and use it as a development egg:

[buildout]
extensions = mr.developer
auto-checkout = pywhois

[sources]
pywhois = hg https://code.google.com/p/pywhois/

Now mr.developer will check out pywhois into src/, run it's setup.py to make it a development egg, and tell buildout it's available as such. Now buildout will use that local copy to satisfy any pywhois requirement.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top