Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1072:273ffea710b4
Date: 2012-11-28 10:08 -0800
http://bitbucket.org/cffi/cffi/changeset/273ffea710b4/

Log:    Upgrade the version number.

diff --git a/cffi/__init__.py b/cffi/__init__.py
--- a/cffi/__init__.py
+++ b/cffi/__init__.py
@@ -4,5 +4,5 @@
 from .api import FFI, CDefError, FFIError
 from .ffiplatform import VerificationError, VerificationMissing
 
-__version__ = "0.4"
-__version_info__ = (0, 4)
+__version__ = "0.4.2"
+__version_info__ = (0, 4, 2)
diff --git a/doc/source/conf.py b/doc/source/conf.py
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -45,9 +45,9 @@
 # built documents.
 #
 # The short X.Y version.
-version = '0.4'
+version = '0.4.2'
 # The full version, including alpha/beta/rc tags.
-release = '0.4'
+release = '0.4.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@
   setup(
     name='cffi',
     description='Foreign Function Interface for Python calling C code.',
-    version='0.4.1',   # version='0.4' compatible
+    version='0.4.2',
     packages=['cffi'],
     zip_safe=False,
 
diff --git a/testing/test_version.py b/testing/test_version.py
--- a/testing/test_version.py
+++ b/testing/test_version.py
@@ -1,11 +1,15 @@
 import py, os
 import cffi, _cffi_backend
 
+BACKEND_VERSIONS = {
+    '0.4.2': '0.4',     # did not change
+    }
+
 def test_version():
     v = cffi.__version__
     version_info = '.'.join(str(i) for i in cffi.__version_info__)
     assert v == version_info
-    assert v == _cffi_backend.__version__
+    assert BACKEND_VERSIONS.get(v, v) == _cffi_backend.__version__
 
 def test_doc_version():
     parent = os.path.dirname(os.path.dirname(__file__))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to