Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
6487b49
1
Parent(s):
f59f827
Don't include README in docker
Browse files- Dockerfile +0 -1
- setup.py +5 -2
Dockerfile
CHANGED
@@ -37,7 +37,6 @@ RUN pip3 install -r /pysr/requirements.txt
|
|
37 |
# Install PySR:
|
38 |
# We do a minimal copy so it doesn't need to rerun at every file change:
|
39 |
ADD ./setup.py /pysr/setup.py
|
40 |
-
ADD ./README.md /pysr/README.md
|
41 |
ADD ./pysr/ /pysr/pysr/
|
42 |
RUN pip3 install .
|
43 |
|
|
|
37 |
# Install PySR:
|
38 |
# We do a minimal copy so it doesn't need to rerun at every file change:
|
39 |
ADD ./setup.py /pysr/setup.py
|
|
|
40 |
ADD ./pysr/ /pysr/pysr/
|
41 |
RUN pip3 install .
|
42 |
|
setup.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import setuptools
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
setuptools.setup(
|
7 |
name="pysr",
|
|
|
1 |
import setuptools
|
2 |
|
3 |
+
try:
|
4 |
+
with open("README.md", "r") as fh:
|
5 |
+
long_description = fh.read()
|
6 |
+
except FileNotFoundError:
|
7 |
+
long_description = ""
|
8 |
|
9 |
setuptools.setup(
|
10 |
name="pysr",
|