From: Bob Halley Date: Sun, 15 Jan 2017 14:25:33 +0000 (-0800) Subject: doco version X-Git-Tag: v1.16.0~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9522ac660d9f6c45cc42d6cc2e1d5743b801704a;p=thirdparty%2Fdnspython.git doco version --- diff --git a/dns/version.py b/dns/version.py index de0fe381..4e7023c7 100644 --- a/dns/version.py +++ b/dns/version.py @@ -1,4 +1,4 @@ -# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. +# Copyright (C) 2003-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, @@ -15,13 +15,19 @@ """dnspython release version information.""" +#: MAJOR MAJOR = 1 +#: MINOR MINOR = 16 +#: MICRO MICRO = 0 +#: RELEASELEVEL RELEASELEVEL = 0x0f +#: SERIAL SERIAL = 0 if RELEASELEVEL == 0x0f: + #: version version = '%d.%d.%d' % (MAJOR, MINOR, MICRO) elif RELEASELEVEL == 0x00: version = '%d.%d.%dx%d' % \ @@ -30,5 +36,6 @@ else: version = '%d.%d.%d%x%d' % \ (MAJOR, MINOR, MICRO, RELEASELEVEL, SERIAL) +#: hexversion hexversion = MAJOR << 24 | MINOR << 16 | MICRO << 8 | RELEASELEVEL << 4 | \ SERIAL diff --git a/doc/utilities.rst b/doc/utilities.rst index 29373614..88c1f72e 100644 --- a/doc/utilities.rst +++ b/doc/utilities.rst @@ -16,3 +16,6 @@ Miscellaneous Utilities .. automodule:: dns.set :members: + +.. automodule:: dns.version + :members: