Skip to content

Commit 3c65a74

Browse files
committed
fixes
1 parent 6faf955 commit 3c65a74

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pytest:
6161

6262
#: Run tests that appear in docstring in the code.
6363
doctest:
64-
MATHICS_CHARACTER_ENCODING="ASCII" $(PYTHON) -m mathics.docpipeline -l pymathics.graph -c 'Graphs - Vertices and Edges' $o
64+
MATHICS_CHARACTER_ENCODING="ASCII" $(PYTHON) -m mathics.docpipeline -l pymathics.graph $o
6565

6666
# #: Make Mathics PDF manual
6767
# doc mathics.pdf: mathics/doc/tex/data

pymathics/graph/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from inspect import isgenerator
1111
from typing import Callable, Optional, Union
1212

13-
from mathics.builtin.base import AtomBuiltin, Builtin
13+
from mathics.core.builtin import AtomBuiltin, Builtin
1414
from mathics.core.atoms import Atom, Integer, Integer0, Integer1, Integer2, String
1515
from mathics.core.convert.expression import ListExpression, from_python, to_mathics_list
1616
from mathics.core.element import BaseElement
@@ -853,7 +853,7 @@ class AdjacencyList(_NetworkXBuiltin):
853853
summary_text = "list the adjacent vertices"
854854

855855
def _retrieve(self, graph, what, neighbors, expression, evaluation):
856-
from mathics.builtin import pattern_objects
856+
from mathics.core.pattern import pattern_objects
857857

858858
if what.get_head_name() in pattern_objects:
859859
collected = set()
@@ -1430,7 +1430,7 @@ def eval(self, graph, what, expression, evaluation, options) -> Optional[Graph]:
14301430
"VertexDelete[graph_, what_, OptionsPattern[VertexDelete]]"
14311431
graph = self._build_graph(graph, evaluation, options, expression)
14321432
if graph:
1433-
from mathics.builtin import pattern_objects
1433+
from mathics.core.pattern import pattern_objects
14341434

14351435
head_name = what.get_head_name()
14361436
if head_name in pattern_objects:
@@ -1571,7 +1571,7 @@ def eval(self, graph, what, expression, evaluation, options) -> Optional[Graph]:
15711571
"EdgeDelete[graph_, what_, OptionsPattern[EdgeDelete]]"
15721572
graph = self._build_graph(graph, evaluation, options, expression)
15731573
if graph:
1574-
from mathics.builtin import pattern_objects
1574+
from mathics.core.pattern import pattern_objects
15751575

15761576
head_name = what.get_head_name()
15771577
if head_name in pattern_objects:

pymathics/graph/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
**{"GraphLayout": '"tree"'},
1919
}
2020

21-
from mathics.builtin.base import AtomBuiltin
21+
from mathics.core.builtin import AtomBuiltin
2222

2323

2424
# FIXME: do we need to have TreeGraphAtom and TreeGraph?

pymathics/graph/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# well as importing into Python. That's why there is no
66
# space around "=" below.
77
# fmt: off
8-
__version__="6.0.0a0" # noqa
8+
__version__="7.0.0a0" # noqa

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def read(*rnames):
3131
name="pymathics-graph",
3232
version=__version__, # noqa
3333
packages=find_namespace_packages(include=["pymathics.*"]),
34-
install_requires=["Mathics3>5.1.0", "networkx>=2.8.0", "pydot", "matplotlib", "scipy>=1.10.0"],
34+
install_requires=["Mathics3>=7.0.0", "networkx>=2.8.0", "pydot", "matplotlib", "scipy>=1.10.0"],
3535
# don't pack Mathics in egg because of media files, etc.
3636
zip_safe=False,
3737
maintainer="Mathics Group",

test/consistency-and-style/test_summary_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import pytest
88

99
from pymathics.graph import __file__ as module_initfile_path
10-
from mathics.builtin import name_is_builtin_symbol
11-
from mathics.builtin.base import Builtin
10+
from mathics.core.load_builtin import name_is_builtin_symbol
11+
from mathics.core.builtin import Builtin
1212
from mathics.doc.common_doc import skip_doc
1313

1414

test/helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
from typing import Optional
44

55
from mathics.core.symbols import Symbol
6+
from mathics.core.load_builtin import import_and_load_builtins
67
from mathics.session import MathicsSession
78

9+
import_and_load_builtins()
10+
811
# Set up a Mathics session with definitions.
912
# For consistency set the character encoding ASCII which is
1013
# the lowest common denominator available on all systems.
1114
session = MathicsSession(
12-
add_builtin=True, catch_interrupt=False, character_encoding="ASCII"
15+
character_encoding="ASCII"
1316
)
1417

1518

0 commit comments

Comments
 (0)