-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
46 lines (39 loc) · 1.44 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
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def get_version(relative_path: str) -> str:
package_root = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(os.path.join(package_root, relative_path)) as version_fp:
exec(version_fp.read(), version)
return version["__version__"]
with open("README.md", "r", encoding="utf-8") as readme:
long_description = readme.read()
setup(
name="midea-beautiful-air",
version=get_version("midea_beautiful/version.py"),
url="https://github.com/nbogojevic/midea-beautiful-air",
author="Nenad Bogojević",
author_email="[email protected]",
license="MIT",
description=("A library to control Midea appliances via the local network"),
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.8",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Home Automation",
],
entry_points="""
[console_scripts]
midea-beautiful-air-cli=midea_beautiful.cli:cli
""",
install_requires=["cryptography>=3.0", "requests>=2.0"],
)