From 174fceaf7532f2db2dee512e2e2e855ce8ffc85e Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 3 Aug 2024 06:09:14 -0400 Subject: [PATCH] Track changes in mathics-core setup.py: We need at least Python 3.8 .editorconfig: remove duplicate config line __init__.py: add just in case test_summary_text.py: import location has moved --- .editorconfig | 1 - README.rst | 2 +- pymathics/__init__.py | 0 setup.py | 12 ++++++------ test/consistency-and-style/test_summary_text.py | 3 +-- 5 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 pymathics/__init__.py diff --git a/.editorconfig b/.editorconfig index c521b5a..916efc8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,6 @@ root = true [*] end_of_line = lf -insert_final_newline = true charset = utf-8 indent_style = tab indent_size = 4 diff --git a/README.rst b/README.rst index d9c49c5..a733bf2 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,6 @@ |Pypi Installs| |Latest Version| |Supported Python Versions| -`Mathics `_ Graph Module using `NetworkX `_ and `Matplotlib `_ +`Mathics3 `_ Graph Module using `NetworkX `_ and `Matplotlib `_ Example Session --------------- diff --git a/pymathics/__init__.py b/pymathics/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index b458647..d3ec7ce 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,8 @@ from setuptools import setup, find_namespace_packages # Ensure user has the correct Python version -if sys.version_info < (3, 7): - print("Mathics support Python 3.7 and above; you have %d.%d" % sys.version_info[:2]) +if sys.version_info < (3, 8): + print("Mathics support Python 3.8 and above; you have %d.%d" % sys.version_info[:2]) sys.exit(-1) @@ -22,17 +22,17 @@ def read(*rnames): # stores __version__ in the current namespace -exec(compile(open("pymathics/graph/version.py").read(), "version.py", "exec")) +exec(compile(open("pymathics/graph/version.py").read(), "__version__.py", "exec")) long_description = read("README.rst") + "\n" is_PyPy = platform.python_implementation() == "PyPy" setup( - name="pymathics-graph", + name="Mathics3-graph", version=__version__, # noqa packages=find_namespace_packages(include=["pymathics.*"]), install_requires=[ - "Mathics3>=7.0.0dev", + "Mathics3>=7.0.0dev0", "networkx>=3.0.0", "pydot", "matplotlib", @@ -50,10 +50,10 @@ def read(*rnames): "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering", diff --git a/test/consistency-and-style/test_summary_text.py b/test/consistency-and-style/test_summary_text.py index ee30703..45faa81 100644 --- a/test/consistency-and-style/test_summary_text.py +++ b/test/consistency-and-style/test_summary_text.py @@ -10,8 +10,7 @@ from mathics.core.builtin import Builtin from mathics.core.load_builtin import name_is_builtin_symbol -from mathics.doc.common_doc import skip_doc - +from mathics.doc.gather import skip_doc # Get file system path name for mathics.builtin module_path = osp.dirname(module_initfile_path)