passagemath-repl 10.4.62__py3-none-any.whl → 10.4.64__py3-none-any.whl

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 (25) hide show
  1. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-fixdoctests +13 -11
  2. {passagemath_repl-10.4.62.dist-info → passagemath_repl-10.4.64.dist-info}/METADATA +3 -3
  3. {passagemath_repl-10.4.62.dist-info → passagemath_repl-10.4.64.dist-info}/RECORD +25 -25
  4. sage/doctest/control.py +1 -1
  5. sage/tests/all.py +0 -3
  6. sage/tests/{__init__.py → all__sagemath_repl.py} +2 -0
  7. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-cachegrind +0 -0
  8. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-callgrind +0 -0
  9. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-cleaner +0 -0
  10. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-coverage +0 -0
  11. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-eval +0 -0
  12. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-inline-fortran +0 -0
  13. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-ipynb2rst +0 -0
  14. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-ipython +0 -0
  15. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-massif +0 -0
  16. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-notebook +0 -0
  17. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-omega +0 -0
  18. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-preparse +0 -0
  19. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-run +0 -0
  20. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-run-cython +0 -0
  21. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-runtests +0 -0
  22. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-startuptime.py +0 -0
  23. {passagemath_repl-10.4.62.data → passagemath_repl-10.4.64.data}/scripts/sage-valgrind +0 -0
  24. {passagemath_repl-10.4.62.dist-info → passagemath_repl-10.4.64.dist-info}/WHEEL +0 -0
  25. {passagemath_repl-10.4.62.dist-info → passagemath_repl-10.4.64.dist-info}/top_level.txt +0 -0
@@ -56,6 +56,8 @@ parser.add_argument("--distribution", type=str, default=[], action='append',
56
56
  help="distribution package to test, e.g., 'sagemath-graphs', 'sagemath-combinat[modules]'; sets defaults for --venv and --environment. This option can be repeated to test several distributions")
57
57
  parser.add_argument("--fixed-point", default=False, action="store_true",
58
58
  help="whether to repeat until stable")
59
+ parser.add_argument("--toxenv", type=str, default='sagepython-sagewheels-nopypi-norequirements',
60
+ help="tox environment name where 'sage -t' is to be run")
59
61
  parser.add_argument("--venv", type=str, default='',
60
62
  help="directory name of a venv where 'sage -t' is to be run")
61
63
  parser.add_argument("--environment", type=str, default='',
@@ -95,10 +97,10 @@ def plain_distribution_and_extras(distribution):
95
97
  m = re.fullmatch(r'([^[]*)(\[([^]]*)\])?', distribution)
96
98
  return m.group(1), m.group(3)
97
99
 
98
- def default_venv_environment_from_distribution(distribution):
100
+ def default_venv_environment_from_distribution(distribution, toxenv):
99
101
  if distribution:
100
102
  plain_distribution, extras = plain_distribution_and_extras(distribution)
101
- tox_env_name = 'sagepython-sagewheels-nopypi-norequirements'
103
+ tox_env_name = toxenv or 'sagepython-sagewheels-nopypi-norequirements'
102
104
  if extras:
103
105
  tox_env_name += '-' + extras.replace(',', '-')
104
106
  default_venv = os.path.join(SAGE_ROOT, 'pkgs', plain_distribution, '.tox', tox_env_name)
@@ -113,16 +115,16 @@ def default_venv_environment_from_distribution(distribution):
113
115
 
114
116
 
115
117
  @cached_function
116
- def venv_explainer(distribution, venv=None, environment=None):
118
+ def venv_explainer(distribution, venv=None, environment=None, toxenv=None):
117
119
  venv_explainers = []
118
- default_venv, default_environment = default_venv_environment_from_distribution(distribution)
120
+ default_venv, default_environment = default_venv_environment_from_distribution(distribution, toxenv)
119
121
  if venv:
120
122
  if m := re.search(f'pkgs/(sage[^/]*)/[.]tox/((sagepython|sagewheels|nopypi|norequirements)-*)*([^/]*)$',
121
123
  venv):
122
124
  distribution, extras = m.group(1), m.group(4)
123
125
  if extras:
124
126
  distribution += '[' + extras.replace('-', ',') + ']'
125
- default_venv_given_distribution, default_environment_given_distribution = default_venv_environment_from_distribution(distribution)
127
+ default_venv_given_distribution, default_environment_given_distribution = default_venv_environment_from_distribution(distribution, toxenv)
126
128
 
127
129
  if (Path(venv).resolve() == Path(default_venv_given_distribution).resolve()
128
130
  or not environment or environment == default_environment_given_distribution):
@@ -557,11 +559,11 @@ def process_grouped_blocks(grouped_iterator, distribution=None, venv=None, envir
557
559
  print(f"{count:6} {' '.join(sorted(tags)) or '(untagged)'}")
558
560
 
559
561
 
560
- def fix_with_distribution(file_set, distribution=None, verbose=False):
562
+ def fix_with_distribution(file_set, distribution=None, toxenv=None, verbose=False):
561
563
  if verbose:
562
564
  print("#" * 78)
563
565
  print(f"sage-fixdoctests: Fixing with --distribution={shlex.quote(distribution)}")
564
- default_venv, default_environment = default_venv_environment_from_distribution(distribution)
566
+ default_venv, default_environment = default_venv_environment_from_distribution(distribution, toxenv)
565
567
  venv = args.venv or default_venv
566
568
  environment = args.environment or default_environment
567
569
  file_set_to_process = sorted(file_set)
@@ -641,10 +643,10 @@ if __name__ == "__main__":
641
643
  if args.no_test:
642
644
  pass
643
645
  elif len(args.distribution) == 1 and not args.fixed_point:
644
- fix_with_distribution(set(unprocessed_files), args.distribution[0])
646
+ fix_with_distribution(set(unprocessed_files), args.distribution[0], toxenv=args.toxenv)
645
647
  else:
646
648
  for distribution, file_set in venv_files.items():
647
- fix_with_distribution(file_set, distribution, verbose=True)
649
+ fix_with_distribution(file_set, distribution, verbose=True, toxenv=args.toxenv)
648
650
  if args.fixed_point:
649
651
  if args.probe:
650
652
  print(f"sage-fixdoctests: Turning off --probe for the following iterations")
@@ -657,7 +659,7 @@ if __name__ == "__main__":
657
659
  if not file_set:
658
660
  break
659
661
  while file_set:
660
- fix_with_distribution(file_set, distribution, verbose=True)
662
+ fix_with_distribution(file_set, distribution, verbose=True, toxenv=args.toxenv)
661
663
  # Immediately re-run with the same distribution to continue chains of
662
664
  # "NameError" / "variable was set only in doctest" fixes
663
665
 
@@ -679,7 +681,7 @@ if __name__ == "__main__":
679
681
  if distribution == '':
680
682
  continue
681
683
  plain_distribution, extras = plain_distribution_and_extras(distribution)
682
- default_venv, _ = default_venv_environment_from_distribution(distribution)
684
+ default_venv, _ = default_venv_environment_from_distribution(distribution, args.toxenv)
683
685
  venv = args.venv or default_venv
684
686
  try:
685
687
  stats_filename = os.path.join(default_venv, '.sage/timings2.json')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: passagemath-repl
3
- Version: 10.4.62
3
+ Version: 10.4.64
4
4
  Summary: passagemath: IPython kernel, Sage preparser, doctester
5
5
  Author-email: The Sage Developers <sage-support@googlegroups.com>
6
6
  Maintainer: Matthias Köppe, passagemath contributors
@@ -28,8 +28,8 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
28
28
  Classifier: Topic :: Scientific/Engineering :: Mathematics
29
29
  Requires-Python: <3.13,>=3.9
30
30
  Description-Content-Type: text/x-rst
31
- Requires-Dist: passagemath-objects ~=10.4.62.0
32
- Requires-Dist: passagemath-environment ~=10.4.62.0
31
+ Requires-Dist: passagemath-objects ~=10.4.64.0
32
+ Requires-Dist: passagemath-environment ~=10.4.64.0
33
33
  Requires-Dist: ipykernel >=5.2.1
34
34
  Requires-Dist: ipython >=7.13.0
35
35
  Requires-Dist: ipywidgets >=7.5.1
@@ -1,27 +1,27 @@
1
- passagemath_repl-10.4.62.data/scripts/sage-cachegrind,sha256=FRrT4BoRsrATlQOrXALHAbDI_KLhz0XuDOD6xzECEl8,651
2
- passagemath_repl-10.4.62.data/scripts/sage-callgrind,sha256=pWhrI8NsVa_XSuay052htjxcM3thrpX8rI6Uj_pK5Uo,442
3
- passagemath_repl-10.4.62.data/scripts/sage-cleaner,sha256=vM0CkzbxiSCE0Z85AViQIvoxb5oUz5WOmVOvShbLDUY,7778
4
- passagemath_repl-10.4.62.data/scripts/sage-coverage,sha256=IhvqnFvmvNJBMQtiSu5_Qy52a67hG-r3cAeyhYOOj7w,10199
5
- passagemath_repl-10.4.62.data/scripts/sage-eval,sha256=4IHv01xH34wJPj61wzcL5ufhoO6Y3UTTGz7b-0YKJFw,266
6
- passagemath_repl-10.4.62.data/scripts/sage-fixdoctests,sha256=69YF8o0tVGtjl6mgjpm4G9BALYuJzsOPFWlqPobfIY8,36561
7
- passagemath_repl-10.4.62.data/scripts/sage-inline-fortran,sha256=T3U943WNPKrxQJuanBhTpXU3jJ5vjaXd56R8yWv_8PM,234
8
- passagemath_repl-10.4.62.data/scripts/sage-ipynb2rst,sha256=PynBPdthnpwGbILDRA38IwpT319Ze-g8UMmWaaTnimQ,1345
9
- passagemath_repl-10.4.62.data/scripts/sage-ipython,sha256=RYYd8-gmE5JE_-dCkOSDpC6rRsX6i6tma3pqgmXYJvM,342
10
- passagemath_repl-10.4.62.data/scripts/sage-massif,sha256=Tfqb6ON9d0OZnt6VlGS21asbdMq8zWzx8ZnvV1n_buI,613
11
- passagemath_repl-10.4.62.data/scripts/sage-notebook,sha256=QJ1Y4eTptc6TbNVXZswpcsn-NqaQNuSwjWE-lYmGpW8,8453
12
- passagemath_repl-10.4.62.data/scripts/sage-omega,sha256=4ARnHyZyB69ltxHj9xYpzad_YCBT3Nk0Wq3Ke09gExM,595
13
- passagemath_repl-10.4.62.data/scripts/sage-preparse,sha256=3L1KKgvSApvoK467Wza0S4WQLCXiYvivrhDKIvA1omc,10595
14
- passagemath_repl-10.4.62.data/scripts/sage-run,sha256=F1oAgPN7Kh5dO1smCyfGVT0Dy46NQ_dQ3OQZ8Wa6foM,689
15
- passagemath_repl-10.4.62.data/scripts/sage-run-cython,sha256=02mTGXokayRxISoCWWsDcKZwGrmh5B0mJJxTT87J01Q,235
16
- passagemath_repl-10.4.62.data/scripts/sage-runtests,sha256=nUvI3fCrBjqPUict01wIxwYPjvaZf4ttLp85tavUEpY,111
17
- passagemath_repl-10.4.62.data/scripts/sage-startuptime.py,sha256=RtIuC7jM3SOwROXTa6nnpJhzK0sQ24nDqyE6zXpCWEI,6209
18
- passagemath_repl-10.4.62.data/scripts/sage-valgrind,sha256=fZxy00oXU4PpHf_wc2uYKb7lzqSBY4VkhUxiuvXHKhA,1201
1
+ passagemath_repl-10.4.64.data/scripts/sage-cachegrind,sha256=FRrT4BoRsrATlQOrXALHAbDI_KLhz0XuDOD6xzECEl8,651
2
+ passagemath_repl-10.4.64.data/scripts/sage-callgrind,sha256=pWhrI8NsVa_XSuay052htjxcM3thrpX8rI6Uj_pK5Uo,442
3
+ passagemath_repl-10.4.64.data/scripts/sage-cleaner,sha256=vM0CkzbxiSCE0Z85AViQIvoxb5oUz5WOmVOvShbLDUY,7778
4
+ passagemath_repl-10.4.64.data/scripts/sage-coverage,sha256=IhvqnFvmvNJBMQtiSu5_Qy52a67hG-r3cAeyhYOOj7w,10199
5
+ passagemath_repl-10.4.64.data/scripts/sage-eval,sha256=4IHv01xH34wJPj61wzcL5ufhoO6Y3UTTGz7b-0YKJFw,266
6
+ passagemath_repl-10.4.64.data/scripts/sage-fixdoctests,sha256=cTWoFr9rAdOF-xeW6ytNeX3EzhKcs1mTN4UilP4kiGg,36877
7
+ passagemath_repl-10.4.64.data/scripts/sage-inline-fortran,sha256=T3U943WNPKrxQJuanBhTpXU3jJ5vjaXd56R8yWv_8PM,234
8
+ passagemath_repl-10.4.64.data/scripts/sage-ipynb2rst,sha256=PynBPdthnpwGbILDRA38IwpT319Ze-g8UMmWaaTnimQ,1345
9
+ passagemath_repl-10.4.64.data/scripts/sage-ipython,sha256=RYYd8-gmE5JE_-dCkOSDpC6rRsX6i6tma3pqgmXYJvM,342
10
+ passagemath_repl-10.4.64.data/scripts/sage-massif,sha256=Tfqb6ON9d0OZnt6VlGS21asbdMq8zWzx8ZnvV1n_buI,613
11
+ passagemath_repl-10.4.64.data/scripts/sage-notebook,sha256=QJ1Y4eTptc6TbNVXZswpcsn-NqaQNuSwjWE-lYmGpW8,8453
12
+ passagemath_repl-10.4.64.data/scripts/sage-omega,sha256=4ARnHyZyB69ltxHj9xYpzad_YCBT3Nk0Wq3Ke09gExM,595
13
+ passagemath_repl-10.4.64.data/scripts/sage-preparse,sha256=3L1KKgvSApvoK467Wza0S4WQLCXiYvivrhDKIvA1omc,10595
14
+ passagemath_repl-10.4.64.data/scripts/sage-run,sha256=F1oAgPN7Kh5dO1smCyfGVT0Dy46NQ_dQ3OQZ8Wa6foM,689
15
+ passagemath_repl-10.4.64.data/scripts/sage-run-cython,sha256=02mTGXokayRxISoCWWsDcKZwGrmh5B0mJJxTT87J01Q,235
16
+ passagemath_repl-10.4.64.data/scripts/sage-runtests,sha256=nUvI3fCrBjqPUict01wIxwYPjvaZf4ttLp85tavUEpY,111
17
+ passagemath_repl-10.4.64.data/scripts/sage-startuptime.py,sha256=RtIuC7jM3SOwROXTa6nnpJhzK0sQ24nDqyE6zXpCWEI,6209
18
+ passagemath_repl-10.4.64.data/scripts/sage-valgrind,sha256=fZxy00oXU4PpHf_wc2uYKb7lzqSBY4VkhUxiuvXHKhA,1201
19
19
  sage/all__sagemath_repl.py,sha256=z6lERTYuw3I4LQ7-hnEYbY1i-hMJj2uAm2ujOmWitSo,5713
20
20
  sage/doctest/__init__.py,sha256=JJMNkq7Rh3gCshtynqXDTLJgUKweNFlUhpnbvTLRMwg,166
21
21
  sage/doctest/__main__.py,sha256=wGVNiaPbhQwzoAs3Y1xhYBlB18pBieEDhi71ggF8NkQ,13647
22
22
  sage/doctest/all.py,sha256=SRWEXRjzsrFyY1rrErA7--1DrvjUQR0Th30P6vubnZ0,157
23
23
  sage/doctest/check_tolerance.py,sha256=YnYr981uSUZWfuv5OrXdytXsZx6PtJnQ7Mg8-Lj7pB4,8945
24
- sage/doctest/control.py,sha256=EFdLwvZH2EAEPQNmpzJOqMWw5atYDnzRD48kdzDXkGY,67737
24
+ sage/doctest/control.py,sha256=IrHXC3rPBBlRlxwdKdSRo3p7erob4EnYqUr_pMxoYC8,67746
25
25
  sage/doctest/external.py,sha256=p1cmRXQdwLa4PZwn3VJzd6j-MpW_oJf4PDgVIuBgwBs,15577
26
26
  sage/doctest/fixtures.py,sha256=UDSykekKanmnD737VXFv7r5QzcZmqzfwn1Noc_fKcnE,12784
27
27
  sage/doctest/forker.py,sha256=QhRJE8zV_KV0o8-4SX0tAzP49uZkYtsLY1mAkRDopI0,110831
@@ -135,8 +135,8 @@ sage/repl/rich_output/output_video.py,sha256=4-yQKBCr785qnb2Hdp2E8Ds39WbhNI5moHT
135
135
  sage/repl/rich_output/preferences.py,sha256=AQNOC0RrkcVXsvMAfyAw1IJJgbG6Xd2YjAUt_LPzcJU,12896
136
136
  sage/repl/rich_output/pretty_print.py,sha256=RQYNkwwMBRZGaXgw1Bff1VdxSHVui5y-azaqWBC9IdQ,11054
137
137
  sage/repl/rich_output/test_backend.py,sha256=jqzlRjh5lYBmUkrRoaSbYLMQ0HYzJA1kQ0TdmdsBNTM,6606
138
- sage/tests/__init__.py,sha256=6mNw0BEw6mZsoOi004elrLvD4m4RffLmgY921IwsNXk,43
139
- sage/tests/all.py,sha256=U0L7QUQRA5DQQ1cqv8tjHB1fr4uXj_q6q_H6e44PTh0,51
138
+ sage/tests/all.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
+ sage/tests/all__sagemath_repl.py,sha256=U0L7QUQRA5DQQ1cqv8tjHB1fr4uXj_q6q_H6e44PTh0,51
140
140
  sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py,sha256=bam9TtDj7Wic1Fs5XL3TOX0G4svjBqF7jmAa4vnWZsQ,19928
141
141
  sage/tests/arxiv_0812_2725.py,sha256=Ts2xNNLCb5wl05xxMfB5h4YhVFuLEr6CWl-D4LQj-yM,9959
142
142
  sage/tests/benchmark.py,sha256=gPsP9C-bvFqb2Zt2MmdUR0eRKSidX21h5WWKlYpvP0I,55429
@@ -156,7 +156,7 @@ sage/tests/startup.py,sha256=G8Co8afXEC1FO9pyFlryBzLXXwY40_BcWrimaPadw3w,1185
156
156
  sage/tests/symbolic-series.py,sha256=5WlGSwW4eq-Ydev0jYtLDtuk1KCIJ7QCNE0IhZpc37Q,2991
157
157
  sage/tests/sympy.py,sha256=SGzxN4faL0Y3lokTYV_n_IYjf65pc1foBfLbxDhPDgk,431
158
158
  sage/tests/test_deprecation.py,sha256=Y2uvLozCshTPhQgfAxT_pAkkgX5Q16yJwQ0CleKHDJw,917
159
- passagemath_repl-10.4.62.dist-info/METADATA,sha256=PRn3XXxppaUULO7rSKEbMuGEMd9IVTbhSmD7ktc6Esw,3148
160
- passagemath_repl-10.4.62.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
161
- passagemath_repl-10.4.62.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
162
- passagemath_repl-10.4.62.dist-info/RECORD,,
159
+ passagemath_repl-10.4.64.dist-info/METADATA,sha256=L802srks0_tmb-Mij_3EGRreY_ae85tQuNcrrU3aIuc,3148
160
+ passagemath_repl-10.4.64.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
161
+ passagemath_repl-10.4.64.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
162
+ passagemath_repl-10.4.64.dist-info/RECORD,,
sage/doctest/control.py CHANGED
@@ -497,7 +497,7 @@ class DocTestController(SageObject):
497
497
  if pkg.name in options.hide:
498
498
  continue
499
499
  # Skip features for which we have a more specific runtime feature test.
500
- if pkg.name in ['bliss', 'coxeter3', 'ecm', 'fricas', 'frobby', 'gfan', 'giac', 'jmol', 'latte_int', 'macaulay2', 'mcqd', 'meataxe', 'msolve', 'sirocco', 'tdlib']:
500
+ if pkg.name in ['bliss', 'coxeter3', 'eclib', 'ecm', 'fricas', 'frobby', 'gfan', 'giac', 'jmol', 'latte_int', 'macaulay2', 'mcqd', 'meataxe', 'msolve', 'sirocco', 'tdlib']:
501
501
  continue
502
502
  if pkg.is_installed() and pkg.installed_version == pkg.remote_version:
503
503
  options.optional.add(pkg.name)
sage/tests/all.py CHANGED
@@ -1,3 +0,0 @@
1
- # sage_setup: distribution = sagemath-repl
2
- """
3
- """
@@ -1 +1,3 @@
1
1
  # sage_setup: distribution = sagemath-repl
2
+ """
3
+ """