Skip to content

Commit ddc8ff9

Browse files
committed
Merge branch 'master' of github.com:mathics/Mathics
2 parents eefcab1 + 0a572fa commit ddc8ff9

25 files changed

Lines changed: 1421 additions & 650 deletions

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
*.py[cod]
77
*.so
88
.coverage
9+
.idea/
910
.mypy_cache
1011
.project
1112
.pydevproject
1213
.settings
1314
.vscode
15+
/.cache
1416
/.python-version
17+
/Mathics3.egg-info
18+
ChangeLog
1519
Documents/
1620
Homepage/
1721
Mathics.egg-info/
@@ -21,16 +25,15 @@ _Database_/
2125
build/
2226
dist/
2327
mathics/Makefile
24-
ChangeLog
2528
mathics/doc/tex/data
2629
mathics/doc/tex/documentation.tex
2730
mathics/doc/tex/images/
2831
mathics/doc/tex/logo-heptatom.pdf
2932
mathics/doc/tex/logo-text-nodrop.pdf
3033
mathics/doc/tex/mathics-*.asy
34+
mathics/doc/tex/mathics-*.dvi
3135
mathics/doc/tex/mathics-*.eps
3236
mathics/doc/tex/mathics-*.pdf
33-
mathics/doc/tex/mathics-*.dvi
3437
mathics/doc/tex/mathics-*.tex
3538
mathics/doc/tex/mathics.aux
3639
mathics/doc/tex/mathics.dvi
@@ -46,12 +49,9 @@ mathics/doc/tex/mathics.out
4649
mathics/doc/tex/mathics.pdf
4750
mathics/doc/tex/mathics.pre
4851
mathics/doc/tex/mathics.toc
49-
5052
mathics/doc/xml/
5153
mathics/web/db/mathics.sqlite
52-
mathics/web/media/pdf/
5354
mathics/web/media/doc/classes.pdf
5455
mathics/web/media/doc/classes.png
56+
mathics/web/media/pdf/
5557
tmp
56-
57-
.idea/

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
CHANGES
22
=======
33

4+
So we can get onto PyPI, the PyPI install name has changed from Mathics to Mathics3.
5+
6+
47
1.1.0
58
-----
69

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ RM ?= rm
1818
rmChangeLog \
1919
test
2020

21+
SANDBOX ?=
22+
ifeq ($(OS),Windows_NT)
23+
SANDBOX = t
24+
else
25+
UNAME_S := $(shell uname -s)
26+
ifeq ($(UNAME_S),Darwin)
27+
SANDBOX = t
28+
endif
29+
endif
30+
2131
#: Default target - same as "develop"
2232
all: develop
2333

@@ -66,7 +76,7 @@ doc-data mathics/doc/tex/data: mathics/builtin/*.py mathics/doc/documentation/*.
6676

6777
#: Run tests that appear in docstring in the code.
6878
doctest:
69-
$(PYTHON) mathics/test.py $o
79+
SANDBOX=$(SANDBOX) $(PYTHON) mathics/test.py $o
7080

7181
#: Run Django tests
7282
djangotest:

admin-tools/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.python-version

admin-tools/check-versions.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
function finish {
3+
cd $owd
4+
}
5+
6+
# FIXME put some of the below in a common routine
7+
owd=$(pwd)
8+
trap finish EXIT
9+
10+
cd $(dirname ${BASH_SOURCE[0]})
11+
if ! source ./pyenv-versions ; then
12+
exit $?
13+
fi
14+
15+
for version in $PYVERSIONS; do
16+
echo --- $version ---
17+
if ! pyenv local $version ; then
18+
exit $?
19+
fi
20+
make clean && pip install -e .
21+
if ! make check; then
22+
exit $?
23+
fi
24+
echo === $version ===
25+
done

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22

33
services:
44
mathics:
5-
build: ./app
5+
build: ./docker
66
image: mathicsorg/mathics:latest
77

88
volumes:

app/Dockerfile renamed to docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ COPY requirements.txt ./
1212
RUN apt-get update
1313
RUN apt-get install -qq liblapack-dev llvm-dev gfortran
1414
RUN pip install --no-cache-dir -r requirements.txt
15-
# RUN python -m nltk.downloader wordnet omw
1615
COPY requirements-mathicsscript.txt ./
1716
RUN pip install --no-cache-dir -r requirements-mathicsscript.txt
1817

18+
RUN pip install pymathics-natlang
19+
RUN python -m nltk.downloader wordnet omw
20+
RUN python -m spacy download en
21+
1922
EXPOSE 8000
2023

2124
RUN groupadd mathics && \
File renamed without changes.

0 commit comments

Comments
 (0)