diff --git a/README.rst b/README.rst index 1625003..6c337f3 100644 --- a/README.rst +++ b/README.rst @@ -51,5 +51,5 @@ Usage 'platform 9.75' -.. |Build Status| image:: https://travis-ci.com/jaidevd/numerizer.svg?branch=dev +.. |Build Status| image:: https://travis-ci.com/jaidevd/numerizer.svg?branch=master :target: https://travis-ci.com/jaidevd/numerizer diff --git a/numerizer/__init__.py b/numerizer/__init__.py new file mode 100644 index 0000000..39dda3a --- /dev/null +++ b/numerizer/__init__.py @@ -0,0 +1 @@ +from .numerizer import numerize # NOQA: F401 diff --git a/consts.py b/numerizer/consts.py similarity index 100% rename from consts.py rename to numerizer/consts.py diff --git a/numerizer.py b/numerizer/numerizer.py similarity index 99% rename from numerizer.py rename to numerizer/numerizer.py index 000a5f8..8e95129 100644 --- a/numerizer.py +++ b/numerizer/numerizer.py @@ -1,11 +1,8 @@ import re -import consts +from . import consts import sys -__version__ = "0.1.0" - - HYPHENATED = re.compile(r' +|([^\d])-([^\d])') isub = lambda x, y, s: re.sub(x, y, s, flags=re.IGNORECASE) # noqa: E731 diff --git a/setup.py b/setup.py index 3ec1862..c6a3cf2 100644 --- a/setup.py +++ b/setup.py @@ -22,12 +22,12 @@ 'Documentation': 'https://github.com/jaidevd/numerizer/tree/master/README.rst', 'Source Code': 'https://github.com/jaidevd/numerizer' } +VERSION = '0.1.4' # Requirements install_requires = [] # Setup -import numerizer # NOQA: E402 setup( name=NAME, maintainer=MAINTAINER, @@ -36,7 +36,7 @@ license=LICENSE, url=URL, download_url=DOWNLOAD_URL, - version=numerizer.__version__, + version=VERSION, long_description=LONG_DESCRIPTION, packages=find_packages(), install_requires=install_requires