5 Commits

Author SHA1 Message Date
Andreas Jaeger
0c31414677 Update docs building, Python 3 cleanup
Update docs building:
* Remove unneeded doc sections from setup.cfg
* Change constraints to use published document, use
  new variable
* Import mock from unittest, remove imports from future

Change-Id: I8f33d4c0bf5fcba203d410cd021c548219a757ec
2020-04-20 11:16:46 +02:00
Thierry Carrez
eb4c7ac4ef new_release: go back in history and compute depth
make get_last_release() go further back in release history,
compute the depth at which it finds a release.

Properly increment feature version based on the depth at
which the last release was found.

Change-Id: I5880611a7d9005cee8fe4c2d7920f84d880eeeb8
Task: 22351
2018-07-04 18:40:25 +02:00
Thierry Carrez
e7ac6d6ab8 new_release: work from a release history object
The calculation of the last release was working from release
information from targeted series, and used specific code to
retrieve the data from the previous series if that failed.

In preparation for landing code to look further backwards in
history, refactor that code to retrieve and work from a
release history object containing list of releases for each
considered series.

To preserve current behavior, for the moment, we only retrieve
history for the targeted series and the series before that.

This allows to get rid of mocks in get_last_release() tests and
simplify testing from a history of releases.

Change-Id: I48ff9c46c1e9250fbdfc5dd5344f18c7e046735a
2018-07-04 18:15:18 +02:00
Doug Hellmann
0fdefb4c5b add tests for the logic that finds previous releases
Pull the code that finds the previous release out of the main function
in new-release and write tests for it.

Change-Id: I20c6a5283a779258498027a8a5875ddd3c80bf79
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-07 15:35:01 -04:00
Doug Hellmann
6d7e2557dd add tests for version incrementing in new-release
Change-Id: Ia758c459fc47591f49c9c22b8520e727386bd429
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-07 11:30:05 -04:00