-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (29 loc) · 966 Bytes
/
setup.py
File metadata and controls
34 lines (29 loc) · 966 Bytes
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
#!/usr/bin/env python3
# BSD License (c) 2017, UFactory, Inc.
# Author: Vinman <vinman.wen@ufactory.cc>
import os
# Prefer setuptools but fall back to distutils if needed
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Load version from xarm/version.py
main_ns = {}
with open(os.path.join(os.getcwd(), 'xarm/version.py')) as f:
exec(f.read(), main_ns)
version = main_ns['__version__']
# Read README.rst and requirements.txt
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
with open(os.path.join(os.getcwd(), 'requirements.txt'), encoding='utf-8') as f:
requirements = f.read().splitlines()
setup(
name="xarm-python-sdk",
version=version,
packages=['xarm'],
install_requires=requirements,
author="Vinman <vinman.wen@ufactory.cc>",
description="Python SDK for xArm Robotics",
long_description=long_description,
python_requires=">=3.0",
)