passagemath-repl 10.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- passagemath_repl-10.4.1/MANIFEST.in +22 -0
- passagemath_repl-10.4.1/PKG-INFO +66 -0
- passagemath_repl-10.4.1/README.rst +30 -0
- passagemath_repl-10.4.1/VERSION.txt +1 -0
- passagemath_repl-10.4.1/bin/math-readline +32 -0
- passagemath_repl-10.4.1/bin/sage +1140 -0
- passagemath_repl-10.4.1/bin/sage-cachegrind +25 -0
- passagemath_repl-10.4.1/bin/sage-callgrind +16 -0
- passagemath_repl-10.4.1/bin/sage-cleaner +230 -0
- passagemath_repl-10.4.1/bin/sage-coverage +327 -0
- passagemath_repl-10.4.1/bin/sage-cython +39 -0
- passagemath_repl-10.4.1/bin/sage-env +667 -0
- passagemath_repl-10.4.1/bin/sage-env-config.in +54 -0
- passagemath_repl-10.4.1/bin/sage-eval +11 -0
- passagemath_repl-10.4.1/bin/sage-fixdoctests +691 -0
- passagemath_repl-10.4.1/bin/sage-grep +5 -0
- passagemath_repl-10.4.1/bin/sage-grepdoc +5 -0
- passagemath_repl-10.4.1/bin/sage-inline-fortran +12 -0
- passagemath_repl-10.4.1/bin/sage-ipynb2rst +50 -0
- passagemath_repl-10.4.1/bin/sage-ipython +16 -0
- passagemath_repl-10.4.1/bin/sage-list-packages +103 -0
- passagemath_repl-10.4.1/bin/sage-massif +25 -0
- passagemath_repl-10.4.1/bin/sage-notebook +267 -0
- passagemath_repl-10.4.1/bin/sage-num-threads.py +105 -0
- passagemath_repl-10.4.1/bin/sage-omega +25 -0
- passagemath_repl-10.4.1/bin/sage-preparse +302 -0
- passagemath_repl-10.4.1/bin/sage-python +2 -0
- passagemath_repl-10.4.1/bin/sage-run +27 -0
- passagemath_repl-10.4.1/bin/sage-run-cython +10 -0
- passagemath_repl-10.4.1/bin/sage-runtests +9 -0
- passagemath_repl-10.4.1/bin/sage-src-env-config.in +39 -0
- passagemath_repl-10.4.1/bin/sage-startuptime.py +163 -0
- passagemath_repl-10.4.1/bin/sage-update-version +162 -0
- passagemath_repl-10.4.1/bin/sage-valgrind +34 -0
- passagemath_repl-10.4.1/bin/sage-venv-config +42 -0
- passagemath_repl-10.4.1/bin/sage-version.sh +9 -0
- passagemath_repl-10.4.1/known-test-failures.json +165 -0
- passagemath_repl-10.4.1/passagemath_repl.egg-info/PKG-INFO +66 -0
- passagemath_repl-10.4.1/passagemath_repl.egg-info/SOURCES.txt +148 -0
- passagemath_repl-10.4.1/passagemath_repl.egg-info/dependency_links.txt +1 -0
- passagemath_repl-10.4.1/passagemath_repl.egg-info/requires.txt +9 -0
- passagemath_repl-10.4.1/passagemath_repl.egg-info/top_level.txt +1 -0
- passagemath_repl-10.4.1/pyproject.toml +107 -0
- passagemath_repl-10.4.1/pyproject.toml.m4 +82 -0
- passagemath_repl-10.4.1/requirements-editable.txt.m4 +11 -0
- passagemath_repl-10.4.1/requirements.txt.m4 +0 -0
- passagemath_repl-10.4.1/sage/all__sagemath_repl.py +119 -0
- passagemath_repl-10.4.1/sage/doctest/__init__.py +4 -0
- passagemath_repl-10.4.1/sage/doctest/__main__.py +235 -0
- passagemath_repl-10.4.1/sage/doctest/all.py +4 -0
- passagemath_repl-10.4.1/sage/doctest/check_tolerance.py +259 -0
- passagemath_repl-10.4.1/sage/doctest/control.py +1718 -0
- passagemath_repl-10.4.1/sage/doctest/external.py +534 -0
- passagemath_repl-10.4.1/sage/doctest/fixtures.py +383 -0
- passagemath_repl-10.4.1/sage/doctest/forker.py +2639 -0
- passagemath_repl-10.4.1/sage/doctest/marked_output.py +102 -0
- passagemath_repl-10.4.1/sage/doctest/parsing.py +1688 -0
- passagemath_repl-10.4.1/sage/doctest/parsing_test.py +79 -0
- passagemath_repl-10.4.1/sage/doctest/reporting.py +733 -0
- passagemath_repl-10.4.1/sage/doctest/rif_tol.py +123 -0
- passagemath_repl-10.4.1/sage/doctest/sources.py +1657 -0
- passagemath_repl-10.4.1/sage/doctest/test.py +584 -0
- passagemath_repl-10.4.1/sage/doctest/tests/1second.rst +4 -0
- passagemath_repl-10.4.1/sage/doctest/tests/99seconds.rst +4 -0
- passagemath_repl-10.4.1/sage/doctest/tests/abort.rst +5 -0
- passagemath_repl-10.4.1/sage/doctest/tests/atexit.rst +7 -0
- passagemath_repl-10.4.1/sage/doctest/tests/fail_and_die.rst +6 -0
- passagemath_repl-10.4.1/sage/doctest/tests/initial.rst +15 -0
- passagemath_repl-10.4.1/sage/doctest/tests/interrupt.rst +7 -0
- passagemath_repl-10.4.1/sage/doctest/tests/interrupt_diehard.rst +14 -0
- passagemath_repl-10.4.1/sage/doctest/tests/keyboardinterrupt.rst +11 -0
- passagemath_repl-10.4.1/sage/doctest/tests/longtime.rst +5 -0
- passagemath_repl-10.4.1/sage/doctest/tests/nodoctest +5 -0
- passagemath_repl-10.4.1/sage/doctest/tests/random_seed.rst +4 -0
- passagemath_repl-10.4.1/sage/doctest/tests/show_skipped.rst +18 -0
- passagemath_repl-10.4.1/sage/doctest/tests/sig_on.rst +9 -0
- passagemath_repl-10.4.1/sage/doctest/tests/simple_failure.rst +8 -0
- passagemath_repl-10.4.1/sage/doctest/tests/sleep_and_raise.rst +106 -0
- passagemath_repl-10.4.1/sage/doctest/tests/tolerance.rst +31 -0
- passagemath_repl-10.4.1/sage/doctest/util.py +534 -0
- passagemath_repl-10.4.1/sage/misc/all__sagemath_repl.py +4 -0
- passagemath_repl-10.4.1/sage/misc/banner.py +235 -0
- passagemath_repl-10.4.1/sage/misc/sage_eval.py +237 -0
- passagemath_repl-10.4.1/sage/misc/sage_input.py +3621 -0
- passagemath_repl-10.4.1/sage/misc/sagedoc.py +1738 -0
- passagemath_repl-10.4.1/sage/repl/__init__.py +16 -0
- passagemath_repl-10.4.1/sage/repl/all.py +15 -0
- passagemath_repl-10.4.1/sage/repl/attach.py +625 -0
- passagemath_repl-10.4.1/sage/repl/configuration.py +186 -0
- passagemath_repl-10.4.1/sage/repl/display/__init__.py +1 -0
- passagemath_repl-10.4.1/sage/repl/display/fancy_repr.py +354 -0
- passagemath_repl-10.4.1/sage/repl/display/formatter.py +318 -0
- passagemath_repl-10.4.1/sage/repl/display/jsmol_iframe.py +290 -0
- passagemath_repl-10.4.1/sage/repl/display/pretty_print.py +153 -0
- passagemath_repl-10.4.1/sage/repl/display/util.py +163 -0
- passagemath_repl-10.4.1/sage/repl/image.py +302 -0
- passagemath_repl-10.4.1/sage/repl/inputhook.py +91 -0
- passagemath_repl-10.4.1/sage/repl/interface_magic.py +296 -0
- passagemath_repl-10.4.1/sage/repl/interpreter.py +853 -0
- passagemath_repl-10.4.1/sage/repl/ipython_extension.py +593 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/__init__.py +1 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/__main__.py +4 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/all_jupyter.py +10 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/install.py +301 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/interact.py +273 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/kernel.py +217 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/widgets.py +466 -0
- passagemath_repl-10.4.1/sage/repl/ipython_kernel/widgets_sagenb.py +587 -0
- passagemath_repl-10.4.1/sage/repl/ipython_tests.py +163 -0
- passagemath_repl-10.4.1/sage/repl/load.py +326 -0
- passagemath_repl-10.4.1/sage/repl/preparse.py +2218 -0
- passagemath_repl-10.4.1/sage/repl/prompts.py +90 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/__init__.py +4 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/backend_base.py +648 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/backend_doctest.py +316 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/backend_emacs.py +151 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/backend_ipython.py +596 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/buffer.py +311 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/display_manager.py +829 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.avi +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.canvas3d +1 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.dvi +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.flv +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.gif +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.jpg +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.mkv +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.mov +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.mp4 +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.ogv +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.pdf +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.png +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.svg +54 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.webm +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example.wmv +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example_jmol.spt.zip +0 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example_wavefront_scene.mtl +7 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/example_wavefront_scene.obj +17 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_basic.py +391 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_browser.py +103 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_catalog.py +54 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_graphics.py +320 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_graphics3d.py +345 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/output_video.py +231 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/preferences.py +432 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/pretty_print.py +339 -0
- passagemath_repl-10.4.1/sage/repl/rich_output/test_backend.py +201 -0
- passagemath_repl-10.4.1/sage/repl/user_globals.py +214 -0
- passagemath_repl-10.4.1/setup.cfg +4 -0
- passagemath_repl-10.4.1/setup.py +3 -0
- passagemath_repl-10.4.1/tox.ini +122 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
prune sage
|
2
|
+
|
3
|
+
graft sage/doctest
|
4
|
+
graft sage/repl
|
5
|
+
include sage/misc/banner.py
|
6
|
+
include sage/misc/sagedoc.py
|
7
|
+
include sage/misc/sage_input.py
|
8
|
+
include sage/misc/sage_eval.py
|
9
|
+
|
10
|
+
include VERSION.txt
|
11
|
+
|
12
|
+
global-exclude all__*.py
|
13
|
+
global-include all__sagemath_repl.py
|
14
|
+
|
15
|
+
global-exclude __pycache__
|
16
|
+
global-exclude *.py[co]
|
17
|
+
global-exclude *.bak
|
18
|
+
global-exclude *.so
|
19
|
+
global-exclude *~
|
20
|
+
prune .tox
|
21
|
+
prune build
|
22
|
+
prune dist
|
@@ -0,0 +1,66 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: passagemath-repl
|
3
|
+
Version: 10.4.1
|
4
|
+
Summary: passagemath: IPython kernel, Sage preparser, doctester
|
5
|
+
Author-email: The Sage Developers <sage-support@googlegroups.com>
|
6
|
+
License: GNU General Public License (GPL) v2 or later
|
7
|
+
Project-URL: download, https://doc.sagemath.org/html/en/installation/index.html
|
8
|
+
Project-URL: release notes, https://github.com/sagemath/sage/releases
|
9
|
+
Project-URL: source, https://github.com/sagemath/sage
|
10
|
+
Project-URL: documentation, https://doc.sagemath.org
|
11
|
+
Project-URL: homepage, https://www.sagemath.org
|
12
|
+
Project-URL: tracker, https://github.com/sagemath/sage/issues
|
13
|
+
Classifier: Development Status :: 6 - Mature
|
14
|
+
Classifier: Intended Audience :: Education
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
16
|
+
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
|
17
|
+
Classifier: Operating System :: POSIX
|
18
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
24
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
26
|
+
Requires-Python: <3.13,>=3.9
|
27
|
+
Description-Content-Type: text/x-rst
|
28
|
+
Requires-Dist: passagemath-objects~=10.4.1
|
29
|
+
Requires-Dist: passagemath-environment~=10.4.1
|
30
|
+
Requires-Dist: ipykernel>=5.2.1
|
31
|
+
Requires-Dist: ipython>=7.13.0
|
32
|
+
Requires-Dist: ipywidgets>=7.5.1
|
33
|
+
Requires-Dist: jupyter-client
|
34
|
+
Provides-Extra: sphinx
|
35
|
+
Requires-Dist: sphinx<9,>=7.4.7; extra == "sphinx"
|
36
|
+
|
37
|
+
===================================================================================
|
38
|
+
passagemath: IPython kernel, Sage preparser, doctester
|
39
|
+
===================================================================================
|
40
|
+
|
41
|
+
About SageMath
|
42
|
+
--------------
|
43
|
+
|
44
|
+
"Creating a Viable Open Source Alternative to
|
45
|
+
Magma, Maple, Mathematica, and MATLAB"
|
46
|
+
|
47
|
+
Copyright (C) 2005-2024 The Sage Development Team
|
48
|
+
|
49
|
+
https://www.sagemath.org
|
50
|
+
|
51
|
+
SageMath fully supports all major Linux distributions, recent versions of
|
52
|
+
macOS, and Windows (Windows Subsystem for Linux).
|
53
|
+
|
54
|
+
See https://doc.sagemath.org/html/en/installation/index.html
|
55
|
+
for general installation instructions.
|
56
|
+
|
57
|
+
|
58
|
+
About this pip-installable distribution package
|
59
|
+
-----------------------------------------------
|
60
|
+
|
61
|
+
The pip-installable source distribution `sagemath-repl` is a
|
62
|
+
distribution of a small part of the Sage Library.
|
63
|
+
|
64
|
+
It provides a small, fundamental subset of the modules of the Sage library
|
65
|
+
("sagelib", `sagemath-standard`), providing the IPython kernel, Sage preparser,
|
66
|
+
and doctester.
|
@@ -0,0 +1,30 @@
|
|
1
|
+
===================================================================================
|
2
|
+
passagemath: IPython kernel, Sage preparser, doctester
|
3
|
+
===================================================================================
|
4
|
+
|
5
|
+
About SageMath
|
6
|
+
--------------
|
7
|
+
|
8
|
+
"Creating a Viable Open Source Alternative to
|
9
|
+
Magma, Maple, Mathematica, and MATLAB"
|
10
|
+
|
11
|
+
Copyright (C) 2005-2024 The Sage Development Team
|
12
|
+
|
13
|
+
https://www.sagemath.org
|
14
|
+
|
15
|
+
SageMath fully supports all major Linux distributions, recent versions of
|
16
|
+
macOS, and Windows (Windows Subsystem for Linux).
|
17
|
+
|
18
|
+
See https://doc.sagemath.org/html/en/installation/index.html
|
19
|
+
for general installation instructions.
|
20
|
+
|
21
|
+
|
22
|
+
About this pip-installable distribution package
|
23
|
+
-----------------------------------------------
|
24
|
+
|
25
|
+
The pip-installable source distribution `sagemath-repl` is a
|
26
|
+
distribution of a small part of the Sage Library.
|
27
|
+
|
28
|
+
It provides a small, fundamental subset of the modules of the Sage library
|
29
|
+
("sagelib", `sagemath-standard`), providing the IPython kernel, Sage preparser,
|
30
|
+
and doctester.
|
@@ -0,0 +1 @@
|
|
1
|
+
10.4.1
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env sage-python
|
2
|
+
|
3
|
+
# Cleverly run Mathematica with the benefit of readline, which
|
4
|
+
# is something the usual commercial mathematica doesn't provide!
|
5
|
+
# See
|
6
|
+
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/363500
|
7
|
+
|
8
|
+
import sys
|
9
|
+
import signal
|
10
|
+
import subprocess
|
11
|
+
from sage.cpython.string import str_to_bytes
|
12
|
+
|
13
|
+
def child_exited(*args):
|
14
|
+
global child
|
15
|
+
status = child.poll()
|
16
|
+
if status is not None:
|
17
|
+
sys.exit(status)
|
18
|
+
|
19
|
+
signal.signal(signal.SIGCHLD, child_exited)
|
20
|
+
|
21
|
+
child = subprocess.Popen('math', shell=True, stdin=subprocess.PIPE)
|
22
|
+
pipe = child.stdin
|
23
|
+
while True:
|
24
|
+
try:
|
25
|
+
line = input()
|
26
|
+
pipe.write(str_to_bytes(line + '\n'))
|
27
|
+
pipe.flush()
|
28
|
+
except KeyboardInterrupt:
|
29
|
+
pipe.close()
|
30
|
+
except EOFError:
|
31
|
+
break
|
32
|
+
sys.stdout.write('\n')
|