regina 6.1.0a3__cp38-cp38-macosx_10_9_x86_64.whl → 7.3.1.1__cp38-cp38-macosx_10_9_x86_64.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.
Potentially problematic release.
This version of regina might be problematic. Click here for more details.
- regina/.dylibs/libgmp.10.dylib +0 -0
- regina/.dylibs/libgmpxx.4.dylib +0 -0
- regina/__init__.py +1 -1
- regina/engine.cpython-38-darwin.so +0 -0
- regina/sageRegina/config.py +3 -3
- regina/sageRegina/test.py +18 -9
- regina/sageRegina/testsuite/CMakeLists.txt +47 -1
- regina/sageRegina/testsuite/README.txt +9 -0
- regina/sageRegina/testsuite/alltypes.out +735 -1094
- regina/sageRegina/testsuite/alltypes.test +12 -5
- regina/sageRegina/testsuite/angles.out +102 -0
- regina/sageRegina/testsuite/angles.test +72 -0
- regina/sageRegina/testsuite/basic_callback.out +124 -0
- regina/sageRegina/testsuite/basic_sub.out +7 -0
- regina/sageRegina/testsuite/bool.out +6 -0
- regina/sageRegina/testsuite/bool.test +64 -0
- regina/sageRegina/testsuite/bytes.out +17 -0
- regina/sageRegina/testsuite/bytes.test +78 -0
- regina/sageRegina/testsuite/callbacks.out +515 -0
- regina/sageRegina/testsuite/callbacks.test +281 -0
- regina/sageRegina/testsuite/census.out +119 -12
- regina/sageRegina/testsuite/census.test +124 -13
- regina/sageRegina/testsuite/clone.out +18 -0
- regina/sageRegina/testsuite/clone.test +101 -0
- regina/sageRegina/testsuite/constructors.out +5 -5
- regina/sageRegina/testsuite/constructors.test +8 -6
- regina/sageRegina/testsuite/discs.out +3 -0
- regina/sageRegina/testsuite/discs.test +40 -0
- regina/sageRegina/testsuite/docstrings.filter +19 -0
- regina/sageRegina/testsuite/docstrings.out +808 -0
- regina/sageRegina/testsuite/docstrings.out.v3 +808 -0
- regina/sageRegina/testsuite/docstrings.test +57 -0
- regina/sageRegina/testsuite/embeddings.out +5 -2
- regina/sageRegina/testsuite/embeddings.test +13 -1
- regina/sageRegina/testsuite/enumerate.out +62 -0
- regina/sageRegina/testsuite/enumerate.test +82 -0
- regina/sageRegina/testsuite/equality.out +110 -17
- regina/sageRegina/testsuite/equality.test +265 -48
- regina/sageRegina/testsuite/euler.test +6 -10
- regina/sageRegina/testsuite/exception.out +7 -0
- regina/sageRegina/testsuite/exception.test +100 -0
- regina/sageRegina/testsuite/facenumbering.out +268 -0
- regina/sageRegina/testsuite/facenumbering.test +9 -3
- regina/sageRegina/testsuite/faces.out +40 -0
- regina/sageRegina/testsuite/faces.test +72 -0
- regina/sageRegina/testsuite/file.out +56 -211
- regina/sageRegina/testsuite/file.test +1 -3
- regina/sageRegina/testsuite/flype.out +37 -0
- regina/sageRegina/testsuite/flype.test +50 -0
- regina/sageRegina/testsuite/generic.out +8 -255
- regina/sageRegina/testsuite/generic.test +12 -16
- regina/sageRegina/testsuite/groups.out +28 -22
- regina/sageRegina/testsuite/groups.test +36 -47
- regina/sageRegina/testsuite/hypersurfaces.out +324 -3
- regina/sageRegina/testsuite/hypersurfaces.test +36 -23
- regina/sageRegina/testsuite/i18n.test +2 -2
- regina/sageRegina/testsuite/id.out +2 -0
- regina/sageRegina/testsuite/id.test +47 -0
- regina/sageRegina/testsuite/index.out +1 -1
- regina/sageRegina/testsuite/index.test +1 -3
- regina/sageRegina/testsuite/integer.out +10 -0
- regina/sageRegina/testsuite/integer.test +16 -4
- regina/sageRegina/testsuite/iterators.out +92 -0
- regina/sageRegina/testsuite/iterators.test +65 -16
- regina/sageRegina/testsuite/listener.out +13 -2
- regina/sageRegina/testsuite/listener.test +25 -22
- regina/sageRegina/testsuite/listview.out +416 -0
- regina/sageRegina/testsuite/listview.test +253 -0
- regina/sageRegina/testsuite/lookup.out +13 -0
- regina/sageRegina/testsuite/lookup.test +44 -0
- regina/sageRegina/testsuite/memory1.out +16 -7
- regina/sageRegina/testsuite/memory1.test +49 -24
- regina/sageRegina/testsuite/memory2.out +8 -32
- regina/sageRegina/testsuite/memory2.test +17 -44
- regina/sageRegina/testsuite/memory3.test +14 -14
- regina/sageRegina/testsuite/misc.test +3 -6
- regina/sageRegina/testsuite/operators.out +129 -0
- regina/sageRegina/testsuite/operators.test +61 -0
- regina/sageRegina/testsuite/orb.test +1 -3
- regina/sageRegina/testsuite/pdf.test +3 -5
- regina/sageRegina/testsuite/perm.out +11 -4
- regina/sageRegina/testsuite/perm.test +9 -1
- regina/sageRegina/testsuite/plantri.out +12 -0
- regina/sageRegina/testsuite/plantri.test +60 -0
- regina/sageRegina/testsuite/presentations.out +11 -0
- regina/sageRegina/testsuite/presentations.test +61 -0
- regina/sageRegina/testsuite/refs.out +51 -0
- regina/sageRegina/testsuite/refs.test +128 -0
- regina/sageRegina/testsuite/repr.out +951 -0
- regina/sageRegina/testsuite/repr.out.v3 +951 -0
- regina/sageRegina/testsuite/repr.test +548 -0
- regina/sageRegina/testsuite/safeheldtype_basic.out +13 -13
- regina/sageRegina/testsuite/safeheldtype_basic.test +10 -11
- regina/sageRegina/testsuite/safeheldtype_packet.out +17 -17
- regina/sageRegina/testsuite/safeheldtype_packet.test +37 -35
- regina/sageRegina/testsuite/sets.out +7 -0
- regina/sageRegina/testsuite/sets.test +44 -0
- regina/sageRegina/testsuite/skeleton.out +173 -719
- regina/sageRegina/testsuite/skeleton.test +6 -8
- regina/sageRegina/testsuite/snappea.out +82 -0
- regina/sageRegina/testsuite/snappea.test +107 -0
- regina/sageRegina/testsuite/snapshot.out +15 -0
- regina/sageRegina/testsuite/snapshot.test +78 -0
- regina/sageRegina/testsuite/sort.out +57 -0
- regina/sageRegina/testsuite/sort.test +53 -0
- regina/sageRegina/testsuite/special.out +4 -0
- regina/sageRegina/testsuite/special.test +47 -0
- regina/sageRegina/testsuite/standardtri.out +12101 -0
- regina/sageRegina/testsuite/standardtri.test +455 -0
- regina/sageRegina/testsuite/surfaces.out +24 -24
- regina/sageRegina/testsuite/surfaces.test +35 -35
- regina/sageRegina/testsuite/swapping.test +1 -3
- regina/sageRegina/testsuite/testall.in +21 -5
- regina/sageRegina/testsuite/testbasic.in +279 -0
- regina/sageRegina/testsuite/testcallback.in +150 -0
- regina/sageRegina/testsuite/testsub.in +150 -0
- regina/sageRegina/testsuite/tightencode.out +40 -0
- regina/sageRegina/testsuite/tightencode.test +108 -0
- regina/sageRegina/testsuite/treedecomp.out +135 -0
- regina/sageRegina/testsuite/treedecomp.test +66 -0
- regina/sageRegina/testsuite/treetraversal.out +52 -0
- regina/sageRegina/testsuite/treetraversal.test +190 -0
- regina/sageRegina/testsuite/trigeneral.out +22 -22
- regina/sageRegina/testsuite/trigeneral.test +41 -41
- regina/sageRegina/testsuite/utf8.out +8 -8
- regina/sageRegina/testsuite/utf8.test +3 -8
- regina/sageRegina/version.py +2 -2
- {regina-6.1.0a3.dist-info → regina-7.3.1.1.dist-info}/METADATA +12 -13
- regina-7.3.1.1.dist-info/RECORD +162 -0
- {regina-6.1.0a3.dist-info → regina-7.3.1.1.dist-info}/WHEEL +1 -1
- regina-6.1.0a3.dist-info/RECORD +0 -98
- {regina-6.1.0a3.dist-info → regina-7.3.1.1.dist-info}/top_level.txt +0 -0
regina/.dylibs/libgmp.10.dylib
CHANGED
|
Binary file
|
regina/.dylibs/libgmpxx.4.dylib
CHANGED
|
Binary file
|
regina/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Regina - A Normal Surface Theory Calculator
|
|
2
2
|
# Python Module Initialisation
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2023, Ben Burton
|
|
5
5
|
# For further details contact Ben Burton (bab@debian.org).
|
|
6
6
|
#
|
|
7
7
|
# This program is free software; you can redistribute it and/or
|
|
Binary file
|
regina/sageRegina/config.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
tokyocabinet_uri = '
|
|
1
|
+
tokyocabinet_uri = 'https://dbmx.net/tokyocabinet/tokyocabinet-1.4.48.tar.gz'
|
|
2
2
|
tokyocabinet_dir = 'tokyocabinet-1.4.48'
|
|
3
3
|
|
|
4
|
-
libxml_uri = 'http://
|
|
4
|
+
libxml_uri = 'http://xmlsoft.org/sources/libxml2-2.9.3.tar.gz'
|
|
5
5
|
libxml_dir = 'libxml2-2.9.3'
|
|
6
6
|
|
|
7
|
-
regina_hash = '
|
|
7
|
+
regina_hash = '979c943023' # 7.3.1
|
|
8
8
|
regina_uri = 'https://github.com/regina-normal/regina.git'
|
|
9
9
|
regina_dir = 'regina_%s' % regina_hash
|
regina/sageRegina/test.py
CHANGED
|
@@ -7,15 +7,11 @@ from . version import version
|
|
|
7
7
|
|
|
8
8
|
import sys
|
|
9
9
|
import os
|
|
10
|
+
import re
|
|
10
11
|
import glob
|
|
11
12
|
import difflib
|
|
12
13
|
import traceback
|
|
13
|
-
|
|
14
|
-
# Python 3
|
|
15
|
-
from io import StringIO
|
|
16
|
-
except:
|
|
17
|
-
# Python 2
|
|
18
|
-
from StringIO import StringIO
|
|
14
|
+
from io import StringIO
|
|
19
15
|
|
|
20
16
|
base_path = os.path.split(__file__)[0]
|
|
21
17
|
testsuite_path = os.path.join(base_path, 'testsuite')
|
|
@@ -76,13 +72,26 @@ def runTest(testName, testFile):
|
|
|
76
72
|
# <boost.python.function at 0x34534345345>
|
|
77
73
|
output = '\n'.join( output.split('\n')[:-2])
|
|
78
74
|
baseline = '\n'.join(baseline.split('\n')[:-2])
|
|
79
|
-
|
|
75
|
+
|
|
76
|
+
if testName == 'docstrings':
|
|
77
|
+
output = re.subn(r'(\s*)__pybind11_module_local_([a-zA-Z0-9_-]+) = <capsule.*\.\.\.',
|
|
78
|
+
r'\1__pybind11_module_local__ = ...', output)[0]
|
|
79
|
+
output = re.subn(r'(\s*)Methods( inherited from pybind11_object:)',
|
|
80
|
+
r'\1Static methods\2', output)[0]
|
|
81
|
+
output = re.subn(r'__new__\(\*args, \*\*kwargs\) class method of pybind11_builtins.pybind11_object',
|
|
82
|
+
r'__new__(*args, **kwargs) from pybind11_builtins.pybind11_type',
|
|
83
|
+
output)[0]
|
|
84
|
+
|
|
85
|
+
# For Python 3.12, there are trailing whitespace issues, so we
|
|
86
|
+
# normalize.
|
|
87
|
+
baseline = [line.strip() for line in baseline.split('\n')]
|
|
88
|
+
output = [line.strip() for line in output.split('\n')]
|
|
80
89
|
if output != baseline:
|
|
81
90
|
failed += "Difference between baseline and output:\n"
|
|
82
91
|
failed += '\n'.join(
|
|
83
92
|
difflib.context_diff(
|
|
84
|
-
baseline
|
|
85
|
-
output
|
|
93
|
+
baseline,
|
|
94
|
+
output,
|
|
86
95
|
fromfile = os.path.basename(testFile),
|
|
87
96
|
tofile = 'OUTPUT'))
|
|
88
97
|
|
|
@@ -4,11 +4,57 @@ CONFIGURE_FILE(
|
|
|
4
4
|
"${PROJECT_BINARY_DIR}/python/testsuite/testall"
|
|
5
5
|
@ONLY
|
|
6
6
|
)
|
|
7
|
+
CONFIGURE_FILE(
|
|
8
|
+
testbasic.in
|
|
9
|
+
"${PROJECT_BINARY_DIR}/python/testsuite/testbasic"
|
|
10
|
+
@ONLY
|
|
11
|
+
)
|
|
12
|
+
CONFIGURE_FILE(
|
|
13
|
+
testsub.in
|
|
14
|
+
"${PROJECT_BINARY_DIR}/python/testsuite/testsub"
|
|
15
|
+
@ONLY
|
|
16
|
+
)
|
|
17
|
+
CONFIGURE_FILE(
|
|
18
|
+
testcallback.in
|
|
19
|
+
"${PROJECT_BINARY_DIR}/python/testsuite/testcallback"
|
|
20
|
+
@ONLY
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
# A very basic interpreter (and related code) to use for testing:
|
|
24
|
+
INCLUDE_DIRECTORIES(${Python_INCLUDE_DIRS} ${ENGINE_INCLUDES} "${PROJECT_BINARY_DIR}/engine")
|
|
25
|
+
ADD_COMPILE_DEFINITIONS(REGINA_PYTHON_USE_PYTHONPATH=1)
|
|
26
|
+
ADD_LINK_OPTIONS(${Python_LINK_OPTIONS})
|
|
27
|
+
add_executable(basic
|
|
28
|
+
basic.cpp
|
|
29
|
+
../gui/pythoninterpreter.cpp
|
|
30
|
+
../gui/pythonoutputstream.cpp)
|
|
31
|
+
target_link_libraries(basic ${ENGINE_LIBRARY} ${Python_LIBRARIES})
|
|
32
|
+
add_executable(basic_alltypes
|
|
33
|
+
basic_alltypes.cpp
|
|
34
|
+
../gui/pythoninterpreter.cpp
|
|
35
|
+
../gui/pythonoutputstream.cpp)
|
|
36
|
+
target_link_libraries(basic_alltypes ${ENGINE_LIBRARY} ${Python_LIBRARIES})
|
|
37
|
+
add_executable(basic_sub
|
|
38
|
+
basic_sub.cpp
|
|
39
|
+
../gui/pythoninterpreter.cpp
|
|
40
|
+
../gui/pythonoutputstream.cpp)
|
|
41
|
+
target_link_libraries(basic_sub ${ENGINE_LIBRARY} ${Python_LIBRARIES})
|
|
42
|
+
add_executable(basic_callback
|
|
43
|
+
basic_callback.cpp
|
|
44
|
+
../gui/pythoninterpreter.cpp
|
|
45
|
+
../gui/pythonoutputstream.cpp)
|
|
46
|
+
target_link_libraries(basic_callback ${ENGINE_LIBRARY} ${Python_LIBRARIES})
|
|
7
47
|
|
|
8
48
|
IF (WIN32)
|
|
9
49
|
ADD_TEST(python-test bash testall)
|
|
50
|
+
ADD_TEST(python-basic bash testbasic)
|
|
51
|
+
ADD_TEST(python-sub bash testsub)
|
|
52
|
+
ADD_TEST(python-callback bash testcallback)
|
|
10
53
|
# We do not need to add the engine DLL location to the path, since
|
|
11
|
-
# regina-python
|
|
54
|
+
# regina-python (used in testall) and testbasic (directly) do this for us.
|
|
12
55
|
ELSE (WIN32)
|
|
13
56
|
ADD_TEST(python-test ./testall)
|
|
57
|
+
ADD_TEST(python-basic ./testbasic)
|
|
58
|
+
ADD_TEST(python-sub ./testsub)
|
|
59
|
+
ADD_TEST(python-callback ./testcallback)
|
|
14
60
|
ENDIF (WIN32)
|
|
@@ -8,4 +8,13 @@ operating correctly under different compilers or on different platforms.
|
|
|
8
8
|
To build and run the test suite, move to the top-level build directory
|
|
9
9
|
and type: make test ARGS=-V
|
|
10
10
|
|
|
11
|
+
The *.test scripts within this directory should, where possible, be written
|
|
12
|
+
to simultaneously work both as full scripts and also as line-by-line command
|
|
13
|
+
execution (simulating a human typing commands into a Python interpreter).
|
|
14
|
+
This puts extra requirements on the formatting and syntax; e.g.:
|
|
15
|
+
- blank lines must be added between successive indented blocks;
|
|
16
|
+
- blank lines within an indented block must include the indent also;
|
|
17
|
+
- return values should be assigned to dummy variables, not discarded
|
|
18
|
+
(which would create spurious output in line-by-line execution).
|
|
19
|
+
|
|
11
20
|
See also the C++ test suite in ../../testsuite/.
|