setup.py 1.52 KB
Newer Older
Steffen Vogel's avatar
Steffen Vogel committed
1
import os, re
Steffen Vogel's avatar
Steffen Vogel committed
2
from setuptools import setup
3

Steffen Vogel's avatar
Steffen Vogel committed
4 5 6 7 8
def cleanhtml(raw_html):
    cleanr = re.compile('<.*?>')
    cleantext = re.sub(cleanr, '', raw_html)
    return cleantext

9 10 11 12
def read(fname):
    dname = os.path.dirname(__file__)
    fname = os.path.join(dname, fname)

Steffen Vogel's avatar
Steffen Vogel committed
13 14 15 16 17 18 19 20 21 22
    with open(fname) as f:
        contents = f.read()
        sanatized = cleanhtml(contents)

        try:
            from m2r import M2R
            m2r = M2R()
            return m2r(sanatized)
        except:
            return sanatized
23 24

setup(
Steffen Vogel's avatar
Steffen Vogel committed
25 26
    name = "villas-dataprocessing",
    version = "0.2.0",
27 28 29 30 31 32
    author = "Markus Mirz, Jan Dinkelbach, Steffen Vogel",
    author_email = "acs-software@eonerc.rwth-aachen.de",
    description = "Several tools for processing simulation results",
    license = "GPL-3.0",
    keywords = "simulation power system real-time data processing",
    url = "https://git.rwth-aachen.de/acs/public/simulation/data-processing",
Steffen Vogel's avatar
Steffen Vogel committed
33
    packages = [ "villas.dataprocessing" ],
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    long_description = read('README.md'),
    classifiers = [
        "Development Status :: 4 - Beta",
        "Topic :: Scientific/Engineering",
        "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python :: 3"
    ],
    install_requires = [
        "matplotlib",
        "numpy",
        "pandas"
    ],
    setup_requires = [
        'm2r',
        'wheel'
    ]
53 54
)