Added command line registration (#2)

This commit is contained in:
Jon Grace-Cox
2017-09-11 21:23:47 -04:00
parent dedb789c0c
commit 4fc7d5071e

View File

@@ -9,7 +9,6 @@ def get_version():
file_text = file_handle.read()
version_match = re.search(r'.* __version__ = [\'"]([^\'"]*)[\'"]', file_text)
if version_match:
print version_match.group(1)
return version_match.group(1)
raise RuntimeError("Unable to identify version string.")
@@ -28,5 +27,8 @@ setup(
'bdist_wheel': {'universal': True}
},
platform=['any'],
url='https://github.com/jongracecox/anybadge'
url='https://github.com/jongracecox/anybadge',
entry_points = {
'console_scripts': ['anybadge=anybadge:main'],
}
)