[pypy-commit] cffi default: Write the version explicitly, and test it too.
arigo
noreply at buildbot.pypy.org
Mon Aug 13 19:08:03 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r848:aa00674ed886
Date: 2012-08-13 19:05 +0200
http://bitbucket.org/cffi/cffi/changeset/aa00674ed886/
Log: Write the version explicitly, and test it too.
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -71,7 +71,7 @@
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',
diff --git a/testing/test_version.py b/testing/test_version.py
--- a/testing/test_version.py
+++ b/testing/test_version.py
@@ -19,3 +19,11 @@
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
More information about the pypy-commit
mailing list