-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·113 lines (104 loc) · 3.12 KB
/
setup.py
File metadata and controls
executable file
·113 lines (104 loc) · 3.12 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2019-2021 by Murray Altheim. All rights reserved. This file is part
# of the K-Series Robot Operating System (KROS) project, released under the MIT
# License. Please see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# created: 2019-12-23
# modified: 2021-04-21
#
# See: https://setuptools.readthedocs.io/en/latest/userguide/index.html
# https://setuptools.readthedocs.io/en/latest/userguide/quickstart.html
#
# future requires:
# 'psutil',
# 'gpiozero',
# 'board',
# 'pyquaternion'
# 'rpi.gpio', \
# 'adafruit-extended-bus', \
# 'pymessagebus==1.*', \
# 'ht0740', \
# 'pimoroni-ioexpander', \
# 'adafruit-circuitpython-bno08x', \
# 'matrix11x7', \
#
# you may find that you need to install psutil via apt:
#
# % sudo apt-get install python3-psutil
#
# To build the package:
#
# % python3 -m build
#
# Then to download dependencies and install:
#
# % sudo ./setup.py install
#
# To run tests:
#
# % pytest --pyargs kros-core
#
from setuptools import setup, find_packages
from glob import glob
from os.path import basename
from os.path import splitext
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
NAME='kros-core'
with open('VERSION') as f:
_version = f.read().strip()
with open('README.rst') as f:
_long_description = f.read()
print('-- configuring: {}, version {}...\n'.format(NAME, _version))
setup(
name=NAME,
version=_version,
description="Robot Operating System - Core, K-Series Robots",
long_description=_long_description,
long_description_content_type="text/x-rst",
author='Ichiro Furusato',
author_email='ichiro.furusato@gmail.com',
url='https://github.com/ifurusato/kros-core',
license='MIT',
python_requires='>=3.8.0',
package_dir={'': 'core'},
packages=find_packages('core'),
py_modules=[splitext(basename(path))[0] for path in glob('core/*.py')],
include_package_data=True,
install_requires=[
'colorama',
'numpy',
'pytest',
'pyyaml',
'dill',
'gpiozero',
'psutil',
'ads1015',
'rgbmatrix5x5',
'pimoroni-ioexpander'
# 'evdev' # for gamepad
],
test_suite='tests',
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Other OS',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Framework :: Robot Framework',
'Framework :: Robot Framework :: Library',
'Framework :: Robot Framework :: Tool',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=[
'robots', 'robotics'
],
)
print('-- complete.')
#EOF