-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
80 lines (66 loc) · 2.29 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
75
76
77
78
79
80
# -*- coding: utf-8 -*-
"""mhmpy: a python API for the mesoscale Hydrological Model."""
import os
import codecs
import re
from setuptools import setup, find_packages
# find __version__ ############################################################
def read(*parts):
"""Read file data."""
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, *parts), "r") as fp:
return fp.read()
def find_version(*file_paths):
"""Find version without importing module."""
version_file = read(*file_paths)
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
###############################################################################
DOCLINES = __doc__.split("\n")
README = open("README.md").read()
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Utilities",
]
VERSION = find_version("mhmpy", "_version.py")
setup(
name="mhmpy",
version=VERSION,
maintainer="Sebastian Mueller",
maintainer_email="sebastian.mueller@ufz.de",
description=DOCLINES[0],
long_description=README,
long_description_content_type="text/markdown",
author="Sebastian Mueller",
author_email="info@geostat-framework.org",
url="https://github.com/MuellerSeb/mhmpy",
license="MIT",
classifiers=CLASSIFIERS,
platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
include_package_data=True,
install_requires=[
# "numpy>=1.13.0",
],
extras_require={},
packages=find_packages(exclude=["tests*", "docs*"]),
)