A library that computes the ephemerides.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

47 lignes
1.8 KiB

  1. #!/usr/bin/env python3
  2. # Kosmorro - Compute The Next Ephemerides
  3. # Copyright (C) 2019 Jérôme Deuchnord <jerome@deuchnord.fr>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Affero General Public License as
  7. # published by the Free Software Foundation, either version 3 of the
  8. # License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Affero General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License
  16. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. """
  18. Kosmorrolib's versioning follows the `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_ standard,
  19. meaning that:
  20. * the versions always follow the X.Y.Z format, where X, Y and Z are natural numbers.
  21. * the major version (X) never changes unless a change breaks compatibility (any breaking compatibility change in the
  22. same major version is considered as a bug)
  23. * the minor version (Y) never changes unless new features are introduced
  24. * the patch version (Z) never changes unless there are bug fixes
  25. """
  26. MAJOR_VERSION = 0
  27. """The major version of the library"""
  28. MINOR_VERSION = 9
  29. """The minor version of the library"""
  30. PATCH_VERSION = 0
  31. """The patch version of the library"""
  32. VERSION = '%d.%d.%d' % (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
  33. """
  34. The library version in a readable for human beings format.
  35. Useful for instance, if you want to display it to the end user.
  36. If you need to check the version in your program, you should prefer using the MAJOR_VERSION, MINOR_MINOR_VERSION and
  37. PATCH_VERSION constants instead.
  38. """