-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
55 lines (47 loc) · 1.65 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
from setuptools import setup
from os import path
def get_version():
"""
Find the value assigned to __version__ in las.py.
This function assumes that there is a line of the form
__version__ = "version-string"
in las.py. It returns the string version-string, or None if such a
line is not found.
"""
with open("las.py", "r") as f:
for line in f:
s = [w.strip() for w in line.split("=", 1)]
if len(s) == 2 and s[0] == "__version__":
return s[1][1:-1]
# Get the long description from README.rst.
_here = path.abspath(path.dirname(__file__))
with open(path.join(_here, 'README.rst')) as f:
_long_description = f.read()
setup(
name='las',
version=get_version(),
author='Warren Weckesser',
description=("A reader for Canadian Well Logging Society LAS "
"(Log ASCII Standard) files."),
long_description=_long_description,
long_description_content_type='text/x-rst',
url="https://github.com/WarrenWeckesser/las",
license="BSD",
classifiers=[
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
py_modules=["las"],
install_requires=[
'numpy >= 1.5.0',
],
keyword="numpy las reader",
)