Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

working with different requirements depending on python version

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


chris at simplistix

Jun 30, 2012, 5:54 AM

Post #1 of 3 (160 views)
Permalink
working with different requirements depending on python version

Hi All,

While trying to debug another problem, I re-ran some Jenkins jobs for
two of my packages, which promptly failed under Python 2.5:

http://jenkins.simplistix.co.uk/job/testfixtures-buildout/
http://jenkins.simplistix.co.uk/job/checker-buildout/

Now, the issue here is that zope.interface 4.0 and above no longer
supports Python 2.5:

http://jenkins.simplistix.co.uk/job/checker-buildout/PYTHON=2.5,label=linux/15/console
http://pypi.python.org/pypi/zope.interface/4.0.0

That's fine, but I'd like the above projects to continue 2.5 support for
the time being.

The simple solution would be to add a versions section to the buildout here:

https://github.com/Simplistix/checker/blob/master/buildout.cfg

...and pin the versions in the tox.ini here:

https://github.com/Simplistix/checker/blob/master/tox.ini

...however, that doesn't give the correct result. The version
requirement is "use the latest version of all packages that work with
the Python version under test" and the changes I've suggested would mean
that on Python 2.6 and 2.7, the latest version of zope.interface
wouldn't be used.

What makes this even more "interesting" is that zope.interface isn't a
direct requirement of either of these projects, it's a dependency of a
dependency in both cases.

How have other people solved this?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


tseaver at palladion

Jun 30, 2012, 10:12 AM

Post #2 of 3 (151 views)
Permalink
Re: working with different requirements depending on python version [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/30/2012 08:54 AM, Chris Withers wrote:
> Hi All,
>
> While trying to debug another problem, I re-ran some Jenkins jobs for
> two of my packages, which promptly failed under Python 2.5:
>
> http://jenkins.simplistix.co.uk/job/testfixtures-buildout/
> http://jenkins.simplistix.co.uk/job/checker-buildout/
>
> Now, the issue here is that zope.interface 4.0 and above no longer
> supports Python 2.5:
>
> http://jenkins.simplistix.co.uk/job/checker-buildout/PYTHON=2.5,label=linux/15/console
>
>
http://pypi.python.org/pypi/zope.interface/4.0.0
>
> That's fine, but I'd like the above projects to continue 2.5 support
> for the time being.
>
> The simple solution would be to add a versions section to the buildout
> here:
>
> https://github.com/Simplistix/checker/blob/master/buildout.cfg
>
> ...and pin the versions in the tox.ini here:
>
> https://github.com/Simplistix/checker/blob/master/tox.ini
>
> ...however, that doesn't give the correct result. The version
> requirement is "use the latest version of all packages that work with
> the Python version under test" and the changes I've suggested would
> mean that on Python 2.6 and 2.7, the latest version of zope.interface
> wouldn't be used.
>
> What makes this even more "interesting" is that zope.interface isn't a
> direct requirement of either of these projects, it's a dependency of
> a dependency in both cases.
>
> How have other people solved this?

For repoze.sendmail, I did two fixups for Python 2.5:

- - I changed 'install_requires' in setup.py based on sys.version_info

https://github.com/repoze/repoze.sendmail/blob/master/setup.py

- - I pinned the verstion in tox.ini:

https://github.com/repoze/repoze.sendmail/blob/master/tox.ini



Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver [at] palladion
Palladion Software "Excellence by Design" http://palladion.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/vM2cACgkQ+gerLs4ltQ6wMACggHkNgiyVCWo83eEaJUu42p3m
zz0An0xehOEKzMEiNQUnHP//1xYsaiJG
=IE0o
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


chris at simplistix

Jul 1, 2012, 10:15 AM

Post #3 of 3 (150 views)
Permalink
Re: working with different requirements depending on python version [In reply to]

On 30/06/2012 18:12, Tres Seaver wrote:
>> How have other people solved this?
>
> For repoze.sendmail, I did two fixups for Python 2.5:
>
> - - I changed 'install_requires' in setup.py based on sys.version_info
>
> https://github.com/repoze/repoze.sendmail/blob/master/setup.py
>
> - - I pinned the verstion in tox.ini:
>
> https://github.com/repoze/repoze.sendmail/blob/master/tox.ini

Thanks, that worked for me:

https://github.com/Simplistix/testfixtures/commit/d56035510f7a63793a82b966b8c8c273b379c7a1

https://github.com/Simplistix/checker/commit/a5f8d089a3af7da1f1e8a5dc3182ea5b5345dcf5

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk


_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.