Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
Proper configuration of Setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KohliDev committed Apr 30, 2016
1 parent 4e9aa7f commit ca74df2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include README.md
include requirements.txt
include BSD_LICENSE.txt
include BSD_NOTICE.txt
include example/graphite_simulated.py
include example/vrops_graphite_dk300_sample.py
include example/graphite_withTemp.py
include example/graphite_event_based.py
include example/sampleProp.conf
include config/liota.conf
include config/logging.json
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
websocket-client==0.37.0
linux-metrics==0.1.4
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,20 @@


from setuptools import setup, find_packages
import pip
from pip.req import parse_requirements
requirements = [
str(requirement.req)
for requirement in parse_requirements('requirements.txt', session=pip.download.PipSession())
]

# Get the long description from the README file
with open('README.md') as f:
long_description = f.read()

setup(
name='liota',
version='1.0',
version='0.1',
packages=find_packages(exclude=["*.json", "*.txt"]),
description='IoT Agent',
long_description=long_description,
Expand Down Expand Up @@ -71,7 +77,7 @@
keywords='iot liota agent',

# Installation requirement
install_requires=['websocket-client', 'linux_metrics'],
install_requires=requirements,

# 'data_file'(conf_files) at custom location
data_files=[('/etc/liota/example', ['example/graphite_simulated.py',
Expand Down

0 comments on commit ca74df2

Please sign in to comment.