[Distutils] Best practice to build binary wheels on Github+Travis and upload to PyPI

Lele Gaifax lele at metapensiero.it
Mon Mar 13 05:47:54 EDT 2017

Hi all,

I'd like to learn how to configure a project I keep on Github so that at
release time it will trigger a build of binary wheels for different versions
of Python 3 and eventually uploading them to PyPI.

At first I tried to follow the Travis deploy instruction[1], but while that
works for source distribution it cannot be used to deploy binary wheels
because AFAICT Travis does not build “manylinux1”-marked wheels.

I then found the manylinux-demo project[2] that uses Docker and contains a
a script able to build the wheels for every available version of Python. OTOH,
it does not tackle to PyPI upload step.

I will try to distill a custom recipe for my own needs looking at how other
packages implemented this goal, but I wonder if there is already some
documentation that could help me understanding better how to intersect the
above steps.

Thanks in advance for any hint,
ciao, lele.

[1] https://docs.travis-ci.com/user/deployment/pypi/
[2] https://github.com/pypa/python-manylinux-demo
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.

More information about the Distutils-SIG mailing list