We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3cadd4 commit 1273ec2Copy full SHA for 1273ec2
setup.py
@@ -1,7 +1,16 @@
1
+import re
2
import setuptools
3
4
with open("README.md", "r") as fh:
5
+ def func(m):
6
+ match = m.group()
7
+ url = m.group(1)
8
+ if url.startswith('resources/'):
9
+ return match.replace(url, 'https://raw.githubusercontent.com/NeuroDiffGym/neurodiffeq/master/' + url)
10
+ return match
11
+
12
long_description = fh.read()
13
+ long_description = re.sub(r"!\[.*?\]\((.*?)\)", func, long_description)
14
15
with open("requirements.txt", "r") as fh:
16
requirements = [line.strip() for line in fh.read().split('\n') if line.strip() != '']
0 commit comments