-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
30 lines (25 loc) · 884 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
from setuptools import setup, find_packages
try:
with open("requirements.txt", encoding="utf-8") as r:
requires = [i.strip() for i in r]
except FileNotFoundError:
requires = ["httpx>=0.25.0", "websockets>=11.0.3", "aiofiles"]
try:
import pypandoc
long_description = pypandoc.convert_file("README.md", "rst")
except (IOError, ImportError):
long_description = open("README.md", encoding="utf8").read()
setup(
name="swibots",
version="1.4.62",
packages=find_packages(include=['swibots*']),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/switchcollab/Switch-Bots-Python-Library",
description="Bots Library for Switch",
author="switchadmin",
author_email="support@switch.pe",
license="LGPLv3",
python_requires=">=3.10",
install_requires=requires,
)