python-Levenshtein icon indicating copy to clipboard operation
python-Levenshtein copied to clipboard

Add cross-platform CI wheel builds

Open Tobotimus opened this issue 6 years ago • 9 comments

Hi! Here is a patch for this repository's CI configurations to include building and deploying wheels for Linux (x86-64 and i686), MacOS (10.6) and Windows (x86-64 and x86). They are built for Python versions 2.7, 3.4, 3.5, 3.6 and 3.7. Obviously a source distribution is still included for platforms not included here.

I've made use of the amazing cibuildwheel repository, which makes this a fairly painless task.

All that's required for this to work now is for the maintainer to add his/her username and encrypted password for PyPI to the config files, merge and tag. I've tested this and uploaded to TestPyPI via this method.

You can also remove the env var placeholders for the username/password in .travis.yml and appveyor.yml, and instead set them in the project settings on travis-ci.org and appveyor.com if you prefer.

Tobotimus avatar Jan 27 '19 13:01 Tobotimus

Hmm, I'll look into this on weekend.

ztane avatar Feb 19 '19 21:02 ztane

Seem that was a lie 21 days ago :( too busy but I'll try to get to it soon.

ztane avatar Mar 12 '19 18:03 ztane

It's fine, I totally understand :)

Tobotimus avatar Mar 12 '19 22:03 Tobotimus

Any updates on this?

Also, I'd like to suggest we remove setuptools from install_requires and rely on users to either install the wheel or if they want to build from source, install setuptools (done for us with latest pip version).

Refs:

  • https://setuptools.readthedocs.io/en/latest/setuptools.html#distributing-legacy-setuptools-projects-using-ez-setup-py
  • https://www.bernat.tech/pep-517-518/

asfaltboy avatar Aug 25 '19 12:08 asfaltboy

Interested in this...

ppmdo avatar Oct 07 '19 11:10 ppmdo

Could be made even simpler with GitHub actions: https://github.com/pypa/gh-action-pypi-publish/issues/15#issuecomment-537949083

asfaltboy avatar Oct 08 '19 14:10 asfaltboy

@ztane Please assign collaborators, in case you can no longer maintain this package. There are thousands of users that would see issues fixed that were reported years ago.

apacha avatar Sep 22 '20 15:09 apacha

I made a fork with wheels, see #61 for details.

polm avatar Jan 11 '21 08:01 polm

I can only recommend to try out joerick/cibuildwheel, it's pretty awesome!

asfaltboy avatar Jan 11 '21 09:01 asfaltboy