-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
44 lines (38 loc) · 1.36 KB
/
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
39
40
41
42
43
44
import pathlib
from setuptools import setup, find_namespace_packages
try:
import re2 as re
except ImportError:
import re
base_package = "milasdk"
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# Pull the version from __init__.py so we don't need to maintain it in multiple places
init_txt = (HERE / base_package / "__init__.py").read_text("utf-8")
try:
version = re.findall(r"^__version__ = ['\"]([^'\"]+)['\"]\r?$", init_txt, re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
# This call to setup() does all the work
setup(
name="milasdk",
version=version,
description="Python SDK for Mila Air Purifiers",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/simbaja/milasdk",
author="Jack Simbach",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
],
packages=find_namespace_packages(include=[base_package, f"{base_package}*"]),
package_data={'': ['*.gql']},
include_package_data=True,
install_requires=["aiohttp", "magicattr", "gql", "StrEnum","oauthlib","async_oauthlib"]
)