Maintainers information

Packages upgrading

This section contains information about how and when to upgrade the packages used by GEMSEO and by the development environments.


GEMSEO is a library and not a self contained application, it can be installed in environments with varying and unknown constraints on the versions of its dependencies. Thus the versions of its dependencies cannot be pinned, but a range of compatible versions shall be defined.

All the dependencies of GEMSEO are defined in pyproject.toml, this files does not tell where the packages will be pulled from. The dependencies could be provided by the packages repositories pypi, anaconda or conda-forge.

Getting GEMSEO to work with a set of packages versions common to several platforms and python versions is tricky and challenging. This kind of work is mostly done by trials and errors.

In addition to the dependencies of GEMSEO, pyproject.toml also defines optional dependencies used for running the tests or building the documentation.

Dependencies for development

The dependencies used for development shall be fully controlled so all developers are provided with reproducible and working environments. The dependencies shall be updated at least once in a while (couple months) to benefit from packages improvements, security and bug fixes.

The dependencies update is done with pip-tools and eventually from input requirements files. These input requirements files contain the minimum pinning requirements and are intended to be modified by maintainers. The pip-tools package provides the pip-compile which can process an input requirements file to produce a fully pinned requirements file. The actual call to pip-tools is done via tox (see below).


All environments and tools shall be checked whenever dependencies have been changed.

Documentation files like CREDITS.rst and dependencies.rst shall also be updated accordingly.

Whenever a dependency defined in pyproject.toml is changed, update the requirements for the testing and doc environments of tox:

tox -e update-deps-test,update-deps-doc


This shall be run on linux only otherwise windows specific packages will be included!

The dependencies for the check and dist environments of tox are defined in:

  • for checking the source files.

  • for creating the distribution.

Update the requirements for the those environments of tox:

tox -e update-deps-check,update-deps-dist

Testing pypi packages


tox -e pypi-pyX

for all the supported Python versions X, e.g. tox -e pypi-py39.

Testing conda-forge packages


tox -e conda-forge-pyX

for all the supported Python versions X, e.g. tox -e conda-forge-py39.

Updating the changelog

To avoid rebase and merge conflicts, the changelog is not directly updated in a branch but updated once a release is ready from changelog fragments. Changelog fragment is a file that contains the part of the changelog of a branch, named with <issue number>.<change kind>.rst and stored under changelog/fragments. The update is done with towncrier:

towncrier build --version <version number>

Publishing process

The publishing of the distribution archives of a package at the version X.Y.Z (where Z may contain a rcW suffix) is done automatically by the CI on the following conditions:

  • a CI variable with a PyPI token has be set,

  • a branch named release-X.Y.Z is merged to the master branch.

A tag named X.Y.Z is also automatically created on the master branch.

Making a new release

  1. Create a release branch named release-X.Y.Z.

  2. For plugins only:

    1. Update the required gemseo version in pyproject.toml.

  3. Update the changelog.

  4. Push the branch.

  5. Create a MR to master.

  6. Make sure the full test suite passes.

  7. Merge master to develop so the last tag is a parent commit for defining the dev versions.

  8. Push develop.

  9. For GEMSEO only:

    1. Update the recipe for conda-forge once the update bot sends the PR.

    2. Test the conda-forge packages.

    3. Create the anaconda stand alone distribution.

Mirroring to github

To mirror a project from gitlab to github:

  • Clone the repository on github,

  • Enable push mirroring on the gitlab repository setting page.