wojdyr / xylib

library for reading files with x-y data from powder diffraction, spectroscopy, or other experimental methods
GNU Lesser General Public License v2.1
61 stars 18 forks source link

Add support for Python Wheels and auto-upload new versions to PyPI #19

Closed chris-stallard1 closed 4 years ago

chris-stallard1 commented 4 years ago

I created a GitHub Action that will automatically build python wheels for this project on Windows, Linux (built on Ubuntu), and MacOS for Python 3.5+. It additionally creates a source distribution, and a final (currently commented out) job will upload all of the wheels and the source to PyPI whenever a new version of the project is released. setuptools is now used instead of distutils in setup.py in order to allow wheels to be built.

wojdyr commented 4 years ago

Hi Chris, thanks for this. I don't have any experience with Github Actions, although I used other CI systems. From what I read about portable linux wheels (manylinux1, etc) they need to be built on old enough linux systems. A bigger problem is that maintaining such builds takes time. I try to limit time spent on this project to minimum.

I cherry-picked your first commit (to setup.py). If you'd like to build and upload wheels, I can add you as a maintainer to the PyPI project.

chris-stallard1 commented 4 years ago

Okay, thank you for having a look at it. I was looking at manylinux and it appears to require a CentOS 6 environment, so I will swap out the Ubuntu 18.04 system for that. I would like to build and upload wheels, so if you could add me as a maintainer I would be grateful.

wojdyr commented 4 years ago

Sounds great! You are now a maintainer of https://pypi.org/project/xylib-py/