added setup.py for pip and easy_install

This commit is contained in:
Steffen Vogel 2016-04-06 21:08:29 +02:00
parent feb4e4ac88
commit 381a78eee2
14 changed files with 41 additions and 1 deletions

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
include *.md

39
setup.py Normal file
View 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
View File

View 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()