Package conary :: Package build :: Module nextversion
[hide private]
[frames] | no frames]

Module nextversion

source code

Functions [hide private]
 
nextVersion(repos, db, troveNames, sourceVersion, troveFlavor, targetLabel=None, alwaysBumpCount=False)
Calculates the version to use for a newly built trove which is about to be added to the repository.
source code
 
nextVersions(repos, db, sourceBinaryList, alwaysBumpCount=False) source code
 
_nextVersionFromQuery(query, db, troveNames, sourceVersion, troveFlavorSet, alwaysBumpCount=False) source code
 
nextLocalVersion(db, troveNames, latest, troveFlavorSet) source code
Function Details [hide private]

nextVersion(repos, db, troveNames, sourceVersion, troveFlavor, targetLabel=None, alwaysBumpCount=False)

source code 
Calculates the version to use for a newly built trove which is about to be added to the repository.
Parameters:
  • repos (NetworkRepositoryClient) - repository proxy
  • troveNames (str) - name(s) of the trove(s) being built
  • sourceVersion (Version) - the source version that we are incrementing
  • troveFlavor (deps.Flavor) - flavor of the trove being built
  • alwaysBumpCount (bool) - if True, then do not return a version that matches an existing trove, even if their flavors would differentiate them, instead, increase the appropriate count.