Open Bug 1220108 Opened 9 years ago Updated 2 years ago

Provide wheel distributions for mozbase packages on PyPI

Categories

(Testing :: Mozbase, defect)

defect

Tracking

(Not tracked)

People

(Reporter: emorley, Unassigned)

Details

Please could we provide a wheel archive on PyPI alongside the standard package? 
There are several advantages even if they are pure python (see http://pythonwheels.com/ )

Thanks :-)
I'm thinking the best way to achieve this is to document the recommended release process somewhere and just have people follow it the next time a new release is published? What location makes the most sense for this documentation?

The now-recommended way to release is using twine (see http://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#upload-your-distributions), which makes the steps roughly:

1) Install twine
2) rm -rf dist/*
3) python setup.py sdist bdist_wheel
4) twine upload dist/*

(Step 2 is required since setup.py clean only handles the build directory, not dist)

Optionally projects can also create a setup.cfg in the root of the repo enabling universal wheels (if the project is Python 3 compat and doesn't contained any compiled extensions), which will make the `setup.py bdist_wheel` automatically create a universal wheel:
http://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#universal-wheels
Henrik, I don't suppose you could upload the wheel for the mozdownload release that was just uploaded to PyPI, since it's currently sdist-only?

Thanks :-)
Flags: needinfo?(hskupin)
mozdownload is not part of mozbase so we should better get this discussed on the appropriate github repository. Feel free to raise a new issue for it at https://github.com/mozilla/mozdownload. Thanks
Flags: needinfo?(hskupin)
Perhaps a good first step would be to document (or script) the MozBase package release/publishing process, and ensure the wheel step is included as part of that?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.