Skip to content

Commit

Permalink
Moved the One True Copy of the version number to cascadenik.__version__
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed May 29, 2012
1 parent 123d9a0 commit 02ef183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
VERSION:=$(shell cat VERSION.txt)
VERSION:=$(shell python -c 'from cascadenik import __version__ as v; print v')
TARBALL=cascadenik-$(VERSION).tar.gz

all: dist/$(TARBALL)
Expand Down
1 change: 0 additions & 1 deletion VERSION.txt

This file was deleted.

5 changes: 3 additions & 2 deletions cascadenik/__init__.py
Expand Up @@ -5,6 +5,8 @@
http://code.google.com/p/mapnik-utils/wiki/Cascadenik
"""
__version__ = '2.3.0'

from os import mkdir, chmod
from os.path import isdir, realpath, expanduser, dirname, exists
from urlparse import urlparse
Expand All @@ -30,8 +32,7 @@
# compile function -> "compile"
from .compile import compile, Directories

# define Cascadenik version
VERSION = '1.0.0'
# define Cascadenik default cache directory
CACHE_DIR = '~/.cascadenik'

__all__ = ['load_map', 'compile', '_compile', 'style', 'stylesheet_declarations']
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -10,8 +10,8 @@
except ImportError:
from distutils.core import setup
HAS_SETUPTOOLS = False
VERSION = open('VERSION.txt', 'r').read().strip()

from cascadenik import __version__ as VERSION

options = dict(name='cascadenik',
version = VERSION,
Expand Down

0 comments on commit 02ef183

Please sign in to comment.