-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
49 lines (44 loc) · 1.35 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
# Go get the version
from pathlib import Path
def get_version(relative_path):
path_to_version = Path(__file__).resolve().parent.joinpath(relative_path)
with open(path_to_version, 'r') as _file:
for line in _file:
print(line)
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
with open("README.md", "r") as _file:
long_descript = _file.read()
setuptools.setup(
name='pyltg',
version=get_version("pyltg/__init__.py"),
author='Phillip Bitzer',
author_email='bitzerp@uah.edu',
description='A package for working with (mostly) lightning Data',
long_description=long_descript,
long_description_content_type='text/markdown',
url='https://www.nsstc.uah.edu/users/phillip.bitzer/python_doc/pyltg/',
keywords='lightning',
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD-4-Clause',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
install_requires=[
'numpy',
'netcdf4',
'pandas',
'matplotlib',
'scipy',
'pyproj',
'cartopy',
'lmfit',
'pip',
],
extras_require={
"LMA Flash Sort Read": ["pytables"],
},
)