Commits

Armin Rigo  committed aa00674

Write the version explicitly, and test it too.

  • Participants
  • Parent commits a317933

Comments (0)

Files changed (2)

   setup(
     name='cffi',
     description='Foreign Function Interface for Python calling C code.',
-    get_version_from_scm=True,
+    version='0.3',
     packages=['cffi'],
 
     url='http://cffi.readthedocs.org',

File testing/test_version.py

     p = os.path.join(parent, 'doc', 'source', 'index.rst')
     content = open(p).read()
     assert ("release-%s.tar.bz2" % v) in content
+
+def test_setup_version():
+    parent = os.path.dirname(os.path.dirname(__file__))
+    p = os.path.join(parent, 'setup.py')
+    content = open(p).read()
+    #
+    v = cffi.__version__
+    assert ("version='%s'" % v) in content