removed entry point from setup

renamed managed to realms-wiki and added to setup scripts
removed cli script from realms module
This commit is contained in:
Matthew Scragg 2014-09-18 21:49:48 -05:00
parent 81e76c6c19
commit 88134dbdce
3 changed files with 6 additions and 12 deletions

View File

@ -1,4 +0,0 @@
from realms.cli import main
if __name__ == '__main__':
main()

5
realms/cli.py → realms-wiki Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
from gevent import wsgi
from realms import config, app, cli, db
from realms.lib.util import random_string
@ -139,6 +141,5 @@ def drop_db():
click.echo("Dropping all tables")
db.drop_all()
def main():
if __name__ == '__main__':
cli()

View File

@ -8,7 +8,7 @@ with open('README.md') as f:
with open('requirements.txt') as f:
required = f.read().splitlines()
VERSION = '0.1.4'
VERSION = '0.1.8'
CLASSIFIERS = [
'Intended Audience :: Developers',
@ -21,6 +21,7 @@ setup(name='realms-wiki',
version=VERSION,
packages=find_packages(),
install_requires=required,
scripts=['realms-wiki'],
author='Matthew Scragg',
author_email='scragg@gmail.com',
maintainer='Matthew Scragg',
@ -31,8 +32,4 @@ setup(name='realms-wiki',
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
platforms=['any'],
classifiers=CLASSIFIERS,
entry_points='''
[console_scripts]
realms-wiki=realms.cli:main
''')
classifiers=CLASSIFIERS)