-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathsetup.py
executable file
·38 lines (34 loc) · 1.2 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
import sys
PYTHON_VERSION = sys.version_info[:2]
if (2, 7) != PYTHON_VERSION < (3, 5):
print("This mycobot version requires Python2.7, 3.5 or later.")
sys.exit(1)
import setuptools
import pymycobot
if PYTHON_VERSION == (2, 7):
long_description = ""
else:
long_description = open("pymycobot/README.md").read()
setuptools.setup(
name="pymycobot",
version=pymycobot.__version__,
author=pymycobot.__author__,
author_email=pymycobot.__email__,
description="Python API for serial communication of MyCobot.",
long_description=long_description,
long_description_content_type="text/markdown",
url=pymycobot.__git_url__,
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=["pyserial"],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*",
)