Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Pypi: what is your process for releasing packages for different Python versions? (Linux)

I've got several eggs I maintain on Pypi but up until now I've always focused on Python 2.5x. I'd like to release my eggs under both Python 2.5 & Python 2.6 in an automated fashion i.e.

  1. running tests
  2. generating doc
  3. preparing eggs
  4. uploading to Pypi

How do you guys achieve this?

A related question: how do I tag an egg to be "version independent" ? works under all version of Python?

like image 469
jldupont Avatar asked Nov 14 '22 14:11

jldupont


1 Answers

You don't need to release eggs for anything else than Windows, and then only if your package uses C extensions so that they have compiled parts. Otherwise you simply release one source distribution. That will be enough for all Python versions on all platforms.

Running the tests for different versions automated is tricky if you don't have a buildbot. But once you have run the tests with both 2.5 and 2.6 releasing is just a question of running python setup.py sdist register upload and it doesn't matter what Python version you use to run that.

like image 100
Lennart Regebro Avatar answered Dec 19 '22 08:12

Lennart Regebro