lofar-astron / RMextract

extract TEC, vTEC, Earthmagnetic field and Rotation Measures from GPS and WMM data for radio interferometry observations
GNU General Public License v3.0
31 stars 22 forks source link

Make package pip-installable #35

Closed gmloose closed 3 years ago

gmloose commented 3 years ago

Make RMextract installable through pip, and ready to be published on PyPI.

Changes

Preparing a release

Preparing a release is still a bit of manual work. Just follow the steps below.

  1. Ensure that the required tools are up-to-date: python3 -m pip install --upgrade pip build twine
  2. Create a source distribution. From the directory containing setup.py execute the command: python3 -m build -s This will create a source tar ball in the dist directory
  3. Create portable binary wheels for Python 3.6, 3.7, 3.8, and 3.9: manylinux2014/build.sh And copy the generated *.whl files from the manylinux2014 directory to the dist directory.
  4. Publish your release on PyPI, by uploading the contents of the dist directory: python3 -m twine upload dist/*

Congratulations, you just created a new official release of RMextract!