forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (49 loc) · 1.25 KB
/
setup.py
File metadata and controls
62 lines (49 loc) · 1.25 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
#!/usr/bin/env python
# coding: utf-8
"""
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)
with open('README.rst', 'r') as f:
long_description = f.read()
logging.basicConfig(level=logging.WARNING)
setup(
# Description
name="python-can",
url="https://github.com/hardbyte/python-can",
description="Controller Area Network interface module for Python",
long_description=long_description,
# Code
version=version,
packages=find_packages(),
# Author
author="Brian Thorne",
author_email="brian@thorne.link",
# License
license="LGPL v3",
# Package data
package_data={
"": ["CONTRIBUTORS.txt", "LICENSE.txt"],
"doc": ["*.*"]
},
# Installation
install_requires=[
#'Deprecated >= 1.1.0',
],
extras_require={
'serial': ['pyserial >= 3.0'],
'neovi': ['python-ics'],
},
# Testing
test_suite="nose.collector",
tests_require=[
'mock',
'nose',
'pyserial >= 3.0'
],
)