-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
executable file
·63 lines (54 loc) · 1.79 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Installation and deployment script."""
import glob
import os
import sys
try:
from setuptools import find_packages, setup
except ImportError:
from distutils.core import find_packages, setup
try: # for pip >= 10
from pip._internal.download import PipSession
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.download import PipSession
from pip.req import parse_requirements
# Change PYTHONPATH to include UnifiedLog so that we can get the version.
sys.path.insert(0, '.')
import UnifiedLog # pylint: disable=wrong-import-position
unifiedlog_description = (
'A parser for Unified logging .tracev3 files.')
unifiedlog_long_description = (
'A parser for Unified logging .tracev3 files.')
setup(
name='UnifiedLog',
version=UnifiedLog.__version__,
description=unifiedlog_description,
long_description=unifiedlog_long_description,
license='MIT',
url='https://github.com/ydkhatri/UnifiedLogReader',
maintainer='Yogesh Khatri',
maintainer_email='[email protected]',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
"License :: OSI Approved :: MIT License",
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
python_requires='>=3.6',
packages=find_packages('.', exclude=[
'tests', 'tests.*']),
package_dir={
'UnifiedLog': 'UnifiedLog'
},
scripts=glob.glob(os.path.join('scripts', '[A-Za-z]*.py')),
data_files=[
('share/doc/UnifiedLog', [
'LICENSE.txt', 'README.md']),
],
install_requires=[str(req.req) for req in parse_requirements(
'requirements.txt', session=PipSession(),
)],
)