Re: Code Management

2007-12-07 Thread Marc Christiansen
BlueBird <[EMAIL PROTECTED]> wrote: > On Dec 2, 4:27 pm, BlueBird <[EMAIL PROTECTED]> wrote: >> On Nov 26, 5:07 pm, "Sergio Correia" <[EMAIL PROTECTED]> wrote: >> >> >Bluebird: >> >> > If you are using python 2.5, relative imports are no longer an >> > issue:http://docs.python.org/whatsnew/pep-328.

Re: Code Management

2007-12-07 Thread BlueBird
On Dec 2, 4:27 pm, BlueBird <[EMAIL PROTECTED]> wrote: > On Nov 26, 5:07 pm, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > > >Bluebird: > > > If you are using python 2.5, relative imports are no longer an > > issue:http://docs.python.org/whatsnew/pep-328.html > > It does not solve my problem, or I

Re: Code Management

2007-12-02 Thread BlueBird
On Nov 26, 5:07 pm, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > Bluebird: > > If you are using python 2.5, relative imports are no longer an > issue:http://docs.python.org/whatsnew/pep-328.html It does not solve my problem, or I missed something: [EMAIL PROTECTED] /cygdrive/d/work/work/vy-dev/f

Re: Code Management

2007-11-28 Thread misc
On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > > 1) Should I put my unittests in a subdirectory? Does the subdirectory > have to be a package? As others have suggested, this is a good way to organise your tests. To avoid problems with the import path, look at nosetests [1]. This allows you

Re: Code Management

2007-11-26 Thread Sergio Correia
Bluebird: If you are using python 2.5, relative imports are no longer an issue: http://docs.python.org/whatsnew/pep-328.html That problem solved, what you sometimes want is to change the version of your package. I just change the text in the PTH file, to point to another version, and voilá (no ne

Re: Code Management

2007-11-25 Thread A.T.Hofkamp
On 2007-11-24, BlueBird <[EMAIL PROTECTED]> wrote: > On Nov 21, 7:05 am, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > And then you do your development in python-dev. But how do you manage > multiple development branches of the same program ? If you are using SVN, you may want to check out 'combi

Re: Code Management

2007-11-24 Thread BlueBird
On Nov 21, 7:05 am, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > As a side note, I find much easier to drop a PTH file than messing > with pythonpath. If you are not familiar with PTH files, what I do is > this > > 1) Go to "C:\Program Files\Python25\Lib\site-packages" or whatever is > appropiate

Re: Code Management

2007-11-21 Thread Jens
On 21 Nov., 05:34, Ben Finney <[EMAIL PROTECTED]> wrote: > > I hope the above makes it clearer what I prefer for this situation. > It does. You've been most helpful - thanks a lot! I'll bookmark this thread and keep it under my pillow :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Code Management

2007-11-20 Thread Sergio Correia
As a side note, I find much easier to drop a PTH file than messing with pythonpath. If you are not familiar with PTH files, what I do is this 1) Go to "C:\Program Files\Python25\Lib\site-packages" or whatever is appropiate in your case. 2) Create a text file, name it something like "MyProjects.PTH

Re: Code Management

2007-11-20 Thread Ben Finney
Jens <[EMAIL PROTECTED]> writes: > On 21 Nov., 04:16, Jens <[EMAIL PROTECTED]> wrote: > > On 21 Nov., 01:46, [EMAIL PROTECTED] wrote: > > dummy/ > > dummy_package/ > > __init__.py > > moduleA.py > > tests/ > >__init__.py > >test.py To avoid confusion, the directory t

Re: Code Management

2007-11-20 Thread Jens
On 21 Nov., 04:16, Jens <[EMAIL PROTECTED]> wrote: > On 21 Nov., 01:46, [EMAIL PROTECTED] wrote: > > > > > On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > > > > Dear Reader, > > > > I'm writing some modules in Python, and I'm also using unittests. I'm > > > wondering about some things: > > >

Re: Code Management

2007-11-20 Thread Jens
On 21 Nov., 01:46, [EMAIL PROTECTED] wrote: > On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > > > Dear Reader, > > > I'm writing some modules in Python, and I'm also using unittests. I'm > > wondering about some things: > > I'd love to hear how others manage this sort of thing as well. I'll

Re: Code Management

2007-11-20 Thread Ben Finney
Jens <[EMAIL PROTECTED]> writes: > 1) Should I put my unittests in a subdirectory? I find that it is best to do so even for single-module packages, because it makes writing the 'setup.py' easier ("don't install anything in the unit test directory"). > Does the subdirectory have to be a package?

Re: Code Management

2007-11-20 Thread Sergio Correia
Let's see: > 1) Should I put my unittests in a subdirectory? Does the subdirectory > have to be a package? Sure, to avoid cluttering put the tests in a folder called 'tests' (and any input the tests require, like mock files, output files used to test if the output is correct, etc etc, should be p

Re: Code Management

2007-11-20 Thread brzrkr0
On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > Dear Reader, > > I'm writing some modules in Python, and I'm also using unittests. I'm > wondering about some things: I'd love to hear how others manage this sort of thing as well. I'll describe what I've found works best for me, and if others

Code Management

2007-11-20 Thread Jens
Dear Reader, I'm writing some modules in Python, and I'm also using unittests. I'm wondering about some things: 1) Should I put my unittests in a subdirectory? Does the subdirectory have to be a package? 2) Does the main folder /myproject have to be a package? Should I put my modules directly un

How to use Mercurial for local source code management with a public Subversion server

2007-01-10 Thread Larry Hastings
I'm working on a patch or two for Python. Now, it's always best to use a source code manager (rcs, whatever) when writing code; in particular it'd make updating to the latest Python trees much easier. But I don't have write access to the Python Subversion repository. So I figured out how to wo