forked from adjtomo/pyflex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (64 loc) · 2.27 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
69
70
71
72
73
74
#!/usr/bin/env python
# -*- encoding: utf8 -*-
import glob
import inspect
import io
import os
from setuptools import find_packages
from setuptools import setup
changelog = os.path.join(os.path.dirname(os.path.abspath(
inspect.getfile(inspect.currentframe()))), "CHANGELOG.md")
with open(changelog, "rt") as fh:
changelog = fh.read()
long_description = """
Source code: https://github.com/krischer/pyflex
Documentation: http://krischer.github.io/pyflex
%s""".strip() % changelog
def read(*names, **kwargs):
return io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8")).read()
setup(
name="pyflex",
version="0.1.5",
license='GNU General Public License, Version 3 (GPLv3)',
description="Python port of the FLEXWIN package",
long_description=long_description,
author="Lion Krischer",
author_email="krischer@geophysik.uni-muenchen.de",
url="https://github.com/krischer/pyflex",
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=[os.path.splitext(os.path.basename(i))[0]
for i in glob.glob("src/*.py")],
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
keywords=[
"seismology", "flexwin", "science", "tomography", "inversion"
],
install_requires=[
"obspy >= 1.0", "flake8", "pytest", "nose"
],
extras_require={
"docs": ["sphinx", "ipython", "runipy"]
}
)