Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Data Processing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
Data Processing
Commits
cae2c788
Commit
cae2c788
authored
Oct 28, 2018
by
Steffen Vogel
🎅🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanatize README
parent
2a97130c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
setup.py
setup.py
+16
-7
No files found.
setup.py
View file @
cae2c788
import
os
import
os
,
re
from
setuptools
import
setup
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
)
try
:
import
m2r
return
m2r
.
parse_from_file
(
fname
)
except
ImportError
:
with
open
(
fname
)
as
f
:
return
f
.
read
()
with
open
(
fname
)
as
f
:
contents
=
f
.
read
()
sanatized
=
cleanhtml
(
contents
)
try
:
from
m2r
import
M2R
m2r
=
M2R
()
return
m2r
(
sanatized
)
except
:
return
sanatized
setup
(
name
=
"villas-dataprocessing"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment