Closed akx closed 4 years ago
I don't know what to add [to the Travis CI configuration file] to have the CI pipeline run
python setup.py bdist_wheel
.
https://docs.travis-ci.com/user/deployment-v2/providers/pypi/#uploading-different-distributions
@Gallaecio Any chance of merging this?
Policy is to get 2 maintainers to approve. I’ll ping them.
To be sure you need to add wheel
package in https://github.com/akx/protego/blob/8b99ed4b910f93842835694e87bb77da18522db5/.travis.yml#L40
To be sure you need to add
wheel
package in https://github.com/akx/protego/blob/8b99ed4b910f93842835694e87bb77da18522db5/.travis.yml#L40
@whalebot-helmsman Done :)
Hey there,
While setting up a Scrapy-based project, I noticed the source tarball for Protego on PyPI is 3.2 megabytes, due to including all of the test case robots.txt files too. This is, based on the MANIFEST.in file, on purpose: https://github.com/scrapy/protego/blob/26a5b11e1b9e949bbdc5ae8e5bdf68a939058df7/MANIFEST.in#L7 Some distros (e.g. Debian) do like their upstream source tarballs to include test material, so that's fine.
Those test files don't get included in wheel packages though, bringing the package size to a more reasonable 8 kilobytes. Pip will generally prefer wheels over source distributions so this is an easy way to bring the download size down for everyone.
This PR adds the required
universal = 1
configuration tosetup.cfg
so the wheel is marked compatible with both Python 2 and Python 3.However, I'm not sure what the release process here entails; I see some deployment bits in the Travis configuration file, but I don't know what to add there to have the CI pipeline run
python setup.py bdist_wheel
.