Skip to content

Commit

Permalink
Get ready for release 7.0.0 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky authored Aug 11, 2024
1 parent 9783be2 commit 30f507f
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
# python-version: ['3.9', '3.10'] # Figure out what's wrong here.
python-version: ['3.11']
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -27,9 +27,9 @@ jobs:
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
git clone https://github.com/Mathics3/mathics-core
(cd mathics-core && pip3 install -e .[full])
(cd mathics-core && bash ./admin-tools/make-op-tables.sh)
# python -m pip install Mathics3[full]
# (cd mathics-core && pip3 install -e .[full])
# (cd mathics-core && bash ./admin-tools/make-op-tables.sh)
python -m pip install Mathics3[full]
- name: install pymathics natlang
run: |
make develop
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*~
/.python-version
/ChangeLog
/ChangeLog.orig
/ChangeLog.rej
/build
/dist
/pymathics_natlang.egg-info
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
- id: end-of-file-fixer
stages: [commit]
- id: trailing-whitespace
exclude: 'ChangeLog-spell-corrected.diff'
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
8 changes: 7 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
CHANGES
=======

7.0.0
-----

* Revise for 7.0.0 Mathics3 API; we need to explicilty load builtins


6.0.0
-----

Revise for 6.0.0 Mathics3 API and current Mathics3 builtin standards described in `Guidelines for Writing
Revise for 6.0.0 Mathics3 APIs and current Mathics3 builtin standards described in `Guidelines for Writing
Documentation <https://mathics-development-guide.readthedocs.io/en/latest/extending/developing-code/extending/documentation-markup.html#guidelines-for-writing-documentation>`_.

This package has undergone a major overhaul. Modules have been split out along into logical groups following the documentation structure.
Expand Down
72 changes: 72 additions & 0 deletions ChangeLog-spell-corrected.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
--- ChangeLog 2024-08-11 09:56:49.699104043 -0400
+++ ChangeLog-spell-corrected 2024-08-11 09:56:29.505207062 -0400
@@ -7,8 +7,8 @@

2024-08-11 R. Bernstein <[email protected]>

- * .github/workflows/{osx.yml => osx.yml-needs-enchant-fixup}:
- Temorarily remove OSX CI (#27) * Attempt to get OSX CI working * Remove OSX CI testing for now... We need to figure out how to get C spelling libray enchant
+ * .github/workflows/{osx.yml => osx.yml-needs-enchant-fixup}:
+ Temporarily remove OSX CI (#27) * Attempt to get OSX CI working * Remove OSX CI testing for now... We need to figure out how to get C spelling library enchant
installed... Or make that optional in mathics-core.

2024-08-08 rocky <[email protected]>
@@ -24,7 +24,7 @@

2024-08-08 Juan Mauricio Matera <[email protected]>

- * pymathics/natlang/textual_analysis.py: addiing blanklines between
+ * pymathics/natlang/textual_analysis.py: adding blanklines between
</dl> and the examples in docstrings (#25)

2024-08-06 rocky <[email protected]>
@@ -132,7 +132,7 @@
2023-02-19 R. Bernstein <[email protected]>

* .github/workflows/osx.yml, Makefile, README.rst,
- pymathics/natlang/__init__.py, pymathics/natlang/main.py, setup.py:
+ pymathics/natlang/__init__.py, pymathics/natlang/main.py, setup.py:
Make a pass over setup, docs, and top-level things (#9) * README.rst: move customization from main.py here * Makefile: LoadModule name has changes * __init__.py: list imports, go over docstring which forms chapter
information * main.py: numerous small doc changes; fix some type errors. * setup.py and spacy, langid, and pyenchant are no longer optional.
Note pyenchant rather than enchant is now used.
@@ -274,7 +274,7 @@

2020-12-22 rocky <[email protected]>

- * CHANGES.rst, README.rst, pymathics/natlang/__main__.py, setup.py:
+ * CHANGES.rst, README.rst, pymathics/natlang/__main__.py, setup.py:
Update README.rst, remove a deprecation warning

2020-12-22 rocky <[email protected]>
@@ -296,7 +296,7 @@

2020-12-22 rocky <[email protected]>

- * CHANGES.rst, README.rst, pymathics/natlang/version.py, setup.py:
+ * CHANGES.rst, README.rst, pymathics/natlang/version.py, setup.py:
Get ready for release 1.1.0

2020-11-15 rocky <[email protected]>
@@ -310,7 +310,7 @@

2020-11-14 rocky <[email protected]>

- * admin-tools/make-dist.sh, admin-tools/pyenv-versions:
+ * admin-tools/make-dist.sh, admin-tools/pyenv-versions:
Administrivia

2020-11-14 rocky <[email protected]>
@@ -337,7 +337,7 @@

2020-10-31 rocky <[email protected]>

- * pymathics/__init__.py, pymathics/natlang/__main__.py, setup.py:
+ * pymathics/__init__.py, pymathics/natlang/__main__.py, setup.py:
Working better now... setup.py: Use namespace packages. Put this under namespace
PyMathics. natlang/__main__.py: With next round of changes, we
don't need to set "context".
@@ -345,4 +345,3 @@
2020-10-31 rocky <[email protected]>

* Initial natlang setup
-
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ rmChangeLog:
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) >$@
patch ChangeLog < ChangeLog-spell-corrected.diff

#: Run pytest consistency and style checks
check-consistency-and-style:
Expand Down
28 changes: 10 additions & 18 deletions admin-tools/make-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ PACKAGE=pymathics-natlang

# FIXME put some of the below in a common routine
function finish {
cd $owd
cd $mathics_natlang_owd
}

cd $(dirname ${BASH_SOURCE[0]})
owd=$(pwd)
mathics_natlang_owd=$(pwd)
trap finish EXIT

if ! source ./pyenv-versions ; then
Expand All @@ -19,21 +19,13 @@ cd ..
source pymathics/natlang/version.py
echo $__version__

for pyversion in $PYVERSIONS; do
if ! pyenv local $pyversion ; then
exit $?
fi
# pip bdist_egg create too-general wheels. So
# we narrow that by moving the generated wheel.

# Pick out first two number of version, e.g. 3.7.9 -> 37
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
rm -fr build
python setup.py develop
python setup.py bdist_egg
python setup.py bdist_wheel
python setup.py bdist_wheel --universal
mv -v dist/${PACKAGE}-$VERSION-{py2.py3,py$first_two}-none-any.whl
done
pyversion=3.11
if ! pyenv local $pyversion ; then
exit $?
fi

python setup.py bdist_wheel
python setup.py bdist_wheel --universal
mv -v dist/${PACKAGE}-$VERSION-{py2.py3,py3}-none-any.whl
python ./setup.py sdist
finish
2 changes: 1 addition & 1 deletion admin-tools/pyenv-versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
exit 1
fi

export PYVERSIONS='3.6.15 3.7.16 3.8.16 3.9.16 3.10.10 pyston-2.3.5'
export PYVERSIONS='3.8 3.9 3.10 3.11'
2 changes: 1 addition & 1 deletion pymathics/natlang/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# well as importing into Python. That's why there is no
# space around "=" below.
# fmt: off
__version__="7.0.0.dev0" # noqa
__version__="7.0.0" # noqa

0 comments on commit 30f507f

Please sign in to comment.