/
setup.py
46 lines (43 loc) · 1.17 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
#
# setup.py file for netops
#
from setuptools import setup
# Directory of the current file in the (hopefully) most reliable way
# possible, according to krischer
import sys
import os
import inspect
SETUP_DIRECTORY = os.path.dirname(os.path.abspath(inspect.getfile(
inspect.currentframe())))
# Import the version string.
UTIL_PATH = os.path.join(SETUP_DIRECTORY, "nsl", "util")
sys.path.insert(0, UTIL_PATH)
from version import get_git_version # @UnresolvedImport
sys.path.pop(0)
s_args = {
'name': 'nsl.common',
'version': get_git_version(),
'description': 'NSL Common libraries and utilities for Python',
'author': 'Nevada Seismological Lab',
'url': 'https//github.com/NVSeismoLab',
'packages': [
'nsl',
'nsl.common',
'nsl.common.logging',
'nsl.antelope',
'nsl.antelope.base',
'nsl.antelope.packets',
'nsl.antelope.rows',
'nsl.antelope.util',
'nsl.converters',
'nsl.obspy',
'nsl.obspy.patches',
'nsl.util',
],
'package_data': {
'nsl': ['RELEASE-VERSION'],
'nsl.antelope.packets': ['packettypes.yml'],
},
}
# Go
setup(**s_args)