forked from joergbuchwald/VTUinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (46 loc) · 1.89 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
# -*- coding: utf-8 -*-
"""VTUinterface: a python PVD/VTU API"""
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.")
VERSION = find_version("VTUinterface", "_version.py")
###############################################################################
README = open("README.md").read()
setup(name="VTUinterface",
version=VERSION,
maintainer="Jörg Buchwald",
maintainer_email="[email protected]",
author="Jörg Buchwald",
author_email="[email protected]",
url="https://github.com/joergbuchwald/VTUinterface",
long_description=README,
long_description_content_type="text/markdown",
classifiers=["Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Mathematics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8"],
license="BSD-3 - see LICENSE.txt",
platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
include_package_data=True,
install_requires=["lxml", "vtk", "pandas", "scipy"],
py_modules=["vtuIO"],
package_dir={'': 'VTUinterface'})