- Using a clean environment, do a final test of the current state of the
developbranch. Make sure before tests are run to delete or move themetalearndirectory so the tests are run against the installed version ofmetalearnand not the local files. - Test using the develop branch of the
metalearnpackage with ourd3m_primitivespackage, to make sure the APIs are compatible.
- If all the tests pass, bump up the version number for
metalearninsidesetup.pyof thedevelopbranch. - Merge the up-to-date
developinto the up-to-datemasterlocally, then run the tests one more time to ensure the merge happened successfully. - Push the merged
masterto remote. - If the Travis CI build passes, go to 'Releases', and create a new release with the correct version number for the master branch.
- Run
python3 setup.py sdist bdist_wheelfrom the clean, new version ofmasterto build the newly-released version of the package. - Run
pip3 install twine - Run
twine upload dist/*to upload the whole package distribution to PyPi. You will need to authenticate with PyPi credentials connected to themetalearnpackage. - In a new directory, with a new python environment, run
pip install metalearnand verify the version is the new version number you've just created.