Skip to content

Commit

Permalink
Merge pull request #169 from amperser/versioning
Browse files Browse the repository at this point in the history
Consolidate hardcoding of version number
  • Loading branch information
suchow authored and laraross committed Sep 28, 2015
2 parents ec16c80 + bf51382 commit 58e961a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion proselint/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import time
import importlib
import sys
from .version import __version__


base_url = "prose.lifelinter.com/"
Expand Down Expand Up @@ -167,7 +168,7 @@ def proselint(file=None, version=None, initialize=None,
"""Define the linter command line API."""
# Return the version number.
if version:
print("v0.0.1")
print(__version__)
return

# Run the intialization.
Expand Down
3 changes: 3 additions & 0 deletions proselint/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Wallace version number."""

__version__ = "0.2.0"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Installation script for proselint."""

from setuptools import setup
from proselint.version import __version__

setup(
name='proselint',
version='0.1',
version=__version__,
description='Making your writing better',
url='http://github.com/amperser/proselint',
author='Jordan Suchow',
Expand Down

0 comments on commit 58e961a

Please sign in to comment.