1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

python: remove m2r from setup.py

This commit is contained in:
Steffen Vogel 2018-11-27 18:22:03 +01:00
parent ba041ea6fd
commit 1d36d817f0

View file

@ -1,30 +1,13 @@
import os, re
import os
from setuptools import setup
from glob import glob
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
with open('README.md') as f:
long_description = f.read()
setup(
name = 'villas-node',
version = '0.6.4',
version = '0.6.4.1',
author = 'Steffen Vogel',
author_email = 'acs-software@eonerc.rwth-aachen.de',
description = 'Python-support for VILLASnode simulation-data gateway',
@ -32,7 +15,8 @@ setup(
keywords = 'simulation power system real-time villas',
url = 'https://git.rwth-aachen.de/acs/public/villas/dataprocessing',
packages = [ 'villas.node' ],
long_description = read('README.md'),
long_description = long_description,
long_description_content_type = 'text/markdown',
classifiers = [
'Development Status :: 4 - Beta',
'Topic :: Scientific/Engineering',