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.
Files changed (150) hide show
  1. passagemath_repl-10.4.1/MANIFEST.in +22 -0
  2. passagemath_repl-10.4.1/PKG-INFO +66 -0
  3. passagemath_repl-10.4.1/README.rst +30 -0
  4. passagemath_repl-10.4.1/VERSION.txt +1 -0
  5. passagemath_repl-10.4.1/bin/math-readline +32 -0
  6. passagemath_repl-10.4.1/bin/sage +1140 -0
  7. passagemath_repl-10.4.1/bin/sage-cachegrind +25 -0
  8. passagemath_repl-10.4.1/bin/sage-callgrind +16 -0
  9. passagemath_repl-10.4.1/bin/sage-cleaner +230 -0
  10. passagemath_repl-10.4.1/bin/sage-coverage +327 -0
  11. passagemath_repl-10.4.1/bin/sage-cython +39 -0
  12. passagemath_repl-10.4.1/bin/sage-env +667 -0
  13. passagemath_repl-10.4.1/bin/sage-env-config.in +54 -0
  14. passagemath_repl-10.4.1/bin/sage-eval +11 -0
  15. passagemath_repl-10.4.1/bin/sage-fixdoctests +691 -0
  16. passagemath_repl-10.4.1/bin/sage-grep +5 -0
  17. passagemath_repl-10.4.1/bin/sage-grepdoc +5 -0
  18. passagemath_repl-10.4.1/bin/sage-inline-fortran +12 -0
  19. passagemath_repl-10.4.1/bin/sage-ipynb2rst +50 -0
  20. passagemath_repl-10.4.1/bin/sage-ipython +16 -0
  21. passagemath_repl-10.4.1/bin/sage-list-packages +103 -0
  22. passagemath_repl-10.4.1/bin/sage-massif +25 -0
  23. passagemath_repl-10.4.1/bin/sage-notebook +267 -0
  24. passagemath_repl-10.4.1/bin/sage-num-threads.py +105 -0
  25. passagemath_repl-10.4.1/bin/sage-omega +25 -0
  26. passagemath_repl-10.4.1/bin/sage-preparse +302 -0
  27. passagemath_repl-10.4.1/bin/sage-python +2 -0
  28. passagemath_repl-10.4.1/bin/sage-run +27 -0
  29. passagemath_repl-10.4.1/bin/sage-run-cython +10 -0
  30. passagemath_repl-10.4.1/bin/sage-runtests +9 -0
  31. passagemath_repl-10.4.1/bin/sage-src-env-config.in +39 -0
  32. passagemath_repl-10.4.1/bin/sage-startuptime.py +163 -0
  33. passagemath_repl-10.4.1/bin/sage-update-version +162 -0
  34. passagemath_repl-10.4.1/bin/sage-valgrind +34 -0
  35. passagemath_repl-10.4.1/bin/sage-venv-config +42 -0
  36. passagemath_repl-10.4.1/bin/sage-version.sh +9 -0
  37. passagemath_repl-10.4.1/known-test-failures.json +165 -0
  38. passagemath_repl-10.4.1/passagemath_repl.egg-info/PKG-INFO +66 -0
  39. passagemath_repl-10.4.1/passagemath_repl.egg-info/SOURCES.txt +148 -0
  40. passagemath_repl-10.4.1/passagemath_repl.egg-info/dependency_links.txt +1 -0
  41. passagemath_repl-10.4.1/passagemath_repl.egg-info/requires.txt +9 -0
  42. passagemath_repl-10.4.1/passagemath_repl.egg-info/top_level.txt +1 -0
  43. passagemath_repl-10.4.1/pyproject.toml +107 -0
  44. passagemath_repl-10.4.1/pyproject.toml.m4 +82 -0
  45. passagemath_repl-10.4.1/requirements-editable.txt.m4 +11 -0
  46. passagemath_repl-10.4.1/requirements.txt.m4 +0 -0
  47. passagemath_repl-10.4.1/sage/all__sagemath_repl.py +119 -0
  48. passagemath_repl-10.4.1/sage/doctest/__init__.py +4 -0
  49. passagemath_repl-10.4.1/sage/doctest/__main__.py +235 -0
  50. passagemath_repl-10.4.1/sage/doctest/all.py +4 -0
  51. passagemath_repl-10.4.1/sage/doctest/check_tolerance.py +259 -0
  52. passagemath_repl-10.4.1/sage/doctest/control.py +1718 -0
  53. passagemath_repl-10.4.1/sage/doctest/external.py +534 -0
  54. passagemath_repl-10.4.1/sage/doctest/fixtures.py +383 -0
  55. passagemath_repl-10.4.1/sage/doctest/forker.py +2639 -0
  56. passagemath_repl-10.4.1/sage/doctest/marked_output.py +102 -0
  57. passagemath_repl-10.4.1/sage/doctest/parsing.py +1688 -0
  58. passagemath_repl-10.4.1/sage/doctest/parsing_test.py +79 -0
  59. passagemath_repl-10.4.1/sage/doctest/reporting.py +733 -0
  60. passagemath_repl-10.4.1/sage/doctest/rif_tol.py +123 -0
  61. passagemath_repl-10.4.1/sage/doctest/sources.py +1657 -0
  62. passagemath_repl-10.4.1/sage/doctest/test.py +584 -0
  63. passagemath_repl-10.4.1/sage/doctest/tests/1second.rst +4 -0
  64. passagemath_repl-10.4.1/sage/doctest/tests/99seconds.rst +4 -0
  65. passagemath_repl-10.4.1/sage/doctest/tests/abort.rst +5 -0
  66. passagemath_repl-10.4.1/sage/doctest/tests/atexit.rst +7 -0
  67. passagemath_repl-10.4.1/sage/doctest/tests/fail_and_die.rst +6 -0
  68. passagemath_repl-10.4.1/sage/doctest/tests/initial.rst +15 -0
  69. passagemath_repl-10.4.1/sage/doctest/tests/interrupt.rst +7 -0
  70. passagemath_repl-10.4.1/sage/doctest/tests/interrupt_diehard.rst +14 -0
  71. passagemath_repl-10.4.1/sage/doctest/tests/keyboardinterrupt.rst +11 -0
  72. passagemath_repl-10.4.1/sage/doctest/tests/longtime.rst +5 -0
  73. passagemath_repl-10.4.1/sage/doctest/tests/nodoctest +5 -0
  74. passagemath_repl-10.4.1/sage/doctest/tests/random_seed.rst +4 -0
  75. passagemath_repl-10.4.1/sage/doctest/tests/show_skipped.rst +18 -0
  76. passagemath_repl-10.4.1/sage/doctest/tests/sig_on.rst +9 -0
  77. passagemath_repl-10.4.1/sage/doctest/tests/simple_failure.rst +8 -0
  78. passagemath_repl-10.4.1/sage/doctest/tests/sleep_and_raise.rst +106 -0
  79. passagemath_repl-10.4.1/sage/doctest/tests/tolerance.rst +31 -0
  80. passagemath_repl-10.4.1/sage/doctest/util.py +534 -0
  81. passagemath_repl-10.4.1/sage/misc/all__sagemath_repl.py +4 -0
  82. passagemath_repl-10.4.1/sage/misc/banner.py +235 -0
  83. passagemath_repl-10.4.1/sage/misc/sage_eval.py +237 -0
  84. passagemath_repl-10.4.1/sage/misc/sage_input.py +3621 -0
  85. passagemath_repl-10.4.1/sage/misc/sagedoc.py +1738 -0
  86. passagemath_repl-10.4.1/sage/repl/__init__.py +16 -0
  87. passagemath_repl-10.4.1/sage/repl/all.py +15 -0
  88. passagemath_repl-10.4.1/sage/repl/attach.py +625 -0
  89. passagemath_repl-10.4.1/sage/repl/configuration.py +186 -0
  90. passagemath_repl-10.4.1/sage/repl/display/__init__.py +1 -0
  91. passagemath_repl-10.4.1/sage/repl/display/fancy_repr.py +354 -0
  92. passagemath_repl-10.4.1/sage/repl/display/formatter.py +318 -0
  93. passagemath_repl-10.4.1/sage/repl/display/jsmol_iframe.py +290 -0
  94. passagemath_repl-10.4.1/sage/repl/display/pretty_print.py +153 -0
  95. passagemath_repl-10.4.1/sage/repl/display/util.py +163 -0
  96. passagemath_repl-10.4.1/sage/repl/image.py +302 -0
  97. passagemath_repl-10.4.1/sage/repl/inputhook.py +91 -0
  98. passagemath_repl-10.4.1/sage/repl/interface_magic.py +296 -0
  99. passagemath_repl-10.4.1/sage/repl/interpreter.py +853 -0
  100. passagemath_repl-10.4.1/sage/repl/ipython_extension.py +593 -0
  101. passagemath_repl-10.4.1/sage/repl/ipython_kernel/__init__.py +1 -0
  102. passagemath_repl-10.4.1/sage/repl/ipython_kernel/__main__.py +4 -0
  103. passagemath_repl-10.4.1/sage/repl/ipython_kernel/all_jupyter.py +10 -0
  104. passagemath_repl-10.4.1/sage/repl/ipython_kernel/install.py +301 -0
  105. passagemath_repl-10.4.1/sage/repl/ipython_kernel/interact.py +273 -0
  106. passagemath_repl-10.4.1/sage/repl/ipython_kernel/kernel.py +217 -0
  107. passagemath_repl-10.4.1/sage/repl/ipython_kernel/widgets.py +466 -0
  108. passagemath_repl-10.4.1/sage/repl/ipython_kernel/widgets_sagenb.py +587 -0
  109. passagemath_repl-10.4.1/sage/repl/ipython_tests.py +163 -0
  110. passagemath_repl-10.4.1/sage/repl/load.py +326 -0
  111. passagemath_repl-10.4.1/sage/repl/preparse.py +2218 -0
  112. passagemath_repl-10.4.1/sage/repl/prompts.py +90 -0
  113. passagemath_repl-10.4.1/sage/repl/rich_output/__init__.py +4 -0
  114. passagemath_repl-10.4.1/sage/repl/rich_output/backend_base.py +648 -0
  115. passagemath_repl-10.4.1/sage/repl/rich_output/backend_doctest.py +316 -0
  116. passagemath_repl-10.4.1/sage/repl/rich_output/backend_emacs.py +151 -0
  117. passagemath_repl-10.4.1/sage/repl/rich_output/backend_ipython.py +596 -0
  118. passagemath_repl-10.4.1/sage/repl/rich_output/buffer.py +311 -0
  119. passagemath_repl-10.4.1/sage/repl/rich_output/display_manager.py +829 -0
  120. passagemath_repl-10.4.1/sage/repl/rich_output/example.avi +0 -0
  121. passagemath_repl-10.4.1/sage/repl/rich_output/example.canvas3d +1 -0
  122. passagemath_repl-10.4.1/sage/repl/rich_output/example.dvi +0 -0
  123. passagemath_repl-10.4.1/sage/repl/rich_output/example.flv +0 -0
  124. passagemath_repl-10.4.1/sage/repl/rich_output/example.gif +0 -0
  125. passagemath_repl-10.4.1/sage/repl/rich_output/example.jpg +0 -0
  126. passagemath_repl-10.4.1/sage/repl/rich_output/example.mkv +0 -0
  127. passagemath_repl-10.4.1/sage/repl/rich_output/example.mov +0 -0
  128. passagemath_repl-10.4.1/sage/repl/rich_output/example.mp4 +0 -0
  129. passagemath_repl-10.4.1/sage/repl/rich_output/example.ogv +0 -0
  130. passagemath_repl-10.4.1/sage/repl/rich_output/example.pdf +0 -0
  131. passagemath_repl-10.4.1/sage/repl/rich_output/example.png +0 -0
  132. passagemath_repl-10.4.1/sage/repl/rich_output/example.svg +54 -0
  133. passagemath_repl-10.4.1/sage/repl/rich_output/example.webm +0 -0
  134. passagemath_repl-10.4.1/sage/repl/rich_output/example.wmv +0 -0
  135. passagemath_repl-10.4.1/sage/repl/rich_output/example_jmol.spt.zip +0 -0
  136. passagemath_repl-10.4.1/sage/repl/rich_output/example_wavefront_scene.mtl +7 -0
  137. passagemath_repl-10.4.1/sage/repl/rich_output/example_wavefront_scene.obj +17 -0
  138. passagemath_repl-10.4.1/sage/repl/rich_output/output_basic.py +391 -0
  139. passagemath_repl-10.4.1/sage/repl/rich_output/output_browser.py +103 -0
  140. passagemath_repl-10.4.1/sage/repl/rich_output/output_catalog.py +54 -0
  141. passagemath_repl-10.4.1/sage/repl/rich_output/output_graphics.py +320 -0
  142. passagemath_repl-10.4.1/sage/repl/rich_output/output_graphics3d.py +345 -0
  143. passagemath_repl-10.4.1/sage/repl/rich_output/output_video.py +231 -0
  144. passagemath_repl-10.4.1/sage/repl/rich_output/preferences.py +432 -0
  145. passagemath_repl-10.4.1/sage/repl/rich_output/pretty_print.py +339 -0
  146. passagemath_repl-10.4.1/sage/repl/rich_output/test_backend.py +201 -0
  147. passagemath_repl-10.4.1/sage/repl/user_globals.py +214 -0
  148. passagemath_repl-10.4.1/setup.cfg +4 -0
  149. passagemath_repl-10.4.1/setup.py +3 -0
  150. 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')