You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2015/10/29 01:43:55 UTC
qpid-proton git commit: PROTON-1031: bump the version number used by
the setup.py script
Repository: qpid-proton
Updated Branches:
refs/heads/0.11.x fe21523f5 -> bde325fa8
PROTON-1031: bump the version number used by the setup.py script
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/bde325fa
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/bde325fa
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/bde325fa
Branch: refs/heads/0.11.x
Commit: bde325fa8ce66057da3fe510b566a54e74b3f4e4
Parents: fe21523
Author: Ken Giusti <kg...@apache.org>
Authored: Wed Oct 28 12:09:58 2015 -0400
Committer: Ken Giusti <kg...@apache.org>
Committed: Wed Oct 28 12:09:58 2015 -0400
----------------------------------------------------------------------
proton-c/bindings/python/proton/__init__.py | 2 ++
proton-c/bindings/python/setup.py | 5 +++--
proton-c/bindings/python/setuputils/bundle.py | 10 ++++------
proton-j/src/main/resources/cproton.py | 1 +
4 files changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bde325fa/proton-c/bindings/python/proton/__init__.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/__init__.py b/proton-c/bindings/python/proton/__init__.py
index 0567095..2a87fe7 100644
--- a/proton-c/bindings/python/proton/__init__.py
+++ b/proton-c/bindings/python/proton/__init__.py
@@ -115,6 +115,8 @@ except NameError:
VERSION_MAJOR = PN_VERSION_MAJOR
VERSION_MINOR = PN_VERSION_MINOR
+VERSION_POINT = PN_VERSION_POINT
+VERSION = (VERSION_MAJOR, VERSION_MINOR, VERSION_POINT)
API_LANGUAGE = "C"
IMPLEMENTATION_LANGUAGE = "C"
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bde325fa/proton-c/bindings/python/setup.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/setup.py b/proton-c/bindings/python/setup.py
index 91cc24e..db9bfca 100755
--- a/proton-c/bindings/python/setup.py
+++ b/proton-c/bindings/python/setup.py
@@ -191,7 +191,7 @@ class Configure(build_ext):
env={'PYTHONPATH': proton_base}, stdout=header)
# Create a custom, temporary, version.h file mapping the
- # major and minor versions from the downloaded tarbal. This version should
+ # major and minor versions from the downloaded tarball. This version should
# match the ones in the bundle module
with open(os.path.join(build_include, 'proton', 'version.h'), "wb") as ver:
version_text = """
@@ -199,8 +199,9 @@ class Configure(build_ext):
#define _PROTON_VERSION_H 1
#define PN_VERSION_MAJOR %i
#define PN_VERSION_MINOR %i
+#define PN_VERSION_POINT %i
#endif /* version.h */
-""" % bundle.min_qpid_proton
+""" % bundle.bundled_version
ver.write(version_text.encode('utf-8'))
# Collect all the Proton C files that need to be built.
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bde325fa/proton-c/bindings/python/setuputils/bundle.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/setuputils/bundle.py b/proton-c/bindings/python/setuputils/bundle.py
index 29b1cac..ae030e8 100644
--- a/proton-c/bindings/python/setuputils/bundle.py
+++ b/proton-c/bindings/python/setuputils/bundle.py
@@ -32,13 +32,11 @@ from . import log
#-----------------------------------------------------------------------------
# Constants
#-----------------------------------------------------------------------------
-min_qpid_proton = (0, 10)
-min_qpid_proton_str = "%i.%i" % min_qpid_proton
+min_qpid_proton = (0, 11, 0)
+min_qpid_proton_str = "%i.%i.%i" % min_qpid_proton
-bundled_version = (0, 10, 0)
-bundled_version_str = ("%i.%i" % bundled_version[:-1]
- if bundled_version[-1] == 0 else
- "%i.%i.%i" % bundled_version)
+bundled_version = (0, 11, 0)
+bundled_version_str = "%i.%i.%i" % bundled_version
libqpid_proton = "qpid-proton-%s.tar.gz" % bundled_version_str
libqpid_proton_url = ("http://www.apache.org/dist/qpid/proton/%s/%s" %
(bundled_version_str, libqpid_proton))
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bde325fa/proton-j/src/main/resources/cproton.py
----------------------------------------------------------------------
diff --git a/proton-j/src/main/resources/cproton.py b/proton-j/src/main/resources/cproton.py
index 2b2f66c..0840273 100644
--- a/proton-j/src/main/resources/cproton.py
+++ b/proton-j/src/main/resources/cproton.py
@@ -26,6 +26,7 @@ against both the C and Java protocol implementations.
# @todo(kgiusti) dynamically set these via filters in the pom.xml file
PN_VERSION_MAJOR = 0
PN_VERSION_MINOR = 0
+PN_VERSION_POINT = 0
from ctypes import *
from cobject import *
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org