passagemath-database-cunningham 10.6.5__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.

Potentially problematic release.


This version of passagemath-database-cunningham might be problematic. Click here for more details.

@@ -0,0 +1,20 @@
1
+ include VERSION.txt
2
+
3
+ include sage/databases/cunningham_tables.p*
4
+
5
+ global-exclude all__*.py
6
+ global-include all__sagemath_database_cunningham.py
7
+
8
+ global-exclude *.c
9
+ global-exclude *.cpp
10
+
11
+ include repair_wheel.py
12
+
13
+ global-exclude __pycache__
14
+ global-exclude *.py[co]
15
+ global-exclude *.bak
16
+ global-exclude *.so
17
+ global-exclude *~
18
+ prune .tox
19
+ prune build
20
+ prune dist
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: passagemath-database-cunningham
3
+ Version: 10.6.5
4
+ Summary: passagemath: List of the prime numbers occuring in the Cunningham table
5
+ Author-email: The Sage Developers <sage-support@googlegroups.com>
6
+ Maintainer: Matthias Köppe, passagemath contributors
7
+ License-Expression: GPL-2.0-or-later
8
+ Project-URL: release notes, https://github.com/passagemath/passagemath/releases
9
+ Project-URL: repo (upstream), https://github.com/sagemath/sage
10
+ Project-URL: repo, https://github.com/passagemath/passagemath
11
+ Project-URL: documentation, https://passagemath.org/docs/latest
12
+ Project-URL: homepage (upstream), https://www.sagemath.org
13
+ Project-URL: discourse, https://passagemath.discourse.group
14
+ Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
15
+ Project-URL: tracker, https://github.com/passagemath/passagemath/issues
16
+ Classifier: Development Status :: 6 - Mature
17
+ Classifier: Intended Audience :: Education
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS :: MacOS X
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
29
+ Requires-Python: <3.14,>=3.10
30
+ Description-Content-Type: text/x-rst
31
+ Requires-Dist: passagemath-conf~=10.6.5.0; sys_platform != "win32"
32
+ Requires-Dist: passagemath-environment~=10.6.5.0
33
+
34
+ =========================================================================
35
+ passagemath: List of the prime numbers occuring in the Cunningham table
36
+ =========================================================================
37
+
38
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
39
+ source mathematical software in Python, released under the GNU General
40
+ Public Licence GPLv2+.
41
+
42
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
43
+ developed 2005-2025 under the motto “Creating a Viable Open Source
44
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
45
+
46
+ The passagemath fork uses the motto "Creating a Free Passage Between the
47
+ Scientific Python Ecosystem and Mathematical Software Communities."
48
+ It was created in October 2024 with the following goals:
49
+
50
+ - providing modularized installation with pip,
51
+ - establishing first-class membership in the scientific Python
52
+ ecosystem,
53
+ - giving `clear attribution of upstream
54
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
55
+ - providing independently usable Python interfaces to upstream
56
+ libraries,
57
+ - offering `platform portability and integration testing
58
+ services <https://github.com/passagemath/passagemath/issues/704>`__
59
+ to upstream projects,
60
+ - inviting collaborations with upstream projects,
61
+ - `building a professional, respectful, inclusive
62
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
63
+ - `empowering Sage users to participate in the scientific Python ecosystem
64
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
65
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
66
+ serverless deployment with Javascript,
67
+ - developing a native Windows port.
68
+
69
+ `Full documentation <https://doc.sagemath.org/html/en/index.html>`__ is
70
+ available online.
71
+
72
+ passagemath attempts to support and provides binary wheels suitable for
73
+ all major Linux distributions and recent versions of macOS.
74
+
75
+ For the Linux aarch64 (ARM) platform, some third-party packages are still missing
76
+ wheels; see the `instructions for building them from source <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__.
77
+
78
+ Binary wheels for native Windows (x86_64) are are available for a subset of
79
+ the passagemath distributions. Use of the full functionality of passagemath
80
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
81
+ or virtualization.
82
+
83
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
84
+
85
+
86
+ About this pip-installable distribution package
87
+ -----------------------------------------------
88
+
89
+ This pip-installable distribution ``passagemath-database-cunningham`` is a
90
+ distribution of the list of the prime numbers occuring in the Cunningham table.
91
+
92
+
93
+ What is included
94
+ ----------------
95
+
96
+ - Wheels on PyPI include the cunningham_tables files
@@ -0,0 +1,63 @@
1
+ =========================================================================
2
+ passagemath: List of the prime numbers occuring in the Cunningham table
3
+ =========================================================================
4
+
5
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
6
+ source mathematical software in Python, released under the GNU General
7
+ Public Licence GPLv2+.
8
+
9
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
10
+ developed 2005-2025 under the motto “Creating a Viable Open Source
11
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
12
+
13
+ The passagemath fork uses the motto "Creating a Free Passage Between the
14
+ Scientific Python Ecosystem and Mathematical Software Communities."
15
+ It was created in October 2024 with the following goals:
16
+
17
+ - providing modularized installation with pip,
18
+ - establishing first-class membership in the scientific Python
19
+ ecosystem,
20
+ - giving `clear attribution of upstream
21
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
22
+ - providing independently usable Python interfaces to upstream
23
+ libraries,
24
+ - offering `platform portability and integration testing
25
+ services <https://github.com/passagemath/passagemath/issues/704>`__
26
+ to upstream projects,
27
+ - inviting collaborations with upstream projects,
28
+ - `building a professional, respectful, inclusive
29
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
30
+ - `empowering Sage users to participate in the scientific Python ecosystem
31
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
32
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
33
+ serverless deployment with Javascript,
34
+ - developing a native Windows port.
35
+
36
+ `Full documentation <https://doc.sagemath.org/html/en/index.html>`__ is
37
+ available online.
38
+
39
+ passagemath attempts to support and provides binary wheels suitable for
40
+ all major Linux distributions and recent versions of macOS.
41
+
42
+ For the Linux aarch64 (ARM) platform, some third-party packages are still missing
43
+ wheels; see the `instructions for building them from source <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__.
44
+
45
+ Binary wheels for native Windows (x86_64) are are available for a subset of
46
+ the passagemath distributions. Use of the full functionality of passagemath
47
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
48
+ or virtualization.
49
+
50
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
51
+
52
+
53
+ About this pip-installable distribution package
54
+ -----------------------------------------------
55
+
56
+ This pip-installable distribution ``passagemath-database-cunningham`` is a
57
+ distribution of the list of the prime numbers occuring in the Cunningham table.
58
+
59
+
60
+ What is included
61
+ ----------------
62
+
63
+ - Wheels on PyPI include the cunningham_tables files
@@ -0,0 +1 @@
1
+ 10.6.5
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: passagemath-database-cunningham
3
+ Version: 10.6.5
4
+ Summary: passagemath: List of the prime numbers occuring in the Cunningham table
5
+ Author-email: The Sage Developers <sage-support@googlegroups.com>
6
+ Maintainer: Matthias Köppe, passagemath contributors
7
+ License-Expression: GPL-2.0-or-later
8
+ Project-URL: release notes, https://github.com/passagemath/passagemath/releases
9
+ Project-URL: repo (upstream), https://github.com/sagemath/sage
10
+ Project-URL: repo, https://github.com/passagemath/passagemath
11
+ Project-URL: documentation, https://passagemath.org/docs/latest
12
+ Project-URL: homepage (upstream), https://www.sagemath.org
13
+ Project-URL: discourse, https://passagemath.discourse.group
14
+ Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
15
+ Project-URL: tracker, https://github.com/passagemath/passagemath/issues
16
+ Classifier: Development Status :: 6 - Mature
17
+ Classifier: Intended Audience :: Education
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS :: MacOS X
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
29
+ Requires-Python: <3.14,>=3.10
30
+ Description-Content-Type: text/x-rst
31
+ Requires-Dist: passagemath-conf~=10.6.5.0; sys_platform != "win32"
32
+ Requires-Dist: passagemath-environment~=10.6.5.0
33
+
34
+ =========================================================================
35
+ passagemath: List of the prime numbers occuring in the Cunningham table
36
+ =========================================================================
37
+
38
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
39
+ source mathematical software in Python, released under the GNU General
40
+ Public Licence GPLv2+.
41
+
42
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
43
+ developed 2005-2025 under the motto “Creating a Viable Open Source
44
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
45
+
46
+ The passagemath fork uses the motto "Creating a Free Passage Between the
47
+ Scientific Python Ecosystem and Mathematical Software Communities."
48
+ It was created in October 2024 with the following goals:
49
+
50
+ - providing modularized installation with pip,
51
+ - establishing first-class membership in the scientific Python
52
+ ecosystem,
53
+ - giving `clear attribution of upstream
54
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
55
+ - providing independently usable Python interfaces to upstream
56
+ libraries,
57
+ - offering `platform portability and integration testing
58
+ services <https://github.com/passagemath/passagemath/issues/704>`__
59
+ to upstream projects,
60
+ - inviting collaborations with upstream projects,
61
+ - `building a professional, respectful, inclusive
62
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
63
+ - `empowering Sage users to participate in the scientific Python ecosystem
64
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
65
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
66
+ serverless deployment with Javascript,
67
+ - developing a native Windows port.
68
+
69
+ `Full documentation <https://doc.sagemath.org/html/en/index.html>`__ is
70
+ available online.
71
+
72
+ passagemath attempts to support and provides binary wheels suitable for
73
+ all major Linux distributions and recent versions of macOS.
74
+
75
+ For the Linux aarch64 (ARM) platform, some third-party packages are still missing
76
+ wheels; see the `instructions for building them from source <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__.
77
+
78
+ Binary wheels for native Windows (x86_64) are are available for a subset of
79
+ the passagemath distributions. Use of the full functionality of passagemath
80
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
81
+ or virtualization.
82
+
83
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
84
+
85
+
86
+ About this pip-installable distribution package
87
+ -----------------------------------------------
88
+
89
+ This pip-installable distribution ``passagemath-database-cunningham`` is a
90
+ distribution of the list of the prime numbers occuring in the Cunningham table.
91
+
92
+
93
+ What is included
94
+ ----------------
95
+
96
+ - Wheels on PyPI include the cunningham_tables files
@@ -0,0 +1,14 @@
1
+ MANIFEST.in
2
+ README.rst
3
+ VERSION.txt
4
+ pyproject.toml
5
+ repair_wheel.py
6
+ setup.py
7
+ passagemath_database_cunningham.egg-info/PKG-INFO
8
+ passagemath_database_cunningham.egg-info/SOURCES.txt
9
+ passagemath_database_cunningham.egg-info/dependency_links.txt
10
+ passagemath_database_cunningham.egg-info/requires.txt
11
+ passagemath_database_cunningham.egg-info/top_level.txt
12
+ sage/all__sagemath_database_cunningham.py
13
+ sage/databases/all__sagemath_database_cunningham.py
14
+ sage/databases/cunningham_tables.py
@@ -0,0 +1,4 @@
1
+ passagemath-environment~=10.6.5.0
2
+
3
+ [:sys_platform != "win32"]
4
+ passagemath-conf~=10.6.5.0
@@ -0,0 +1,60 @@
1
+ [build-system]
2
+ # Minimum requirements for the build system to execute.
3
+ requires = [
4
+ 'setuptools >= 77.0.0',
5
+ 'passagemath-setup ~= 10.6.5.0',
6
+ 'passagemath-conf ~= 10.6.5.0 ; sys_platform != "win32"',
7
+ 'passagemath-environment ~= 10.6.5.0',
8
+ ]
9
+ build-backend = "setuptools.build_meta"
10
+
11
+ [project]
12
+ name = "passagemath-database-cunningham"
13
+ description = "passagemath: List of the prime numbers occuring in the Cunningham table"
14
+ dependencies = [
15
+ 'passagemath-conf ~= 10.6.5.0 ; sys_platform != "win32"',
16
+ 'passagemath-environment ~= 10.6.5.0',
17
+ ]
18
+ dynamic = ["version"]
19
+ license = "GPL-2.0-or-later"
20
+ authors = [{name = "The Sage Developers", email = "sage-support@googlegroups.com"}]
21
+ maintainers = [
22
+ {name = "Matthias Köppe"},
23
+ {name = "passagemath contributors"},
24
+ ]
25
+ classifiers = [
26
+ "Development Status :: 6 - Mature",
27
+ "Intended Audience :: Education",
28
+ "Intended Audience :: Science/Research",
29
+ "Operating System :: POSIX",
30
+ "Operating System :: POSIX :: Linux",
31
+ "Operating System :: MacOS :: MacOS X",
32
+ "Programming Language :: Python :: 3 :: Only",
33
+ "Programming Language :: Python :: 3.10",
34
+ "Programming Language :: Python :: 3.11",
35
+ "Programming Language :: Python :: 3.12",
36
+ "Programming Language :: Python :: 3.13",
37
+ "Programming Language :: Python :: Implementation :: CPython",
38
+ "Topic :: Scientific/Engineering :: Mathematics",
39
+ ]
40
+ requires-python = ">=3.10, <3.14"
41
+
42
+ [project.urls]
43
+ "release notes" = "https://github.com/passagemath/passagemath/releases"
44
+ "repo (upstream)" = "https://github.com/sagemath/sage"
45
+ "repo" = "https://github.com/passagemath/passagemath"
46
+ documentation = "https://passagemath.org/docs/latest"
47
+ "homepage (upstream)" = "https://www.sagemath.org"
48
+ "discourse" = "https://passagemath.discourse.group"
49
+ "tracker (upstream)" = "https://github.com/sagemath/sage/issues"
50
+ "tracker" = "https://github.com/passagemath/passagemath/issues"
51
+
52
+ [project.readme]
53
+ file = "README.rst"
54
+ content-type = "text/x-rst"
55
+
56
+ [tool.setuptools]
57
+ include-package-data = false
58
+
59
+ [tool.setuptools.dynamic]
60
+ version = {file = ["VERSION.txt"]}
@@ -0,0 +1,31 @@
1
+ # Add data to the wheel
2
+
3
+ import os
4
+ import shlex
5
+ import sys
6
+
7
+ from pathlib import Path
8
+
9
+ from auditwheel.wheeltools import InWheel
10
+
11
+ from sage_conf import SAGE_LOCAL
12
+
13
+ if "TMPDIR" in os.environ:
14
+ os.environ["TMPDIR"] = str(Path(os.environ["TMPDIR"]).resolve())
15
+
16
+ wheel = Path(sys.argv[1])
17
+
18
+ with InWheel(wheel, wheel):
19
+ command = f'set -o pipefail; (cd {shlex.quote(SAGE_LOCAL)} && tar cf - --dereference share/cunningham_tables) | (mkdir -p sage_wheels && cd sage_wheels && tar xvf -)'
20
+ print(f'Running {command}')
21
+ sys.stdout.flush()
22
+ if os.system(f"bash -c {shlex.quote(command)}") != 0:
23
+ sys.exit(1)
24
+
25
+ # Remove the sage-conf dependency; it is not needed because our wheels ship what is needed.
26
+
27
+ command = 'sed -i.bak "/^Requires-Dist: passagemath-conf/d" *.dist-info/METADATA'
28
+ print(f'Running {command}')
29
+ sys.stdout.flush()
30
+ if os.system(f"bash -c {shlex.quote(command)}") != 0:
31
+ sys.exit(1)
@@ -0,0 +1 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
@@ -0,0 +1,7 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
2
+
3
+ from sage.misc.lazy_import import lazy_import
4
+
5
+ lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors')
6
+
7
+ del lazy_import
@@ -0,0 +1,54 @@
1
+ # sage_setup: distribution = sagemath-database-cunningham
2
+ r"""
3
+ Cunningham tables
4
+
5
+ This module provides :func:`cunningham_prime_factors`, which lists the prime
6
+ numbers occurring in the factorization of numbers of type `b^n+1` or `b^n-1`
7
+ with `b \in \{2,3,5,6,7,10,11,12\}`. For an introduction to Cunningham prime
8
+ factors, see :wikipedia:`Cunningham_Project`. The data becomes available if you
9
+ install the optional :ref:`cunningham_tables <spkg_cunningham_tables>` package by
10
+ the command ::
11
+
12
+ sage -i cunningham_tables
13
+
14
+ AUTHORS:
15
+
16
+ - Yann Laigle-Chapuy (2009-10-18): initial version
17
+ """
18
+
19
+ import os
20
+ from sage.misc.cachefunc import cached_function
21
+ from sage.rings.integer import Integer
22
+ from sage.misc.persist import load
23
+ from sage.env import SAGE_SHARE
24
+
25
+
26
+ @cached_function
27
+ def cunningham_prime_factors():
28
+ r"""
29
+ List of all the prime numbers occurring in the so called Cunningham table.
30
+
31
+ They occur in the factorization of numbers of type `b^n+1` or `b^n-1` with `b \in \{2,3,5,6,7,10,11,12\}`.
32
+
33
+ EXAMPLES::
34
+
35
+ sage: # optional - cunningham_tables
36
+ sage: from sage.databases.cunningham_tables import cunningham_prime_factors
37
+ sage: cunningham_prime_factors()
38
+ [2,
39
+ 3,
40
+ 5,
41
+ 7,
42
+ 11,
43
+ 13,
44
+ 17,
45
+ ...
46
+ """
47
+ file = os.path.join(SAGE_SHARE,'cunningham_tables','cunningham_prime_factors.sobj')
48
+ if os.path.exists(file):
49
+ return [Integer(_) for _ in load(file)]
50
+ else:
51
+ from warnings import warn
52
+ warn("You might consider installing the optional package for factoring Cunningham numbers"
53
+ " with the following command: ``sage -i cunningham_tables``")
54
+ return []
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env python
2
+
3
+ # PEP 517 builds do not have . in sys.path
4
+ import os
5
+ import sys
6
+ sys.path.insert(0, os.path.dirname(__file__))
7
+
8
+ from sage_setup import sage_setup
9
+
10
+ sage_setup(['sagemath-database-cunningham'],
11
+ spkgs=['cunningham_tables'])