Skip to content

Latest commit

 

History

History
91 lines (45 loc) · 2.5 KB

RELEASE.md

File metadata and controls

91 lines (45 loc) · 2.5 KB

Release the project

Make version

1. Edit CHANGELOG.md file.
2. Set production version in the properties (remove "-SNAPSHOT" and "dev"):
  • version and js_artifact_version in build.gradle
  • __version__ in python-package/lets_plot/_version.py
3. Push the version changes and git tag:
  • git add --all && git commit -m "Updated version vX.X.X" && git push
  • git tag vX.X.X && git push --tags
4. Prepare to the next dev cycle: increment versions and add "-SNAPSHOT" and "dev":
  • version and js_artifact_version in build.gradle
  • __version__ in python-package/lets_plot/_version.py
5. Push new dev version to GitHub.

Build the project for publishing

The next steps need to be reproduced both on Mac and Linux platforms.

1. Checkout repository in a new directory:

git clone --branch vX.X.X git@github.com:JetBrains/lets-plot lets-plot-release

2. Put build_settings.yml in the project root. See build_settings.template.yml for an example.
3. Edit build_settings.yml:
  • set both build_python_extension and enable_python_package options to yes
  • edit bin and include paths in the Python settings section: set paths to Python 3.7
  • check and set credentials in the PyPI settings and Bintray settings sections
4. Build the project:

run ./gradlew build

As the result you will get artifacts for js-package and python-package (python wheel file built with Python 3.7)

5. Build python wheels with Python 3.8:
  • edit bin and include paths in the Python settings section: set paths to Python 3.8
  • run ./gradlew python-package-build:build

This step will add python wheel file built with Python 3.8.

6. (for Linux only) Build python wheels for Manylinux platform:

run ./gradlew python-package-build:buildManylinuxWheels

Publish artifacts

1. JavaScript artifacts (Bintray):

run ./gradlew js-package:publishJS

2. Python wheels (PyPi):
  • for testing (test.pypi.org):

./gradlew python-package-build:publishTestPythonPackage

  • for production (pypi.org):

./gradlew python-package-build:publishProdPythonPackage

Add the GitHub release:

After release

  • remove build directory lets-plot-release