raptor_version.py 925 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (c) 2006-2011 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. # This component and the accompanying materials are made available
  5. # under the terms of the License "Eclipse Public License v1.0"
  6. # which accompanies this distribution, and is available
  7. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. #
  9. # Initial Contributors:
  10. # Nokia Corporation - initial contribution.
  11. #
  12. # Contributors:
  13. #
  14. # Description:
  15. # raptor version information module
  16. # replace ISODATE with the creation date of the release
  17. # replace CHANGESET with the Hg changeset of the release
  18. #
  19. # both of these are done automatically by the installer builder.
  20. version=(2,16,4,"ISODATE","symbian build system","CHANGESET")
  21. def numericversion():
  22. """Raptor version string"""
  23. return "{0}.{1}.{2}".format(*version[:3])
  24. def fullversion():
  25. """Raptor version string"""
  26. return "{0}.{1}.{2} [{3} {4} {5}]".format(*version)