Newer
Older
def cleanhtml(raw_html):
cleanr = re.compile('<.*?>')
cleantext = re.sub(cleanr, '', raw_html)
return cleantext
def read(fname):
dname = os.path.dirname(__file__)
fname = os.path.join(dname, fname)
with open(fname) as f:
contents = f.read()
sanatized = cleanhtml(contents)
try:
from m2r import M2R
m2r = M2R()
return m2r(sanatized)
except:
return sanatized
author = 'Markus Mirz, Jan Dinkelbach, Steffen Vogel',
author_email = 'acs-software@eonerc.rwth-aachen.de',
description = 'Several tools for processing simulation results',
long_description_content_type='text/markdown',
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' ],
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'
],
setup_requires = [
'm2r',
'wheel'
]