~nacc/git-ubuntu:sru-series-versioning

Last commit made on 2017-08-02
Get this branch:
git clone -b sru-series-versioning https://git.launchpad.net/~nacc/git-ubuntu
Only Nish Aravamudan can upload to this branch. If you are Nish Aravamudan please log in for upload directions.

Branch merges

Branch information

Name:
sru-series-versioning
Repository:
lp:~nacc/git-ubuntu

Recent commits

03d8dd1... by Nish Aravamudan

versioning: rename test_next_sru_version -> test__next_sru_version

That reflects the actual tested function is _next_sru_version.

0987b93... by Nish Aravamudan

git ubuntu lint: rename functions to clarify string parameter and return types

2ce8291... by Nish Aravamudan

gitubuntu/versioning: rename next_{sru,development}_version -> next_{sru,development}_version_string

Following our new convention, this makes it clearer what the return type is.

99d2638... by Nish Aravamudan

versioning: add support for SRU series in the versioning logic

This partially reverts commit 151c31bbbc12b74f5aaff09bb57d85baf341d959.

This changes the versioned parts into a namedtuple and updates the unit
tests accordingly (purely passing the correct type). It also clarifies
when a suffix is being manipulated and when an entire version string is
being manipulated.

With this change, the unit tests now all pass in versioning.py.

44f9732... by Nish Aravamudan

versioning: rename before/after lists to befores/afters

This helps clarify they are iterables.

f137ff7... by Nish Aravamudan

versioning: add docstring, clarify function parameters and variables

The variable names now reflect their type, as it can be quite confusing.

b501180... by Nish Aravamudan

versioning: convert next_development_version to take a string version

The notion of Version objects can be fully encapsulated in the
versioning module.

9c31f7d... by Nish Aravamudan

versioning: define exposed API with __all__

193bcb6... by Nish Aravamudan

versioning: add more unit tests for SRU policies

1e8052e... by Nish Aravamudan

versioning: move GitUbuntuRepository.version_compare

version_compare was a classmethod of GitUbuntuRepository because there
wasn't a better place for it. Now that we have a 'versioning' module, it
makes sense for version comparison to also live there. Indicate it is an
exposed API, as well.

Add some simple unit tests, as well.