Skip to content

Commit

Permalink
Factor version string out into a single location
Browse files Browse the repository at this point in the history
  • Loading branch information
nwidger committed Jan 9, 2017
1 parent 0ee991c commit 3a39a0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cdrouter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

"""Python client for the CDRouter Web API."""

__version__ = '0.0.4'

from .cdrouter import Service

from .configs import ConfigsService
Expand Down
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# add these directories to sys.path here. If the directory is relative to the
sys.path.insert(0, os.path.abspath('..'))

import cdrouter

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -52,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = u''
version = cdrouter.__version__
# The full version, including alpha/beta/rc tags.
release = u''
release = cdrouter.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys

here = path.abspath(path.dirname(__file__))

sys.path.insert(0, here)

import cdrouter

with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

setup(
name='cdrouter',
version='0.0.3',
version=cdrouter.__version__,
description='Python client for the CDRouter Web API',
long_description=long_description,
url='https://github.com/qacafe/cdrouter.py',
Expand Down

0 comments on commit 3a39a0c

Please sign in to comment.