forked from LiamBindle/PyVESC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
75 lines (61 loc) · 2.99 KB
/
Copy pathsetup.py
File metadata and controls
75 lines (61 loc) · 2.99 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
"""
File containing the required information to successfully build a python package
"""
import setuptools
# with open("README.md", "r", encoding="utf-8", newline="\n") as fh:
# long_description = fh.read()
long_description = """
# PyVESC [](https://travis-ci.org/LiamBindle/PyVESC) [](http://pyvesc.readthedocs.io/en/latest/?badge=latest)
PyVESC is aimed at being a easy to use and robust python implementation of the
communication protocol used by the
[VESC - Open Source ESC](http://vedder.se/2015/01/vesc-open-source-esc/) by
Benjamin Vedder. Its a great project with a really great community and I'd urge
anyone interested in motor controllers to take a look at it.
That being said, if you're here you probably already know about it. This small
project was written by Liam Bindle for the
[University of Saskatchewan Space Design Team](https://usst.ca)
as our primary language for non-embedded system is Python. You might wonder why
you might need a library to handling packing and parsing VESC messages since
Pythons standard
[struct](https://docs.python.org/3.5/library/struct.html)
module is great for almost exaclty this. PyVESC's usefulness comes from the fact
that PyVESC is:
- Well tested
- Robust in handling corrupt packets in a buffer
- Messages are easily extensible so that PyVESC can be used as a generic
message/codec protocol (ie. at the USST we use PyVESC for sending messages to
all of our embedded systems)
- Implements a number of common-error catching exceptions to speed up your
development
## Documentation
For the latest version of PyVESC's documentation [Read The Docs](http://pyvesc.readthedocs.io/en/latest/)
## Contributing
Obviously this is just a quick and dirty project; however, if you have any ideas,
critiques or changes just let me know or submit a pull request.
## License
Just like VESC, PyVESC is distributed under a
[Creative Commons ShareALike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
"""
VERSION = '1.0.0'
setuptools.setup(
name='pyvesc_fix',
version=VERSION,
packages=setuptools.find_packages(),
install_requires=[
'pyserial==3.5',
'crccheck>=0.6',
'pythoncrc==1.21'
],
author="Henry Letellier",
author_email="henrysoftwarehouse@protonmail.com",
description="This is a repackagin of a fork from the pyvesc library.",
long_description=f"This is a repackaging of the (broken) package pyvesc\nThis package can be found here: https://pypi.org/project/pyvesc/\n{long_description}",
long_description_content_type="text/markdown",
url="https://github.com/Hanra-s-work/PyVESC",
keywords=['vesc', 'VESC', 'communication', 'protocol', 'packet'],
download_url='https://github.com/Hanra-s-work/PyVESC' + VERSION,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)