added setup.py for pip and easy_install
This commit is contained in:
parent
feb4e4ac88
commit
381a78eee2
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
|
@ -0,0 +1 @@
|
|||
include *.md
|
39
setup.py
Normal file
39
setup.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
from setuptools import setup
|
||||
|
||||
def readme():
|
||||
with open('README.md') as f:
|
||||
return f.read()
|
||||
|
||||
setup(name='transwhat',
|
||||
version='0.2',
|
||||
description='A gateway between the XMPP and the WhatsApp IM networks',
|
||||
long_description=readme(),
|
||||
keywords='whatsapp xmpp im gateway transport yowsup',
|
||||
url='https://github.com/stv0g/transwhat',
|
||||
author='Steffen Vogel',
|
||||
author_email='stv0g@0l.de',
|
||||
classifiers=[
|
||||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
||||
'Development Status :: 4 - Beta',
|
||||
'Environment :: Plugins',
|
||||
'Operating System :: POSIX',
|
||||
'Topic :: Communications :: Chat'
|
||||
],
|
||||
license='GPL-3+',
|
||||
packages=[
|
||||
'transWhat',
|
||||
'Spectrum2'
|
||||
],
|
||||
install_requires=[
|
||||
'protobuf',
|
||||
'yowsup2',
|
||||
'e4u',
|
||||
'Pillow',
|
||||
'python-dateutil'
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': ['transwhat=transWhat.transwhat:main'],
|
||||
},
|
||||
zip_safe=False,
|
||||
include_package_data=True
|
||||
)
|
0
transWhat/__init__.py
Normal file
0
transWhat/__init__.py
Normal file
|
@ -47,7 +47,7 @@ parser.add_argument('--host', type=str, required=True)
|
|||
parser.add_argument('--port', type=int, required=True)
|
||||
parser.add_argument('--service.backend_id', metavar="ID", type=int, required=True)
|
||||
parser.add_argument('config', type=str)
|
||||
parser.add_argument('-j', type=str, required=True)
|
||||
parser.add_argument('-j', type=str, metavar="JID", required=True)
|
||||
|
||||
args, unknown = parser.parse_known_args()
|
||||
|
Loading…
Reference in a new issue