From 8ff32dd321c87f534c9dd5e019f4525b510bf530 Mon Sep 17 00:00:00 2001 From: Vishal Gowda Date: Fri, 10 Mar 2017 01:50:37 +0530 Subject: [PATCH] Add MANIFEST --- .gitignore | 2 ++ MANIFEST.in | 11 +++++++++++ requirements.txt | 7 +------ setup.py | 20 ++++++++++++++++++++ 4 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 48ebb23..17aba61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pyc var/* +dist/ +*egg-info* diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..6e289f2 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,11 @@ +include requirements.txt +include hedroid/common_settings.py +include hedroid/__init__.py +include hedroid/logger.py +include hedroid/master/__init__.py +include hedroid/master/thrift_client.py +recursive-include hedroid/master/tgen * +recursive-exclude hedroid/worker * +exclude hedroid/master/zk_master.py +exclude hedroid/master/thrift_server.py +exclude hedroid/master/settings.py diff --git a/requirements.txt b/requirements.txt index 4d541db..16015fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,4 @@ -appdirs==1.4.2 -packaging==16.8 psutil==5.1.3 -pyparsing==2.1.10 -requests==2.13.0 -six==1.10.0 -thrift==0.10.0 +thrift==0.9.3 subprocess32==3.2.7 kazoo==2.2.1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..19128df --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +from setuptools import setup, find_packages +from pip.req import parse_requirements + +# parse_requirements() returns generator of pip.req.InstallRequirement objects +install_reqs = parse_requirements('./requirements.txt', session='hack') + +# reqs is a list of requirement +reqs = [str(ir.req) for ir in install_reqs] + +setup( + name="he-emulator-client", + version="0.0.1", + packages=find_packages(), + install_requires=reqs, + include_package_data=True, + author="Vishal Gowda", + author_email="vishal@hackerearth.com", + description="This package contains the Thrift client for "\ + "emulator endpoints", +)