-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (32 loc) · 947 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import io
import os
from setuptools import setup
def read_file(path, encoding="utf8", default=None):
try:
# Calculate the absolute path relative to this file
absolute_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
path,
)
# Use io.open since it works the same in Python 2 and 3
with io.open(absolute_path, "r", encoding=encoding) as f:
return f.read()
except Exception as e:
return default
setup(
name="PyBotVac",
version="0.1.0",
description="Unofficial pythonic API for Neato BotVac",
long_description=read_file("README.rst"),
license="BSD",
author="Andreas Runfalk",
author_email="andreas@runfalk.se",
url="https://github.com/runfalk/pybotvac/",
packages=["pybotvac"],
zip_safe=False,
platforms="any",
install_requires=[
"requests",
"requests-oauthlib",
],
)