passagemath-environment 10.4.29__py3-none-any.whl → 10.4.31__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.
@@ -428,7 +428,7 @@ usage_advanced() {
428
428
  echo " --initial -- only show the first failure per block"
429
429
  echo " --debug -- drop into PDB after an unexpected error"
430
430
  echo " --failed -- only test files that failed last test"
431
- echo " --warn-long [timeout] -- warning if doctest is slow"
431
+ echo " --warn-long [timeout] -- warn if tests take too much CPU time"
432
432
  echo " --only-errors -- only output failures, not successes"
433
433
  echo " --gc=GC -- control garbarge collection (ALWAYS:"
434
434
  echo " collect garbage before every test; NEVER:"
@@ -4,6 +4,6 @@
4
4
  # which stops "setup.py develop" from rewriting it as a Python file.
5
5
  :
6
6
  # This file is auto-generated by the sage-update-version script, do not edit!
7
- SAGE_VERSION='10.4.29'
8
- SAGE_RELEASE_DATE='2024-10-25'
9
- SAGE_VERSION_BANNER='passagemath version 10.4.29, Release Date: 2024-10-25'
7
+ SAGE_VERSION='10.4.31'
8
+ SAGE_RELEASE_DATE='2024-10-26'
9
+ SAGE_VERSION_BANNER='passagemath version 10.4.31, Release Date: 2024-10-26'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: passagemath-environment
3
- Version: 10.4.29
3
+ Version: 10.4.31
4
4
  Summary: passagemath: System and software environment
5
5
  Author-email: The Sage Developers <sage-support@googlegroups.com>
6
6
  License: GNU General Public License (GPL) v2 or later
@@ -26,20 +26,20 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
26
26
  Requires-Python: <3.13,>=3.9
27
27
  Description-Content-Type: text/x-rst
28
28
  Provides-Extra: conf
29
- Requires-Dist: passagemath-conf~=10.4.29; extra == "conf"
29
+ Requires-Dist: passagemath-conf~=10.4.31; extra == "conf"
30
30
  Provides-Extra: cython
31
31
  Requires-Dist: cython!=3.0.3,<4.0,>=3.0; extra == "cython"
32
32
  Requires-Dist: cython<3.1.0,>=3.0.8; extra == "cython"
33
33
  Provides-Extra: docbuild
34
- Requires-Dist: passagemath-docbuild~=10.4.29; extra == "docbuild"
34
+ Requires-Dist: passagemath-docbuild~=10.4.31; extra == "docbuild"
35
35
  Provides-Extra: pytest
36
36
  Requires-Dist: pytest; extra == "pytest"
37
37
  Provides-Extra: rst2ipynb
38
38
  Requires-Dist: rst2ipynb>=0.2.2; extra == "rst2ipynb"
39
39
  Provides-Extra: sage
40
- Requires-Dist: passagemath-standard~=10.4.29; extra == "sage"
40
+ Requires-Dist: passagemath-standard~=10.4.31; extra == "sage"
41
41
  Provides-Extra: sws2rst
42
- Requires-Dist: passagemath-sws2rst~=10.4.29; extra == "sws2rst"
42
+ Requires-Dist: passagemath-sws2rst~=10.4.31; extra == "sws2rst"
43
43
  Provides-Extra: tox
44
44
  Requires-Dist: tox>=4.2.7; extra == "tox"
45
45
 
@@ -1,13 +1,13 @@
1
- passagemath_environment-10.4.29.data/scripts/sage,sha256=NYSueRGQ1q1p_7u1ZpG2dM9cgtQmRHz1b2AvFLKiS60,43257
2
- passagemath_environment-10.4.29.data/scripts/sage-env,sha256=Q54ksJV-D6VBUFIeIqAiT8tktkzAEzi_wUpRuC23ITU,23221
3
- passagemath_environment-10.4.29.data/scripts/sage-num-threads.py,sha256=U09CpRe4aXkHNWHoZSYoQwYRASrvoT-l-zslRiGVbWc,3128
4
- passagemath_environment-10.4.29.data/scripts/sage-python,sha256=gXVskicH9NJtE5apMm1U-ZWDzWiz3Rm6dFBND2y60gI,28
5
- passagemath_environment-10.4.29.data/scripts/sage-venv-config,sha256=4C_dvQRTdnp6H4Qs5TT1WvNuk0fGEnXkc0eGCdVDsNY,1197
6
- passagemath_environment-10.4.29.data/scripts/sage-version.sh,sha256=UPsQkHbuu5LSbI1VKYSpCBfWvJwhWKWJvrDoaKgx8Ss,403
1
+ passagemath_environment-10.4.31.data/scripts/sage,sha256=kXEjQRMowRDrarhh4vE-lKFm3156AHN5eXVu2nS-eJg,43267
2
+ passagemath_environment-10.4.31.data/scripts/sage-env,sha256=Q54ksJV-D6VBUFIeIqAiT8tktkzAEzi_wUpRuC23ITU,23221
3
+ passagemath_environment-10.4.31.data/scripts/sage-num-threads.py,sha256=U09CpRe4aXkHNWHoZSYoQwYRASrvoT-l-zslRiGVbWc,3128
4
+ passagemath_environment-10.4.31.data/scripts/sage-python,sha256=gXVskicH9NJtE5apMm1U-ZWDzWiz3Rm6dFBND2y60gI,28
5
+ passagemath_environment-10.4.31.data/scripts/sage-venv-config,sha256=4C_dvQRTdnp6H4Qs5TT1WvNuk0fGEnXkc0eGCdVDsNY,1197
6
+ passagemath_environment-10.4.31.data/scripts/sage-version.sh,sha256=y05EHzJtMft2O3whKiwcx70zwlzf0H1L5-lJzJcuJeQ,403
7
7
  sage/all__sagemath_environment.py,sha256=d44XIAz0tXfPdQxa3dGJvF2WEf6stMQxLUFL0GC1Sv4,188
8
- sage/env.py,sha256=ntFPlbRRaD1NmCe5c26mwNKE4Q1GsX9H17b_B3QX3go,17547
9
- sage/version.py,sha256=UPL3gYwzVc_nzRpQ0QvRxQWfb-tZ1Bj4pd6kYNVS2k4,279
10
- sage/features/__init__.py,sha256=tf5ltzc-hHSPY3d-a_gHaevIDHml9ZEWY1Qg1vSlHLA,36584
8
+ sage/env.py,sha256=t-0MJQFBsxq7kY-IRgYd-NTtLOQJMFmw6-tFvYfKkWs,17908
9
+ sage/version.py,sha256=lM_tZ9FOSJx1BW7sWTkqrS_vkNNCdOXbwjPbk8pSXLM,279
10
+ sage/features/__init__.py,sha256=NMdUbvPHznj3WrNLRdmXBdK8yA0m2Ytw54u39ihWRQo,36582
11
11
  sage/features/all.py,sha256=6YQEvdLvw6Ipb0u-PLsB97wWnHj28qBYoz3fGbgrFmg,4236
12
12
  sage/features/bliss.py,sha256=SeLzXDEH30tgup593E42VJGGpR2gpRRI4lBt0ufCaGc,2447
13
13
  sage/features/cddlib.py,sha256=zHN16TIyufH14rtexQRpCW8VQbeqRV1qRMKhDp31PJk,1330
@@ -20,7 +20,7 @@ sage/features/ecm.py,sha256=qMnrunufXVKz104N-eY_3fy4Sgdzd0ohs1kXOeHvXFI,1313
20
20
  sage/features/ffmpeg.py,sha256=wtJL6t56Oe1D4k1ChZjZ6LP_kx3pGPOFkYCjvr28JPM,4762
21
21
  sage/features/four_ti_2.py,sha256=fKuKtWscuOCF4T1v8iNAlkRxSfyfp_1M-W4l9xaG6gg,1723
22
22
  sage/features/fricas.py,sha256=bhHt-RDXipIISzHvdkvMwGPOzC-qpD9eDIxSlkyW624,2333
23
- sage/features/gap.py,sha256=L0697R7N0zsjPfcnZFIB5WTj_WY7VojyPogMOZcNPf8,3318
23
+ sage/features/gap.py,sha256=DsJciQ5FIlYXkIGKtfxdag5vyl9Gei8aZJg7C3N7vjM,3374
24
24
  sage/features/gfan.py,sha256=KTLsGqregD8zzIRtfzJva40lFbPJLyLFzVXwJb5jqdE,1187
25
25
  sage/features/giac.py,sha256=N4OflOOBhAy3eRDQsq-qt50sBfjKQS4TvWnQmr4oYaw,776
26
26
  sage/features/graph_generators.py,sha256=LSoVbz7yMZDur68qz-s-YVz3xT72rhePpg8s9GJt92w,6175
@@ -64,7 +64,7 @@ sage/misc/package.py,sha256=xZF5iijW69X9DblpnLcYXQiRdjE7Uhu1MJ5eeq12T9o,19191
64
64
  sage/misc/package_dir.py,sha256=xnRMRXFrO6rHJPE-yp53a8zngTuSKuvRAy8bOWa2zGY,26659
65
65
  sage/misc/temporary_file.py,sha256=Z-0blAIrU1MAdpl3z8M_6n7-zj4Ac3NA-ULSIIKmCWU,19138
66
66
  sage/misc/viewer.py,sha256=T7DRgW07qYcKQPJ0nG-N1KoVRHz3xrL7LxkVAZ7dvOo,11554
67
- passagemath_environment-10.4.29.dist-info/METADATA,sha256=pZ9LQsVSt1gTus45QZxLgWADBPGJ4Iw8SfFanpVh_Q8,3910
68
- passagemath_environment-10.4.29.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
69
- passagemath_environment-10.4.29.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
70
- passagemath_environment-10.4.29.dist-info/RECORD,,
67
+ passagemath_environment-10.4.31.dist-info/METADATA,sha256=nUVcWCvDq1Cu1H55CcK-ZT01RKXdic0bu5a8S_iXMbA,3910
68
+ passagemath_environment-10.4.31.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
69
+ passagemath_environment-10.4.31.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
70
+ passagemath_environment-10.4.31.dist-info/RECORD,,
sage/env.py CHANGED
@@ -8,10 +8,14 @@ environment variables, and has the same ``SAGE_ROOT`` and ``SAGE_LOCAL``
8
8
 
9
9
  sage: env = {k:v for (k,v) in os.environ.items() if not k.startswith("SAGE_")}
10
10
  sage: from subprocess import check_output
11
- sage: environment = "sage.all"
12
- sage: cmd = f"from {environment} import SAGE_ROOT, SAGE_LOCAL; print((SAGE_ROOT, SAGE_LOCAL))"
11
+ sage: module_name = "sage.all" # hide .all import from the linter
12
+ sage: cmd = f"from {module_name} import SAGE_ROOT, SAGE_LOCAL;"
13
+ sage: cmd += "from os.path import samefile;"
14
+ sage: cmd += f"s1 = samefile(SAGE_ROOT, '{SAGE_ROOT}');"
15
+ sage: cmd += f"s2 = samefile(SAGE_LOCAL, '{SAGE_LOCAL}');"
16
+ sage: cmd += "print(s1 and s2);"
13
17
  sage: out = check_output([sys.executable, "-c", cmd], env=env).decode().strip() # long time
14
- sage: out == repr((SAGE_ROOT, SAGE_LOCAL)) # long time
18
+ sage: out == "True" # long time
15
19
  True
16
20
 
17
21
  AUTHORS:
@@ -144,7 +148,12 @@ def var(key: str, *fallbacks: Optional[str], force: bool = False) -> Optional[st
144
148
  import sage_conf
145
149
  value = getattr(sage_conf, key, None)
146
150
  except ImportError:
147
- pass
151
+ try:
152
+ import sage.config
153
+ value = getattr(sage.config, key, None)
154
+ except ImportError:
155
+ pass
156
+
148
157
  # Try all fallbacks in order as long as we don't have a value
149
158
  for f in fallbacks:
150
159
  if value is not None:
@@ -333,7 +342,7 @@ def get_cblas_pc_module_name() -> str:
333
342
  """
334
343
  import pkgconfig
335
344
  cblas_pc_modules = CBLAS_PC_MODULES.split(':')
336
- return next((blas_lib for blas_lib in cblas_pc_modules if pkgconfig.exists(blas_lib)))
345
+ return next(blas_lib for blas_lib in cblas_pc_modules if pkgconfig.exists(blas_lib))
337
346
 
338
347
 
339
348
  default_required_modules = ('fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular',
sage/features/__init__.py CHANGED
@@ -468,7 +468,7 @@ class FeatureNotPresentError(RuntimeError):
468
468
  return "\n".join(lines)
469
469
 
470
470
 
471
- class FeatureTestResult():
471
+ class FeatureTestResult:
472
472
  r"""
473
473
  The result of a :meth:`Feature.is_present` call.
474
474
 
sage/features/gap.py CHANGED
@@ -81,6 +81,7 @@ def all_features():
81
81
  GapPackage("grape", spkg='gap_packages'),
82
82
  GapPackage("guava", spkg='gap_packages'),
83
83
  GapPackage("hap", spkg='gap_packages'),
84
+ GapPackage("polenta", spkg='gap_packages'),
84
85
  GapPackage("polycyclic", spkg='gap_packages'),
85
86
  GapPackage("qpa", spkg='gap_packages'),
86
87
  GapPackage("quagroup", spkg='gap_packages')]
sage/version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # sage_setup: distribution = sagemath-environment
2
2
  # Sage version information for Python scripts
3
3
  # This file is auto-generated by the sage-update-version script, do not edit!
4
- version = '10.4.29'
5
- date = '2024-10-25'
6
- banner = 'passagemath version 10.4.29, Release Date: 2024-10-25'
4
+ version = '10.4.31'
5
+ date = '2024-10-26'
6
+ banner = 'passagemath version 10.4.31, Release Date: 2024-10-26'