ztane / python-Levenshtein

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
GNU General Public License v2.0
1.26k stars 155 forks source link

Add cross-platform CI wheel builds #36

Open Tobotimus opened 5 years ago

Tobotimus commented 5 years ago

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.

ztane commented 5 years ago

Hmm, I'll look into this on weekend.

ztane commented 5 years ago

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

Tobotimus commented 5 years ago

It's fine, I totally understand :)

asfaltboy commented 5 years ago

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:

ppmdo commented 5 years ago

Interested in this...

asfaltboy commented 5 years ago

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

apacha commented 4 years ago

@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.

polm commented 3 years ago

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

asfaltboy commented 3 years ago

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