~notmyname/swift/deslogging

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Tarmac
  • Author(s): Soren Hansen
  • Date: 2011-05-27 13:32:07 UTC
  • mfrom: (300.1.4 1.4.0-versioning)
  • Revision ID: tarmac-20110527133207-1ajnpsfmfoxqk7kv
Add a __canonical_version__ attribute to the swift module. This is only the numbered part of the version string, no "-dev" or similar suffixes.

Add a couple of unit tests to make sure __version__ and __canonical_version__ are generated correctly and to ensure __canonical_version__ never accidentally has anything other than numbers and points in it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
except ImportError:
24
24
    frontend = None
25
25
 
26
 
from swift import __version__ as version
 
26
from swift import __canonical_version__ as version
27
27
 
28
28
 
29
29
class local_sdist(sdist):