You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

4 years ago
  1. # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
  2. # Copyright (C) 2003-2017 Nominum, Inc.
  3. #
  4. # Permission to use, copy, modify, and distribute this software and its
  5. # documentation for any purpose with or without fee is hereby granted,
  6. # provided that the above copyright notice and this permission notice
  7. # appear in all copies.
  8. #
  9. # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
  10. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
  12. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  15. # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. """dnspython release version information."""
  17. #: MAJOR
  18. MAJOR = 1
  19. #: MINOR
  20. MINOR = 16
  21. #: MICRO
  22. MICRO = 0
  23. #: RELEASELEVEL
  24. RELEASELEVEL = 0x0f
  25. #: SERIAL
  26. SERIAL = 0
  27. if RELEASELEVEL == 0x0f:
  28. #: version
  29. version = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
  30. elif RELEASELEVEL == 0x00:
  31. version = '%d.%d.%dx%d' % \
  32. (MAJOR, MINOR, MICRO, SERIAL)
  33. else:
  34. version = '%d.%d.%d%x%d' % \
  35. (MAJOR, MINOR, MICRO, RELEASELEVEL, SERIAL)
  36. #: hexversion
  37. hexversion = MAJOR << 24 | MINOR << 16 | MICRO << 8 | RELEASELEVEL << 4 | \
  38. SERIAL