setup.py 1.57 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
    name = 'villas-dataprocessing',
Jan Dinkelbach's avatar
Jan Dinkelbach committed
26
    version = '0.2.5',
Steffen Vogel's avatar
Steffen Vogel committed
27 28 29
    author = 'Markus Mirz, Jan Dinkelbach, Steffen Vogel',
    author_email = 'acs-software@eonerc.rwth-aachen.de',
    description = 'Several tools for processing simulation results',
30
    long_description_content_type='text/markdown',
Steffen Vogel's avatar
Steffen Vogel committed
31 32 33 34
    license = 'GPL-3.0',
    keywords = 'simulation power system real-time data processing',
    url = 'https://git.rwth-aachen.de/acs/public/villas/dataprocessing',
    packages = [ 'villas.dataprocessing' ],
35 36
    long_description = read('README.md'),
    classifiers = [
Steffen Vogel's avatar
Steffen Vogel committed
37 38 39 40 41 42 43
        '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'
44 45
    ],
    install_requires = [
Steffen Vogel's avatar
Steffen Vogel committed
46 47 48
        'matplotlib',
        'numpy',
        'pandas'
49 50 51 52 53
    ],
    setup_requires = [
        'm2r',
        'wheel'
    ]
54 55
)