forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 1.07 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
"""
python-can requires the setuptools package to be installed.
"""
import re
import logging
from setuptools import setup, find_packages
with open('can/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
logging.basicConfig(level=logging.WARNING)
setup(
name="python-can",
url="https://github.com/hardbyte/python-can",
version=version,
packages=find_packages(),
author="Brian Thorne",
author_email="[email protected]",
description="Controller Area Network interface module for Python",
long_description=open('README.rst').read(),
license="LGPL v3",
package_data={
"": ["CONTRIBUTORS.txt", "LICENSE.txt"],
"doc": ["*.*"]
},
entry_points={"console_scripts": [
"canlogger = can.io.logger:main",
"canplayer = can.io.player:main",
"canserver = can.interfaces.remote.__main__:main"
]},
# Tests can be run using `python setup.py test`
test_suite="nose.collector",
tests_require=['mock', 'nose']
)