[py-dev] py.test3, py.test-jython, py.test-pypy ...
Adam
Adam.Schmalhofer at gmx.de
Mon Dec 21 16:16:35 CET 2009
holger krekel wrote:
> On Mon, Dec 21, 2009 at 10:11 +0100, Adam wrote:
> > holger krekel wrote:
> >
> > > It makes py.test install as
> > >
> > > py.test # if python executable has basename 'python'
> > > py.test3 # if python executable has version_info >= (3,0)
> > > py.test2.x # if python executable has basename 'python2.x' (x in
> > > '4567') py.test-jython # if we are running on jython2.5
> > > py.test-pypy # if we are running on pypy
> > >
> > > does this make sense to you, objections?
> >
> > I don't know how easy it will be to get this to work with
> > debian's python-setup (or for any other distributor).
>
> good point. OTOH they anyway modify the setup.py
Debian currently doesn't modify the setup.py.
> so it's easy to implement their policy.
It is not a policy matter. There might be a problem if the packager has
different interpreters than the installer (package build vs. package
install). I assume python-setup only uses python as interpreter so
everything should be the same as now without the packager changing
anything.
> I believe python3 is currently the
> standard so they probably should do 'py.test3' at least ...
If you could offer a simple way to just create the py.testXX it should
be possible to create them for every interpreter on the installed system
(using the hook in python-setup).
> (not sure who is doing py.test debian packaging currently, btw)
Chris Lamb <chris at chris-lamb.co.uk>
> That being said, i am considering to actually follow your suggestion
> and implement the '-i' option. And also provide a py.test3 for python3.
>
> If you specify interpreters that don't exist what would you like py.test to
> do? Bail out up-front or produce skips or ..?
I don't have a strong opinion on this. I would favor skips or a warning.
That would give an easy way to share which interpreters are supported
without caring if they are installed on the specific developer machine.
--Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20091221/ea4777c3/attachment.pgp>
More information about the Pytest-dev
mailing list