mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-04 19:32:11 +01:00
Added command line registration (#2)
This commit is contained in:
6
setup.py
6
setup.py
@@ -9,7 +9,6 @@ def get_version():
|
|||||||
file_text = file_handle.read()
|
file_text = file_handle.read()
|
||||||
version_match = re.search(r'.* __version__ = [\'"]([^\'"]*)[\'"]', file_text)
|
version_match = re.search(r'.* __version__ = [\'"]([^\'"]*)[\'"]', file_text)
|
||||||
if version_match:
|
if version_match:
|
||||||
print version_match.group(1)
|
|
||||||
return version_match.group(1)
|
return version_match.group(1)
|
||||||
raise RuntimeError("Unable to identify version string.")
|
raise RuntimeError("Unable to identify version string.")
|
||||||
|
|
||||||
@@ -28,5 +27,8 @@ setup(
|
|||||||
'bdist_wheel': {'universal': True}
|
'bdist_wheel': {'universal': True}
|
||||||
},
|
},
|
||||||
platform=['any'],
|
platform=['any'],
|
||||||
url='https://github.com/jongracecox/anybadge'
|
url='https://github.com/jongracecox/anybadge',
|
||||||
|
entry_points = {
|
||||||
|
'console_scripts': ['anybadge=anybadge:main'],
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user