-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (32 loc) · 845 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup
from setuptools import find_packages
import re
import sys
if sys.version_info < (3, 6):
sys.exit("Python 3.6 or newer is required.")
def find_text(key, file):
return re.search(r"^{} = '(.*)'$".format(key),
open(file, 'r').read(),
re.MULTILINE).group(1)
def find_v2xpreconfig_cmd():
return find_text('__cmd__', 'v2xpreconfig/v2xpreconfig.py')
setup(
name='auto-toolkits',
version='1.0.1',
license='Apache License 2.0',
packages=find_packages(),
package_data={
'v2xpreconfig': [
'*.asn'
]
},
install_requires=[
'asn1tools'
],
entry_points={
'console_scripts': [
'{}=v2xpreconfig.__init__:main'.format(find_v2xpreconfig_cmd())
]
}
)