Skip to content

Commit ef203d7

Browse files
authored
Release 9.0 (#35)
* Administrivia * Rename to Mathics3-Module-nltk
1 parent bf3bfc6 commit ef203d7

File tree

9 files changed

+50
-96
lines changed

9 files changed

+50
-96
lines changed

.github/workflows/consistency-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pymathics-natlang (Consistency Checks)
1+
name: Mathics3-Module-nltk (Consistency Checks)
22

33
on:
44
push:
@@ -21,14 +21,14 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
python -m pip install --upgrade setuptools>=70.0.0
24+
python -m pip install --upgrade setuptools>=70.0.0
2525
python -m pip install pytest
2626
# Can comment out when next Mathics3 core and Mathics-scanner are released
2727
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
2828
# python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
2929
# (cd src/mathics3 && bash ./admin-tools/make-JSON-tables.sh)
3030
# python -m pip install -e git+https://github.com/Mathics3/Mathics3-Module-Base#egg=Mathics3-Module-Base
31-
- name: Install Mathics3 natlang Module
31+
- name: Install Mathics3 Module nltk
3232
run: |
3333
python -m pip install --no-build-isolation setuptools Mathics3[full] nltk PatternLite enchant
3434
make develop

.github/workflows/osx.yml-needs-enchant-fixup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pymathics-natlang (macOS)
1+
name: Mathics3-Module-nltk (macOS)
22

33
on:
44
push:
@@ -35,9 +35,9 @@ jobs:
3535
(cd mathics-core && bash ./admin-tools/make-JSON-tables.sh)
3636
python -m pip install -e git+https://github.com/Mathics3/Mathics3-Module-Base#egg=Mathics3-Module-Base
3737
python -m pip install -e .
38-
- name: Install Mathics3 natlang Module
38+
- name: Install Mathics3 Module nltk
3939
run: |
4040
make develop
41-
- name: Test natlang
41+
- name: Test Mathics Module nltk
4242
run: |
4343
make check

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
# (cd mathics-core && pip3 install -e .[full])
3131
# (cd mathics-core && bash ./admin-tools/make-JSON-tables.sh)
3232
# python -m pip install -e git+https://github.com/Mathics3/Mathics3-Module-Base#egg=Mathics3-Module-Base
33-
- name: Install Mathics3 natlang Module
33+
- name: Install Mathics3 Module nltk
3434
run: |
3535
python -m pip install --no-build-isolation setuptools Mathics3[full] nltk PatternLite enchant
3636
make develop
37-
- name: Test natlang Mathics3 Module
37+
- name: Test Mathics3 Module nltk
3838
run: |
3939
make -j3 check

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
/ChangeLog.orig
77
/ChangeLog.rej
88
/ChangeLog.spell-corrected
9-
/Mathics3_natlang.egg-info
9+
/Mathics3_Module_nltk.egg-info
1010
/build
1111
/dist
12-
/pymathics_natlang.egg-info
1312
/tmp
1413
__pycache__

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pypi-setup:
4141
develop: pypi-setup
4242
$(MAKE) wordlist
4343

44-
#: Install pymathics.natlang
44+
#: Install Mathics3 Module nltk
4545
install: pypi-setup
4646
$(PYTHON) setup.py install
4747

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Example Session
1818
In[4] = TextCases["I was in London last year.", "Pronoun"]
1919
Out[4]= {I}
2020

21-
More examples can be found in the `test file <https://github.com/Mathics3/pymathics-natlang/blob/master/test/test_natlang.py>`_.
21+
More examples can be found in the `test file <https://github.com/Mathics3/Mathics3-Module-nltk/blob/master/test/test_nltk.py>`_.
2222

2323
Installing and Running
2424
----------------------
@@ -91,9 +91,9 @@ wn-data-your_language.tab.
9191

9292

9393

94-
.. |Latest Version| image:: https://badge.fury.io/py/pymathics-natlang.svg
95-
:target: https://badge.fury.io/py/pymathics-natlang
96-
.. |Pypi Installs| image:: https://pepy.tech/badge/pymathics-natlang
97-
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/pymathics-natlang.svg
98-
.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/pymathics-natlang.svg
99-
:target: https://repology.org/project/pymathics-natlang/versions
94+
.. |Latest Version| image:: https://badge.fury.io/py/Mathics3-Module-nltk.svg
95+
:target: https://badge.fury.io/py/Mathics3-Module-nltk
96+
.. |Pypi Installs| image:: https://pepy.tech/badge/Mathics3-Module-nltk
97+
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/Mathics3-Module-nltk.svg
98+
.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/Mathics3-Module-nltk.svg
99+
:target: https://repology.org/project/Mathics3-Module-nltk/versions

admin-tools/make-dist.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
PACKAGE=pymathics_natlang
2+
PACKAGE=mathics3_module_nltk
33

44
# FIXME put some of the below in a common routine
55
function finish {
6-
cd $mathics_natlang_owd
6+
cd $mathics3_module_nlkt_owd
77
}
88

99
cd $(dirname ${BASH_SOURCE[0]})
10-
mathics_natlang_owd=$(pwd)
10+
mathics3_module_nltk_owd=$(pwd)
1111
trap finish EXIT
1212

1313
if ! source ./pyenv-versions ; then
@@ -19,10 +19,11 @@ cd ..
1919
source pymathics/natlang/version.py
2020
echo $__version__
2121

22-
pyversion=3.11
22+
pyversion=3.13
2323
if ! pyenv local $pyversion ; then
2424
exit $?
2525
fi
2626

27-
python -m build
27+
pip wheel --wheel-dir=dist .
28+
python -m build --sdist
2829
finish

pyproject.toml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
[build-system]
22
requires = [
3-
"setuptools>=70.0.0",
4-
"wheel",
3+
"setuptools",
4+
"Mathics3-Module-Base",
5+
"Mathics3>=9.0.0",
6+
"PatternLite",
7+
"langid", # replace with a supported newer package, e.g. via spacy
8+
"matplotlib",
9+
"mpmath>=1.2.0",
10+
"nltk>=3.8.0",
11+
"numpy",
12+
"pycountry>=3.2.0",
13+
"pyenchant>=3.2.0",
14+
"scipy>=1.10.0",
15+
"spacy>=3.4",
16+
"wasabi<1.1.0,>=0.8.2",
517
]
618
build-backend = "setuptools.build_meta"
719

820
[project]
9-
name = "Mathics3-natlang"
21+
name = "Mathics3-Module-nltk"
1022
description = "Mathics3 Natural Language Toolkit module"
1123
dependencies = [
12-
"setuptools>=70.0.0",
1324
"Mathics3>=9.0.0",
1425
"Mathics3-Module-Base>=9.0.0",
1526
"click>=8.0",
1627
"joblib>=1.0.1",
17-
# replace with a supported newer package, e.g. via spacy
18-
"langid",
28+
"langid", # replace with a supported newer package, e.g. via spacy
1929
"llvmlite>=0.36",
2030
"nltk>=3.8.0",
2131
"mpmath>=1.2.0",
@@ -46,11 +56,14 @@ classifiers = [
4656
"Topic :: Scientific/Engineering :: Mathematics",
4757
"Topic :: Software Development :: Interpreters",
4858
]
49-
dynamic = ["version"]
59+
60+
version = "9.0.0"
61+
# # FIXME: reinstate this
62+
# dynamic = ["version"]
5063

5164
[project.urls]
52-
Homepage = "https://github.com/Mathics3/pymathics-natlang"
53-
Downloads = "https://github.com/Mathics3/pymathics-natlang/releases"
65+
Homepage = "https://github.com/Mathics3/Mathics3-Module-nltk"
66+
Downloads = "https://github.com/Mathics3/Mathics3-Module-nltk/releases"
5467

5568
[project.optional-dependencies]
5669
dev = [
@@ -62,7 +75,8 @@ packages = [
6275
"pymathics.natlang",
6376
]
6477

65-
[tool.setuptools.dynamic]
66-
# We cannot load the version directly from pymathics.natlang.__init__,
67-
# because it would try to import modules which are not already installed.
68-
version = {attr = "pymathics.natlang.version.__version__"}
78+
# # FIXME: reinstate this
79+
# [tool.setuptools.dynamic]
80+
# # We cannot load the version directly from pymathics.natlang.__init__,
81+
# # because it would try to import modules which are not already installed.
82+
# version = {attr = "pymathics.natlang.version.__version__"}

test/test_natlang.py

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

0 commit comments

Comments
 (0)