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:
parent
81e76c6c19
commit
88134dbdce
5
realms/cli.py → realms-wiki
Normal file → Executable file
5
realms/cli.py → realms-wiki
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from gevent import wsgi
|
from gevent import wsgi
|
||||||
from realms import config, app, cli, db
|
from realms import config, app, cli, db
|
||||||
from realms.lib.util import random_string
|
from realms.lib.util import random_string
|
||||||
|
@ -139,6 +141,5 @@ def drop_db():
|
||||||
click.echo("Dropping all tables")
|
click.echo("Dropping all tables")
|
||||||
db.drop_all()
|
db.drop_all()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
def main():
|
|
||||||
cli()
|
cli()
|
9
setup.py
9
setup.py
|
@ -8,7 +8,7 @@ with open('README.md') as f:
|
||||||
with open('requirements.txt') as f:
|
with open('requirements.txt') as f:
|
||||||
required = f.read().splitlines()
|
required = f.read().splitlines()
|
||||||
|
|
||||||
VERSION = '0.1.4'
|
VERSION = '0.1.8'
|
||||||
|
|
||||||
CLASSIFIERS = [
|
CLASSIFIERS = [
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
@ -21,6 +21,7 @@ setup(name='realms-wiki',
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=required,
|
install_requires=required,
|
||||||
|
scripts=['realms-wiki'],
|
||||||
author='Matthew Scragg',
|
author='Matthew Scragg',
|
||||||
author_email='scragg@gmail.com',
|
author_email='scragg@gmail.com',
|
||||||
maintainer='Matthew Scragg',
|
maintainer='Matthew Scragg',
|
||||||
|
@ -31,8 +32,4 @@ setup(name='realms-wiki',
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
platforms=['any'],
|
platforms=['any'],
|
||||||
classifiers=CLASSIFIERS,
|
classifiers=CLASSIFIERS)
|
||||||
entry_points='''
|
|
||||||
[console_scripts]
|
|
||||||
realms-wiki=realms.cli:main
|
|
||||||
''')
|
|
Loading…
Reference in a new issue