-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
73 lines (60 loc) · 1.82 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
63
64
65
66
67
68
69
70
71
72
73
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def read_file_contents(path):
import codecs
with codecs.open(path, encoding="utf-8") as f:
return f.read()
EXTRA_REQUIRES = dict(
develop=[
# Linting, according to PEP8
'flake8==3.8.3',
# Type checker
'mypy==0.780',
# Profiling
'line_profiler==3.1.0',
'flameprof==0.4',
# Testing
'pytest==6.0.1',
'pytest-runner==5.2',
# Build
'setuptools_scm>=6.2',
'importlib-metadata',
'wheel'
]
)
setup(
name='tarpn-core',
use_scm_version=True,
setup_requires=['setuptools_scm'],
packages=find_packages(exclude=["tests", "tests.*"]),
data_files=[
("config", ["config/defaults.ini", "config/node.ini.sample", "config/logging.ini"])
],
url='https://github.com/tarpn/tarpn-node-controller',
license='MIT License',
author='David Arthur',
author_email='[email protected]',
description='Python networking stack for packet radio',
long_description=read_file_contents(os.path.join(here, "README.md")),
long_description_content_type="text/markdown",
entry_points={
'console_scripts': [
'tarpn-serial-dump = tarpn.tools.serial_dump:main',
'tarpn-packet-dump = tarpn.tools.packet_dump:main',
'tarpn-node = tarpn.main:main',
'tarpn-app = tarpn.app.runner:main'
]},
python_requires='>=3.7',
install_requires=[
'hexdump==3.3',
'pyserial==3.4',
'pyserial-asyncio==0.4',
'msgpack==1.0.0',
'pyformance==0.4',
'Flask==1.1.2',
'networkx==2.6.2',
'cmd2==2.1.2'
],
extras_require=EXTRA_REQUIRES
)