developing a package and two packages it depends on
Hi All, I have a package that has a setup.py containing the following: setup( name='xlutils', ... install_requires=[ 'xlrd', 'xlwt', ], ) I'm using buildout to setup and development and testing environment for this project so I have a buildout.cfg containing the following: [buildout] develop = . parts = test py [py] recipe = zc.recipe.egg eggs = xlutils interpreter = py [test] recipe = zc.recipe.testrunner eggs = xlutils How can I get the above to use a checkout of xlrd and xlwt's trunk? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Wed, Oct 15, 2008 at 02:05:07PM +0100, Chris Withers wrote:
I have a package that has a setup.py containing the following:
setup( name='xlutils', ... install_requires=[ 'xlrd', 'xlwt', ], )
I'm using buildout to setup and development and testing environment for this project so I have a buildout.cfg containing the following:
[buildout] develop = . parts = test py
[py] recipe = zc.recipe.egg eggs = xlutils interpreter = py
[test] recipe = zc.recipe.testrunner eggs = xlutils
How can I get the above to use a checkout of xlrd and xlwt's trunk?
Use svn:externals to check them out inside your tree, then include those directories in the 'develop' line in buildout.cfg. (And if you want your users, i.e., people who easy_install xlutils from PyPI, to get trunk checkouts from xlrd and xlwt, then you want the wrong thing and should reconsider.) Marius Gedminas -- We don't really understand it, so we'll give it to the programmers.
Marius Gedminas wrote:
Use svn:externals to check them out inside your tree, then include those directories in the 'develop' line in buildout.cfg.
Okay, but how then do I check the library works with the released versions of the xlrd and xlwt packages? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Wed, Oct 15, 2008 at 5:45 PM, Chris Withers <chris@simplistix.co.uk> wrote:
Marius Gedminas wrote:
Use svn:externals to check them out inside your tree, then include those directories in the 'develop' line in buildout.cfg.
Okay, but how then do I check the library works with the released versions of the xlrd and xlwt packages?
it's a development and release process matter. Most people have two .cfg files : - one for development (dev.cfg) - one for production (prod.cfg) where you don't leave any develop option of course. You can also have another cfg for your developments, that points to the released versions of the third party packages if needed in your development process. And all those cfg extends buildout.cfg. Regards
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
participants (3)
-
Chris Withers -
Marius Gedminas -
Tarek Ziadé