Skip to content

Commit d467da7

Browse files
committed
Merge 9.0 release
1 parent 34afa45 commit d467da7

File tree

14 files changed

+34
-176
lines changed

14 files changed

+34
-176
lines changed

.github/workflows/MSWindows.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/MacOS.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/Ubuntu.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
/Mathics3_Module_hello.egg-info
77
/build
88
/dist
9+
/tmp
910
__pycache__

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ all: develop
2525
build:
2626
$(PYTHON) ./setup.py build
2727

28-
#: Make PyPI distribution
29-
dist:
30-
./admin-tools/make-dist.sh
31-
3228
#: Check Python version, and install PyPI dependencies
3329
pypi-setup:
3430
$(PIP) install -e .
@@ -37,6 +33,10 @@ pypi-setup:
3733
develop: pypi-setup
3834
$(PIP) install -e .
3935

36+
#: Install mathics
37+
install:
38+
$(PYTHON) setup.py install
39+
4040
# Run tests
4141
check: pytest
4242

@@ -49,7 +49,7 @@ clean-pyc:
4949

5050
#: Run py.test tests. Use environment variable "o" for pytest options
5151
pytest:
52-
pytest test $o
52+
py.test test $o
5353

5454

5555
# #: Make Mathics PDF manual

NEWS.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
9.0.1
2-
-----
3-
4-
Change module name to Mathics3-Module-hello. Revise documentation.
5-
6-
7-
9.0.0
8-
-----
9-
10-
* Revise for 9.0.0 Mathics3 API.
11-
12-
131
7.0.0
142
-----
153

README.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ Then the function ```Hello[]`` is available::
1919
In[1]:= LoadModule["pymathics.hello"]
2020
Out[1]= pymathics.hello
2121

22-
In[2]:= Hello[]
22+
In[2]:= Hello["World"]
2323
Out[2]:= Hello, World!
2424

25-
In[2]:= Hello["everyone"]
26-
Out[2]:= Hello, everyone!
25+
You can test with ``py.test``::
2726

28-
You can test with ``pytest``::
29-
30-
$ pytest test
27+
$ py.test test
3128

3229
or simply::
3330

admin-tools/make-dist.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if ! pyenv local $pyversion ; then
2323
exit $?
2424
fi
2525

26-
pyenv local 3.13
27-
pip wheel --wheel-dir=dist .
28-
python -m build --sdist
26+
python setup.py bdist_wheel --universal
27+
mv -v dist/pymathics_hello-${__version__}-{py2.,}py3-none-any.whl
28+
python ./setup.py sdist
2929
finish

admin-tools/pyenv-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
55
echo "This script should be *sourced* rather than run directly through bash"
66
exit 1
77
fi
8-
export PYVERSIONS='3.10 3.11 3.12 3.13'
8+
export PYVERSIONS='3.8 3.9 3.10 3.11'

pymathics/hello/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Mathics3 Module hello module.
3+
PyMathics Hello test module.
44
5-
This is an example of an external Mathics3 module.
5+
This is an example of an external PyMathics module.
66
7-
A Mathics3 module is a Python module which can be loaded into Mathics using the
7+
A PyMathics module is a Python module which can be loaded into Mathics using the
88
``LoadModule[]`` method.
99
1010
In particular, to load this after installing this module as a Python module run inside

0 commit comments

Comments
 (0)