AI4S2S / s2spy

A high-level python package integrating expert knowledge and artificial intelligence to boost (sub) seasonal forecasting
https://ai4s2s.readthedocs.io/
Apache License 2.0
20 stars 7 forks source link

Double versions bug of `bump2version` #98

Closed geek-yang closed 2 years ago

geek-yang commented 2 years ago

When executing the bump2version 0.2.0, it adds version to old version tags in multiple files (e.g. it changes version: "0.1.0" to version: "version: "0.1.0"" in CITATION.cff), including CITATION.cff, __init__ in s2spy folder, setup.cfg and .bumpversion.cfg, without steping from old version (0.1.0) to the new one (0.2.0).

BSchilperoort commented 2 years ago

Hi Yang, it seems like you used the wrong command.

You can bump version with, e.g.: bumpversion patch (replace patch with major or minor for bigger versions)

As it seems that you forgot to modify .bumpversion.cfg, the following command should be used next time the version is upgraded: bump2version --current-version 0.2.1 patch