forked from agilescientific/striplog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (53 loc) · 1.77 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
# -*- coding: utf-8 -*-
"""
Python installation file.
:copyright: 2016 Agile Geoscience
:license: Apache 2.0
"""
from setuptools import setup
import re
verstr = 'unknown'
VERSIONFILE = "striplog/_version.py"
with open(VERSIONFILE, "r")as f:
verstrline = f.read().strip()
pattern = re.compile(r"__version__ = ['\"](.*)['\"]")
mo = pattern.search(verstrline)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
REQUIREMENTS = ['numpy',
'matplotlib',
'scipy',
'requests',
]
TEST_REQUIREMENTS = ['pytest',
'coveralls',
'pytest-cov',
'pytest-mpl'
]
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
]
setup(name='striplog',
version=verstr,
description='Tools for making and managing 1D subsurface data.',
url='http://github.com/agile-geoscience/striplog',
author='Agile Scientific',
author_email='[email protected]',
license='Apache 2',
packages=['striplog'],
tests_require=TEST_REQUIREMENTS,
test_suite='run_tests',
install_requires=REQUIREMENTS,
classifiers=CLASSIFIERS,
zip_safe=False,
)