HOWTO: Spin a new release

Tests

Documentation

  • Build the developers’ manual and check it for completeness:

    conda install "sphinx==4.2.0" pandoc
    python setup.py build_sphinx
    
  • Build the user manual and check it for completeness:

    sphinx-build docs/user_manual/reference cytoflowgui/help
    
  • Make sure that the ReadTheDocs build is working at https://readthedocs.org/projects/cytoflow/builds/

Test the packaging

  • Build the conda package locally:

    conda build package/conda_recipes/cytoflow
    
  • Install the local package in a new environment:

    conda create --name cytoflow.test --use-local cytoflow
    
  • Activate the test environment, make sure you can import cytoflow, and make sure the GUI runs:

    conda activate cytoflow.test
    python -c "import cytoflow"
    cytoflow
    
  • Make sure that the pyinstaller distribution will build on your local machine (back in your development environment).

    pip install pyinstaller==4.8
    pyinstaller package/pyinstaller.spec
    
  • Make sure that pyinstaller built the executables on all three supported platforms. On each of the three supported platforms?

    • Download the one-click from GitHub Actions. Make sure it starts and can execute a basic workflow.

    • Download the conda package from GitHub Actions. Create a local anaconda environment and install it. Check that it runs as both a module and a GUI

      conda env create --name cf.test -f environment.yml
      conda activate cf.test
      conda install ./cytoflow-*******-tar.bz2
      python -c "import cytoflow"
      cytoflow
      

Versioning and dependencies

  • We’re using versioneer to manage versions. No manual versions required.

  • If there are dependencies that don’t have packages on Anaconda, add recipes to package/conda_recipes (using conda skeleton) and upload them to the Anaconda Cloud. Unless there’s a really (really!) good reason, please make them no-arch.

  • Make sure install_requires in setup.py matches requirements.txt

  • Update the README.rst from the README.md. From the project root, say:

    pandoc --from=markdown --to=rst --output=README.rst README.md
    

Tag and upload the release

  • Push the updated docs to GitHub. Give the CI builders ~30 minutes, then check the build status on GitHub and ReadTheDocs.

  • Create a new tag on the master branch. This will re-build everything on the CI builders.

  • Download the artifacts.

Sign the Windows installer

To get rid of the “Unknown developer” warning in Windows, we sign the installer. This requires a hardware crypto token, so it must be done locally.

  • Setup: If not done already, download and install the Windows Platform SDK. I’m using 8.1 because I couldn’t get 10 to install.

  • Download the Windows installer from Github.

  • Open a terminal in C:Program FilesMicrosoft Platform SDKBin.

  • Start the signing wizard:

    signtool.exe signwizard
    
  • Select the installer binary.

  • Under “Signing options”, choose “Typical”

  • Under “Signature Certificate”, choose “Select from store…”. If the hardware key is installed and set up properly, Windows should find the correct certificate.

  • Add a description such as “Flow cytometry software”. For “Web location”, specify “http://cytoflow.readthedocs.org

  • Check the box next to “Add a timestamp to data”. Enter “http://time.certum.pl”. (Probably could use digicert or some other service.)

  • When prompted, enter the Common Profile PIN.

  • After the wizard closes, double-check that the signing process was completed by right-clicking on the executable and checking the “Digital Signatures” tab.

Upload the artifacts and update the homepage

  • Upload artifacts as appropriate to GitHub, Anaconda, and the Python Package Index. (Make sure that in the case of Anaconda, you’re uploading to the organization account, not your personal account!) The GitHub action should take care of the GitHub and Anaconda packages, but not PyPI.

  • At https://github.com/cytoflow/cytoflow.github.io, update the version in _config.yml. Push these changes to update the main download links on http://cytoflow.github.io/

  • Verify that the download links at http://cytoflow.github.io/ still work!