-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
62 lines (54 loc) · 2.16 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
environment = dict()
with open("butter/mas/environment.py") as f:
exec(f.read(), environment)
with open('README.md', encoding="utf8") as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
# install_requires = list()
# with open('requirements.txt', 'r', encoding='utf-8') as f:
# for line in f.readlines():
# install_requires.append(line.split("=")[0].strip("<~>"))
setup(
name=environment['app_name'],
version=environment['__version__'],
description='Python Client API for Butter MAS platform',
long_description_content_type='text/markdown',
long_description=readme,
author='Benny Megidish',
author_email='bennymegk@gmail.com',
url='https://butterrobotics.com',
install_requires=['requests', 'packaging'],
extras_requires={"dev": ['twine']},
# license=license,
license='Apache-2.0',
packages=find_packages(exclude=('tests', 'docs')),
project_urls={
'Documentation': 'https://butterrobotics.com/#/library/documentation/mas_os_python_api',
'Source': 'https://github.com/bennymeg/Butter.MAS.PythonAPI',
'Tracker': 'https://github.com/bennymeg/Butter.MAS.PythonAPI/issues',
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
],
)
''' how to deploy '''
# python setup.py sdist bdist_wheel
# python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# pip install --index-url https://test.pypi.org/simple/ --no-deps butter.mas-api
# python -m twine upload dist/*
# pip install -U butter.mas-api
''' how to generate and serve documentation '''
# cd sphinx
# ./serve
# update tree.json file if a new file was added (the first file on the list is the default one)