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

Commit ca74df2

Browse files
committed
Proper configuration of Setup.py
1 parent 4e9aa7f commit ca74df2

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include README.md
2+
include requirements.txt
3+
include BSD_LICENSE.txt
4+
include BSD_NOTICE.txt
5+
include example/graphite_simulated.py
6+
include example/vrops_graphite_dk300_sample.py
7+
include example/graphite_withTemp.py
8+
include example/graphite_event_based.py
9+
include example/sampleProp.conf
10+
include config/liota.conf
11+
include config/logging.json

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
websocket-client==0.37.0
2+
linux-metrics==0.1.4

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@
3232

3333

3434
from setuptools import setup, find_packages
35+
import pip
36+
from pip.req import parse_requirements
37+
requirements = [
38+
str(requirement.req)
39+
for requirement in parse_requirements('requirements.txt', session=pip.download.PipSession())
40+
]
3541

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

4046
setup(
4147
name='liota',
42-
version='1.0',
48+
version='0.1',
4349
packages=find_packages(exclude=["*.json", "*.txt"]),
4450
description='IoT Agent',
4551
long_description=long_description,
@@ -71,7 +77,7 @@
7177
keywords='iot liota agent',
7278

7379
# Installation requirement
74-
install_requires=['websocket-client', 'linux_metrics'],
80+
install_requires=requirements,
7581

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

0 commit comments

Comments
 (0)