-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (53 loc) · 2.13 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
64
65
66
67
68
"""A module which goes through the setup of files"""
from setuptools import setup, find_packages
def parse_meta(path_to_meta):
"""
A function to parse through meta.py file
path_to_meta: string
metadata path.
returns metadata from meta.py file
"""
with open(path_to_meta) as f:
meta = {}
for line in f.readlines():
if line.startswith("__version__"):
meta["__version__"] = line.split('"')[1]
return meta
meta = parse_meta("hvsrprocpy/meta.py")
with open("README.md", encoding="utf8") as f:
long_description = f.read()
setup(
name='hvsrprocpy',
version=meta['__version__'],
description='A python library for performing horizontal-to-vertical spectral ratio (HVSR) processing',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/fjornelas/hvsrprocpy',
license='GNU General Public License v3',
author='Francisco Javier Ornelas',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Version Control :: Git',
],
keywords='HVSR, FAS, Time Series, microtremors',
packages=find_packages(),
python_requires='>=3.8',
install_requires=['numpy>=1.20', 'pandas', 'matplotlib', 'obspy', 'scipy',
'parzenpy'],
project_urls={
'Bug Reports': 'https://github.com/fjornelas/hvsrprocpy/issues',
'Source': 'https://github.com/fjornelas/hvsrprocpy/',
'Docs': 'https://fjornelas.github.io/hvsrprocpy/'
},
)