coconut-develop 3.2.0.post0.dev16__tar.gz → 3.2.0.post0.dev17__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.
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/DOCS.md +2 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/PKG-INFO +166 -134
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/__init__.pyi +2 -2
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/_pyparsing.py +2 -2
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/command.py +10 -5
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/compiler.py +17 -3
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/grammar.py +32 -11
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/constants.py +4 -1
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/root.py +38 -7
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/root.py +1 -1
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/main_test.py +19 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/primary_2.coco +1 -1
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/specific.coco +1 -1
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/extras.coco +18 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/.claude/CLAUDE.md +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/.claude/settings.local.json +1 -1
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/CONTRIBUTING.md +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/FAQ.md +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/HELP.md +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/LICENSE.txt +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/MANIFEST.in +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/README.rst +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/py.typed +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/_coconut/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/_coconut/__init__.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/_coconut/py.typed +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__coconut__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__coconut__.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__init__.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__main__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/api.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/api.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/__init__.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/cli.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/command.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/mypy.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/resources/zcoconut.pth +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/util.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/watch.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/header.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/matching.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/templates/header.py_template +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/util.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/convenience.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/convenience.pyi +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/exceptions.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/highlighter.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/__main__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/coconut/kernel.json +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/coconut_py/kernel.json +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/coconut_py2/kernel.json +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/coconut_py3/kernel.json +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/embed.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/integrations.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/main.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/py.typed +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/requirements.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/terminal.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/__init__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/__main__.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/constants_test.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/__init__.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/__main__.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/main.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/primary_1.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/suite.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/tutorial.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/agnostic/util.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/non_strict/non_strict_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_2/py2_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_3/py3_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_311/py311_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_314/py314_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_35/py35_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_36/py36_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_38/py38_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/cocotest/target_sys/target_sys_test.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/importable.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/runnable.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/src/runner.coco +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/util.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut_develop.egg-info/SOURCES.txt +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/conf.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/pyproject.toml +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/setup.cfg +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/setup.py +0 -0
- {coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/xontrib/coconut.py +0 -0
|
@@ -1760,6 +1760,8 @@ lazy from module import name1, name2
|
|
|
1760
1760
|
|
|
1761
1761
|
When a lazy import is encountered, Coconut creates a proxy object instead of immediately loading the module. The actual import only occurs when the name is first accessed (e.g. by accessing an attribute). Import errors are also deferred—if the module doesn't exist, the `ImportError` will be raised at the point of first use, not at the import statement.
|
|
1762
1762
|
|
|
1763
|
+
When targeting Python 3.15+, Coconut compiles unindented (top-level) lazy imports to native Python lazy imports. Since Python only allows lazy imports at the top level of a module (not inside functions, classes, or `try`/`except` blocks), Coconut still supports lazy imports in those places by compiling indented lazy imports to the same proxy objects used on older targets.
|
|
1764
|
+
|
|
1763
1765
|
##### Example
|
|
1764
1766
|
|
|
1765
1767
|
**Coconut:**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: coconut-develop
|
|
3
|
-
Version: 3.2.0.post0.
|
|
3
|
+
Version: 3.2.0.post0.dev17
|
|
4
4
|
Summary: Simple, elegant, Pythonic functional programming.
|
|
5
5
|
Home-page: http://coconut-lang.org
|
|
6
6
|
Author: Evan Hubinger
|
|
@@ -33,6 +33,9 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
33
33
|
Classifier: Programming Language :: Python :: 3.10
|
|
34
34
|
Classifier: Programming Language :: Python :: 3.11
|
|
35
35
|
Classifier: Programming Language :: Python :: 3.12
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
36
39
|
Classifier: Programming Language :: Other
|
|
37
40
|
Classifier: Programming Language :: Other Scripting Engines
|
|
38
41
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -80,200 +83,229 @@ Requires-Dist: numpy>=1.26; python_version >= "3.9" and extra == "numpy"
|
|
|
80
83
|
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "numpy"
|
|
81
84
|
Requires-Dist: xarray>=2025; python_version >= "3.10" and extra == "numpy"
|
|
82
85
|
Provides-Extra: jupyter
|
|
83
|
-
Requires-Dist:
|
|
84
|
-
Requires-Dist:
|
|
85
|
-
Requires-Dist:
|
|
86
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupyter"
|
|
87
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupyter"
|
|
88
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupyter"
|
|
86
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupyter"
|
|
87
|
+
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "jupyter"
|
|
88
|
+
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "jupyter"
|
|
89
89
|
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "jupyter"
|
|
90
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupyter"
|
|
91
|
+
Requires-Dist: papermill>=1.2; extra == "jupyter"
|
|
90
92
|
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "jupyter"
|
|
91
|
-
Requires-Dist:
|
|
92
|
-
Requires-Dist:
|
|
93
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupyter"
|
|
94
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "jupyter"
|
|
95
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "jupyter"
|
|
96
|
+
Requires-Dist: jupyter>=1.1; extra == "jupyter"
|
|
97
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "jupyter"
|
|
93
98
|
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "jupyter"
|
|
94
|
-
Requires-Dist: jupyter-
|
|
95
|
-
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupyter"
|
|
99
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "jupyter"
|
|
96
100
|
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "jupyter"
|
|
101
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "jupyter"
|
|
97
102
|
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "jupyter"
|
|
98
|
-
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupyter"
|
|
99
|
-
Requires-Dist: jupyter>=1.1; extra == "jupyter"
|
|
100
|
-
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupyter"
|
|
101
103
|
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "jupyter"
|
|
102
|
-
Requires-Dist: jupyter-
|
|
103
|
-
Requires-Dist:
|
|
104
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupyter"
|
|
105
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupyter"
|
|
106
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupyter"
|
|
104
107
|
Provides-Extra: jupyterlab
|
|
105
|
-
Requires-Dist:
|
|
106
|
-
Requires-Dist:
|
|
107
|
-
Requires-Dist:
|
|
108
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupyterlab"
|
|
109
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupyterlab"
|
|
110
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupyterlab"
|
|
108
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupyterlab"
|
|
109
|
+
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "jupyterlab"
|
|
110
|
+
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "jupyterlab"
|
|
111
111
|
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "jupyterlab"
|
|
112
|
+
Requires-Dist: jupyterlab>=2.2; python_version >= "3.5" and extra == "jupyterlab"
|
|
113
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupyterlab"
|
|
114
|
+
Requires-Dist: papermill>=1.2; extra == "jupyterlab"
|
|
112
115
|
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "jupyterlab"
|
|
113
|
-
Requires-Dist:
|
|
114
|
-
Requires-Dist:
|
|
116
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupyterlab"
|
|
117
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "jupyterlab"
|
|
118
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "jupyterlab"
|
|
119
|
+
Requires-Dist: jupyter>=1.1; extra == "jupyterlab"
|
|
120
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "jupyterlab"
|
|
115
121
|
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "jupyterlab"
|
|
116
|
-
Requires-Dist: jupyter-
|
|
117
|
-
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupyterlab"
|
|
122
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "jupyterlab"
|
|
118
123
|
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "jupyterlab"
|
|
124
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "jupyterlab"
|
|
119
125
|
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "jupyterlab"
|
|
120
|
-
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupyterlab"
|
|
121
|
-
Requires-Dist: jupyter>=1.1; extra == "jupyterlab"
|
|
122
|
-
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupyterlab"
|
|
123
126
|
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "jupyterlab"
|
|
124
|
-
Requires-Dist: jupyter-
|
|
125
|
-
Requires-Dist:
|
|
126
|
-
Requires-Dist:
|
|
127
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupyterlab"
|
|
128
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupyterlab"
|
|
129
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupyterlab"
|
|
127
130
|
Provides-Extra: jupytext
|
|
128
|
-
Requires-Dist:
|
|
129
|
-
Requires-Dist:
|
|
130
|
-
Requires-Dist:
|
|
131
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupytext"
|
|
132
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupytext"
|
|
133
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupytext"
|
|
131
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupytext"
|
|
132
|
+
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "jupytext"
|
|
133
|
+
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "jupytext"
|
|
134
134
|
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "jupytext"
|
|
135
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "jupytext"
|
|
136
|
+
Requires-Dist: papermill>=1.2; extra == "jupytext"
|
|
135
137
|
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "jupytext"
|
|
136
|
-
Requires-Dist:
|
|
137
|
-
Requires-Dist:
|
|
138
|
+
Requires-Dist: jupytext>=1.8; python_version >= "3" and extra == "jupytext"
|
|
139
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "jupytext"
|
|
140
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "jupytext"
|
|
141
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "jupytext"
|
|
142
|
+
Requires-Dist: jupyter>=1.1; extra == "jupytext"
|
|
143
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "jupytext"
|
|
138
144
|
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "jupytext"
|
|
139
|
-
Requires-Dist: jupyter-
|
|
140
|
-
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupytext"
|
|
145
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "jupytext"
|
|
141
146
|
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "jupytext"
|
|
147
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "jupytext"
|
|
142
148
|
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "jupytext"
|
|
143
|
-
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "jupytext"
|
|
144
|
-
Requires-Dist: jupyter>=1.1; extra == "jupytext"
|
|
145
|
-
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupytext"
|
|
146
149
|
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "jupytext"
|
|
147
|
-
Requires-Dist: jupyter-
|
|
148
|
-
Requires-Dist:
|
|
149
|
-
Requires-Dist:
|
|
150
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "jupytext"
|
|
151
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "jupytext"
|
|
152
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "jupytext"
|
|
150
153
|
Provides-Extra: all
|
|
151
|
-
Requires-Dist:
|
|
152
|
-
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "all"
|
|
153
|
-
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "all"
|
|
154
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "all"
|
|
155
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "all"
|
|
156
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "all"
|
|
157
|
-
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "all"
|
|
158
|
-
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "all"
|
|
159
|
-
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "all"
|
|
154
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "all"
|
|
160
155
|
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "all"
|
|
161
|
-
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "all"
|
|
162
156
|
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "all"
|
|
163
|
-
Requires-Dist:
|
|
164
|
-
Requires-Dist:
|
|
165
|
-
Requires-Dist:
|
|
166
|
-
Requires-Dist:
|
|
157
|
+
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "all"
|
|
158
|
+
Requires-Dist: jupyterlab>=2.2; python_version >= "3.5" and extra == "all"
|
|
159
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "all"
|
|
160
|
+
Requires-Dist: papermill>=1.2; extra == "all"
|
|
161
|
+
Requires-Dist: xonsh>=0.11; (python_version >= "3.6" and python_version < "3.11") and extra == "all"
|
|
162
|
+
Requires-Dist: pyright>=1.1; extra == "all"
|
|
163
|
+
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "all"
|
|
164
|
+
Requires-Dist: jupytext>=1.8; python_version >= "3" and extra == "all"
|
|
165
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "all"
|
|
166
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "all"
|
|
167
167
|
Requires-Dist: watchdog>=0.10; extra == "all"
|
|
168
168
|
Requires-Dist: mypy[python2]>=1.19; extra == "all"
|
|
169
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "all"
|
|
170
|
+
Requires-Dist: numpy>=1.16; (python_version < "3" and platform_python_implementation == "CPython") and extra == "all"
|
|
171
|
+
Requires-Dist: jupyter>=1.1; extra == "all"
|
|
172
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "all"
|
|
173
|
+
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "all"
|
|
169
174
|
Requires-Dist: types-backports>=0.1; extra == "all"
|
|
170
|
-
Requires-Dist:
|
|
171
|
-
Requires-Dist: pyright>=1.1; extra == "all"
|
|
172
|
-
Requires-Dist: xonsh>=0.9; python_version < "3.6" and extra == "all"
|
|
173
|
-
Requires-Dist: xonsh>=0.11; (python_version >= "3.6" and python_version < "3.11") and extra == "all"
|
|
175
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "all"
|
|
174
176
|
Requires-Dist: xonsh>=0.22; python_version >= "3.11" and extra == "all"
|
|
175
|
-
Requires-Dist:
|
|
177
|
+
Requires-Dist: typing>=3.10; python_version < "3.5" and extra == "all"
|
|
178
|
+
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "all"
|
|
179
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "all"
|
|
176
180
|
Requires-Dist: numpy>=1.18; (python_version >= "3.4" and python_version < "3.9") and extra == "all"
|
|
177
181
|
Requires-Dist: numpy>=1.26; python_version >= "3.9" and extra == "all"
|
|
178
|
-
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "all"
|
|
179
182
|
Requires-Dist: xarray>=2025; python_version >= "3.10" and extra == "all"
|
|
180
|
-
Requires-Dist:
|
|
181
|
-
Requires-Dist:
|
|
183
|
+
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "all"
|
|
184
|
+
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "all"
|
|
182
185
|
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "all"
|
|
183
|
-
Requires-Dist: jupyter-
|
|
184
|
-
Requires-Dist:
|
|
185
|
-
Requires-Dist:
|
|
186
|
-
Requires-Dist:
|
|
186
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "all"
|
|
187
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "all"
|
|
188
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "all"
|
|
189
|
+
Requires-Dist: xonsh>=0.9; python_version < "3.6" and extra == "all"
|
|
187
190
|
Provides-Extra: ipython
|
|
188
|
-
Requires-Dist:
|
|
189
|
-
Requires-Dist:
|
|
190
|
-
Requires-Dist:
|
|
191
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "ipython"
|
|
192
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "ipython"
|
|
193
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "ipython"
|
|
191
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "ipython"
|
|
192
|
+
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "ipython"
|
|
193
|
+
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "ipython"
|
|
194
194
|
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "ipython"
|
|
195
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "ipython"
|
|
196
|
+
Requires-Dist: papermill>=1.2; extra == "ipython"
|
|
195
197
|
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "ipython"
|
|
196
|
-
Requires-Dist:
|
|
197
|
-
Requires-Dist:
|
|
198
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "ipython"
|
|
199
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "ipython"
|
|
200
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "ipython"
|
|
201
|
+
Requires-Dist: jupyter>=1.1; extra == "ipython"
|
|
202
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "ipython"
|
|
198
203
|
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "ipython"
|
|
199
|
-
Requires-Dist: jupyter-
|
|
200
|
-
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "ipython"
|
|
204
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "ipython"
|
|
201
205
|
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "ipython"
|
|
206
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "ipython"
|
|
202
207
|
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "ipython"
|
|
203
|
-
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "ipython"
|
|
204
|
-
Requires-Dist: jupyter>=1.1; extra == "ipython"
|
|
205
|
-
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "ipython"
|
|
206
208
|
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "ipython"
|
|
207
|
-
Requires-Dist: jupyter-
|
|
208
|
-
Requires-Dist:
|
|
209
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "ipython"
|
|
210
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "ipython"
|
|
211
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "ipython"
|
|
209
212
|
Provides-Extra: docs
|
|
210
|
-
Requires-Dist: sphinx>=8; extra == "docs"
|
|
211
213
|
Requires-Dist: pygments>=2.3; python_version < "3.9" and extra == "docs"
|
|
212
|
-
Requires-Dist: pygments>=2.19; python_version >= "3.9" and extra == "docs"
|
|
213
214
|
Requires-Dist: myst-parser>=4; extra == "docs"
|
|
215
|
+
Requires-Dist: sphinx>=8; extra == "docs"
|
|
214
216
|
Requires-Dist: pydata-sphinx-theme>=0.16; extra == "docs"
|
|
217
|
+
Requires-Dist: pygments>=2.19; python_version >= "3.9" and extra == "docs"
|
|
215
218
|
Requires-Dist: sphinxcontrib_applehelp>=2; extra == "docs"
|
|
216
219
|
Requires-Dist: sphinxcontrib_htmlhelp>=2; extra == "docs"
|
|
217
220
|
Provides-Extra: tests
|
|
218
|
-
Requires-Dist:
|
|
221
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "tests"
|
|
222
|
+
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "tests"
|
|
223
|
+
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "tests"
|
|
224
|
+
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "tests"
|
|
225
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "tests"
|
|
226
|
+
Requires-Dist: papermill>=1.2; extra == "tests"
|
|
227
|
+
Requires-Dist: pexpect>=4; extra == "tests"
|
|
228
|
+
Requires-Dist: xonsh>=0.11; (python_version >= "3.6" and python_version < "3.11") and extra == "tests"
|
|
229
|
+
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "tests"
|
|
230
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "tests"
|
|
231
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "tests"
|
|
232
|
+
Requires-Dist: numpy>=1.16; (python_version < "3" and platform_python_implementation == "CPython") and extra == "tests"
|
|
233
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "tests"
|
|
234
|
+
Requires-Dist: jupyter>=1.1; extra == "tests"
|
|
235
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "tests"
|
|
219
236
|
Requires-Dist: pytest>=7; (python_version >= "3.6" and python_version < "3.8") and extra == "tests"
|
|
237
|
+
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "tests"
|
|
220
238
|
Requires-Dist: pytest<8.1,>=8.0; python_version >= "3.8" and extra == "tests"
|
|
221
|
-
Requires-Dist:
|
|
239
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "tests"
|
|
240
|
+
Requires-Dist: xonsh>=0.22; python_version >= "3.11" and extra == "tests"
|
|
241
|
+
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "tests"
|
|
222
242
|
Requires-Dist: pytest_remotedata>=0.3; extra == "tests"
|
|
243
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "tests"
|
|
244
|
+
Requires-Dist: numpy>=1.18; (python_version >= "3.4" and python_version < "3.9") and extra == "tests"
|
|
245
|
+
Requires-Dist: numpy>=1.26; python_version >= "3.9" and extra == "tests"
|
|
246
|
+
Requires-Dist: xarray>=2025; python_version >= "3.10" and extra == "tests"
|
|
247
|
+
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "tests"
|
|
248
|
+
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "tests"
|
|
249
|
+
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "tests"
|
|
250
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "tests"
|
|
251
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "tests"
|
|
252
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "tests"
|
|
253
|
+
Requires-Dist: xonsh>=0.9; python_version < "3.6" and extra == "tests"
|
|
254
|
+
Requires-Dist: pytest>=3; python_version < "3.6" and extra == "tests"
|
|
223
255
|
Provides-Extra: dev
|
|
224
|
-
Requires-Dist:
|
|
225
|
-
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "dev"
|
|
226
|
-
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "dev"
|
|
227
|
-
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "dev"
|
|
228
|
-
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "dev"
|
|
229
|
-
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "dev"
|
|
230
|
-
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "dev"
|
|
231
|
-
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "dev"
|
|
232
|
-
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "dev"
|
|
256
|
+
Requires-Dist: pywinpty<0.6,>=0.5; (python_version < "3" and os_name == "nt") and extra == "dev"
|
|
233
257
|
Requires-Dist: ipykernel>=7; python_version >= "3.10" and extra == "dev"
|
|
234
|
-
Requires-Dist:
|
|
258
|
+
Requires-Dist: sphinx>=8; extra == "dev"
|
|
235
259
|
Requires-Dist: jupyter-client<6.1.13,>=6.1.12; (python_version >= "3.5" and python_version < "3.6") and extra == "dev"
|
|
236
|
-
Requires-Dist:
|
|
237
|
-
Requires-Dist:
|
|
238
|
-
Requires-Dist:
|
|
239
|
-
Requires-Dist:
|
|
260
|
+
Requires-Dist: ipykernel>=4.10; python_version < "3" and extra == "dev"
|
|
261
|
+
Requires-Dist: pygments>=2.19; python_version >= "3.9" and extra == "dev"
|
|
262
|
+
Requires-Dist: jupyterlab>=2.2; python_version >= "3.5" and extra == "dev"
|
|
263
|
+
Requires-Dist: ipython>=8.18; (python_version >= "3.9" and python_version < "3.11") and extra == "dev"
|
|
264
|
+
Requires-Dist: papermill>=1.2; extra == "dev"
|
|
265
|
+
Requires-Dist: pexpect>=4; extra == "dev"
|
|
266
|
+
Requires-Dist: sphinxcontrib_applehelp>=2; extra == "dev"
|
|
267
|
+
Requires-Dist: xonsh>=0.11; (python_version >= "3.6" and python_version < "3.11") and extra == "dev"
|
|
268
|
+
Requires-Dist: pyright>=1.1; extra == "dev"
|
|
269
|
+
Requires-Dist: ipykernel>=5.5; (python_version >= "3" and python_version < "3.8") and extra == "dev"
|
|
270
|
+
Requires-Dist: jupytext>=1.8; python_version >= "3" and extra == "dev"
|
|
271
|
+
Requires-Dist: ipython>=8.12; (python_version >= "3.8" and python_version < "3.9") and extra == "dev"
|
|
272
|
+
Requires-Dist: ipython>=7.34; (python_version >= "3.7" and python_version < "3.8") and extra == "dev"
|
|
240
273
|
Requires-Dist: watchdog>=0.10; extra == "dev"
|
|
241
274
|
Requires-Dist: mypy[python2]>=1.19; extra == "dev"
|
|
275
|
+
Requires-Dist: ipython<7.10,>=7.9; (python_version >= "3" and python_version < "3.7") and extra == "dev"
|
|
276
|
+
Requires-Dist: numpy>=1.16; (python_version < "3" and platform_python_implementation == "CPython") and extra == "dev"
|
|
277
|
+
Requires-Dist: pyparsing<2.4.8,>=2.4.7; extra == "dev"
|
|
278
|
+
Requires-Dist: jupyter>=1.1; extra == "dev"
|
|
279
|
+
Requires-Dist: ipython>=5.4; python_version < "3" and extra == "dev"
|
|
280
|
+
Requires-Dist: pytest>=7; (python_version >= "3.6" and python_version < "3.8") and extra == "dev"
|
|
281
|
+
Requires-Dist: vprof>=0.36; extra == "dev"
|
|
282
|
+
Requires-Dist: jupyter-client>=5.3; python_version < "3.5" and extra == "dev"
|
|
242
283
|
Requires-Dist: types-backports>=0.1; extra == "dev"
|
|
243
|
-
Requires-Dist:
|
|
244
|
-
Requires-Dist:
|
|
245
|
-
Requires-Dist:
|
|
246
|
-
Requires-Dist: xonsh>=0.11; (python_version >= "3.6" and python_version < "3.11") and extra == "dev"
|
|
284
|
+
Requires-Dist: pytest<8.1,>=8.0; python_version >= "3.8" and extra == "dev"
|
|
285
|
+
Requires-Dist: pygments>=2.3; python_version < "3.9" and extra == "dev"
|
|
286
|
+
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "dev"
|
|
247
287
|
Requires-Dist: xonsh>=0.22; python_version >= "3.11" and extra == "dev"
|
|
248
|
-
Requires-Dist:
|
|
288
|
+
Requires-Dist: typing>=3.10; python_version < "3.5" and extra == "dev"
|
|
289
|
+
Requires-Dist: pre-commit>=4; python_version >= "3" and extra == "dev"
|
|
290
|
+
Requires-Dist: jedi<0.18,>=0.17; python_version < "3.9" and extra == "dev"
|
|
291
|
+
Requires-Dist: pytest_remotedata>=0.3; extra == "dev"
|
|
292
|
+
Requires-Dist: ipykernel>=6; (python_version >= "3.8" and python_version < "3.10") and extra == "dev"
|
|
249
293
|
Requires-Dist: numpy>=1.18; (python_version >= "3.4" and python_version < "3.9") and extra == "dev"
|
|
250
294
|
Requires-Dist: numpy>=1.26; python_version >= "3.9" and extra == "dev"
|
|
251
|
-
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "dev"
|
|
252
295
|
Requires-Dist: xarray>=2025; python_version >= "3.10" and extra == "dev"
|
|
253
|
-
Requires-Dist:
|
|
254
|
-
Requires-Dist:
|
|
255
|
-
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "dev"
|
|
256
|
-
Requires-Dist: jupyter-console>=6.6; python_version >= "3.7" and extra == "dev"
|
|
257
|
-
Requires-Dist: papermill>=1.2; extra == "dev"
|
|
258
|
-
Requires-Dist: jupyterlab>=2.2; python_version >= "3.5" and extra == "dev"
|
|
259
|
-
Requires-Dist: jupytext>=1.8; python_version >= "3" and extra == "dev"
|
|
260
|
-
Requires-Dist: sphinx>=8; extra == "dev"
|
|
261
|
-
Requires-Dist: pygments>=2.3; python_version < "3.9" and extra == "dev"
|
|
262
|
-
Requires-Dist: pygments>=2.19; python_version >= "3.9" and extra == "dev"
|
|
296
|
+
Requires-Dist: pandas>=1.1; python_version >= "3.6" and extra == "dev"
|
|
297
|
+
Requires-Dist: jedi>=0.19; python_version >= "3.9" and extra == "dev"
|
|
263
298
|
Requires-Dist: myst-parser>=4; extra == "dev"
|
|
299
|
+
Requires-Dist: py-spy>=0.4; extra == "dev"
|
|
300
|
+
Requires-Dist: requests>=2.32; extra == "dev"
|
|
264
301
|
Requires-Dist: pydata-sphinx-theme>=0.16; extra == "dev"
|
|
265
|
-
Requires-Dist:
|
|
302
|
+
Requires-Dist: jupyter-console>=6.1; (python_version >= "3.5" and python_version < "3.7") and extra == "dev"
|
|
303
|
+
Requires-Dist: jupyter-client>=7.1.2; python_version >= "3.6" and extra == "dev"
|
|
304
|
+
Requires-Dist: jupyter-console>=5.2; python_version < "3.5" and extra == "dev"
|
|
305
|
+
Requires-Dist: ipython>=9; python_version >= "3.11" and extra == "dev"
|
|
306
|
+
Requires-Dist: xonsh>=0.9; python_version < "3.6" and extra == "dev"
|
|
266
307
|
Requires-Dist: sphinxcontrib_htmlhelp>=2; extra == "dev"
|
|
267
308
|
Requires-Dist: pytest>=3; python_version < "3.6" and extra == "dev"
|
|
268
|
-
Requires-Dist: pytest>=7; (python_version >= "3.6" and python_version < "3.8") and extra == "dev"
|
|
269
|
-
Requires-Dist: pytest<8.1,>=8.0; python_version >= "3.8" and extra == "dev"
|
|
270
|
-
Requires-Dist: pexpect>=4; extra == "dev"
|
|
271
|
-
Requires-Dist: pytest_remotedata>=0.3; extra == "dev"
|
|
272
|
-
Requires-Dist: pyparsing<2.4.8,>=2.4.7; extra == "dev"
|
|
273
|
-
Requires-Dist: pre-commit>=4; python_version >= "3" and extra == "dev"
|
|
274
|
-
Requires-Dist: requests>=2.32; extra == "dev"
|
|
275
|
-
Requires-Dist: vprof>=0.36; extra == "dev"
|
|
276
|
-
Requires-Dist: py-spy>=0.4; extra == "dev"
|
|
277
309
|
Requires-Dist: argparse>=1.4; python_version < "2.7"
|
|
278
310
|
Requires-Dist: psutil>=6; python_version >= "2.7" and python_version < "3"
|
|
279
311
|
Requires-Dist: psutil>=7; python_version >= "3"
|
|
@@ -296,7 +328,7 @@ Requires-Dist: async_generator>=1.10; python_version >= "3.5"
|
|
|
296
328
|
Requires-Dist: tstr>=0.4; python_version >= "3.10"
|
|
297
329
|
Requires-Dist: exceptiongroup>=1; python_version >= "3.7" and python_version < "3.11"
|
|
298
330
|
Requires-Dist: anyio>=3; python_version >= "3.6"
|
|
299
|
-
Requires-Dist: cPyparsing<2.4.7.2.5,>=2.4.7.2.4.
|
|
331
|
+
Requires-Dist: cPyparsing<2.4.7.2.5,>=2.4.7.2.4.3; platform_python_implementation == "CPython"
|
|
300
332
|
Requires-Dist: pyparsing<2.4.8,>=2.4.7; platform_python_implementation != "CPython"
|
|
301
333
|
Dynamic: author
|
|
302
334
|
Dynamic: author-email
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/__init__.pyi
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
|
|
6
|
+
Authors: Evan Hubinger, Claude
|
|
7
7
|
License: Apache 2.0
|
|
8
8
|
Description: MyPy stub file for __coconut__.py.
|
|
9
9
|
"""
|
|
@@ -1439,7 +1439,7 @@ class multiset(_t.Generic[_T], _coconut.collections.Counter[_T]):
|
|
|
1439
1439
|
def discard(self, item: _T) -> None: ...
|
|
1440
1440
|
def remove(self, item: _T) -> None: ...
|
|
1441
1441
|
def isdisjoint(self, other: _coconut.collections.Counter[_T]) -> bool: ...
|
|
1442
|
-
def __xor__(self, other: _coconut.collections.Counter[
|
|
1442
|
+
def __xor__(self, other: _coconut.collections.Counter[_U]) -> multiset[_T | _U]: ...
|
|
1443
1443
|
def count(self, item: _T) -> int: ...
|
|
1444
1444
|
def __fmap__(self, func: _t.Callable[[_T], _U]) -> multiset[_U]: ...
|
|
1445
1445
|
_coconut_multiset = multiset
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/_pyparsing.py
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
-
|
|
9
|
+
Authors: Evan Hubinger, Claude
|
|
10
10
|
License: Apache 2.0
|
|
11
11
|
Description: Wrapper around PyParsing that selects the best available implementation.
|
|
12
12
|
"""
|
|
@@ -248,7 +248,7 @@ USE_COMPUTATION_GRAPH = get_bool_env_var(
|
|
|
248
248
|
# it breaks some features and balloons the memory footprint
|
|
249
249
|
# and not PYPY
|
|
250
250
|
),
|
|
251
|
-
)
|
|
251
|
+
) # type: bool
|
|
252
252
|
|
|
253
253
|
SUPPORTS_ADAPTIVE = (
|
|
254
254
|
USE_COMPUTATION_GRAPH
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/command.py
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
-
Authors: Evan Hubinger, Fred Buchanan, Noah Lipsyc, Ishaan Verma
|
|
9
|
+
Authors: Evan Hubinger, Fred Buchanan, Noah Lipsyc, Ishaan Verma, Claude
|
|
10
10
|
License: Apache 2.0
|
|
11
11
|
Description: The Coconut command-line utility.
|
|
12
12
|
"""
|
|
@@ -54,6 +54,7 @@ from coconut.constants import (
|
|
|
54
54
|
icoconut_default_kernel_names,
|
|
55
55
|
icoconut_default_kernel_dirs,
|
|
56
56
|
icoconut_custom_kernel_name,
|
|
57
|
+
icoconut_custom_kernel_dir,
|
|
57
58
|
icoconut_old_kernel_names,
|
|
58
59
|
exit_chars,
|
|
59
60
|
verbose_mypy_args,
|
|
@@ -396,7 +397,7 @@ class Command(object):
|
|
|
396
397
|
elif getattr(args, "and"):
|
|
397
398
|
raise CoconutException("--and should only be used for extra source/dest pairs, not the first source/dest pair")
|
|
398
399
|
elif (
|
|
399
|
-
args.run
|
|
400
|
+
(args.run and not args.interact)
|
|
400
401
|
or args.no_write
|
|
401
402
|
or args.force
|
|
402
403
|
or args.package
|
|
@@ -1116,10 +1117,14 @@ class Command(object):
|
|
|
1116
1117
|
install_args = args if just_install else []
|
|
1117
1118
|
|
|
1118
1119
|
# always update the custom kernel, but only reinstall it if it isn't already there or just installing
|
|
1119
|
-
|
|
1120
|
-
if
|
|
1120
|
+
custom_kernel_installed = install_custom_kernel(logger=logger) is not None
|
|
1121
|
+
if custom_kernel_installed and (icoconut_custom_kernel_name not in kernel_list or just_install):
|
|
1121
1122
|
logger.show_sig("Installing Jupyter kernel {name!r}...".format(name=icoconut_custom_kernel_name))
|
|
1122
|
-
|
|
1123
|
+
# we install from icoconut_custom_kernel_dir rather than the directory returned by
|
|
1124
|
+
# install_custom_kernel since the latter might be the same as the destination
|
|
1125
|
+
# jupyter installs to (e.g. when sys.exec_prefix is /usr/local), in which case
|
|
1126
|
+
# jupyter would delete the kernel before copying it
|
|
1127
|
+
if self.install_jupyter_kernel(jupyter, icoconut_custom_kernel_dir, install_args):
|
|
1123
1128
|
newly_installed_kernels.append(icoconut_custom_kernel_name)
|
|
1124
1129
|
|
|
1125
1130
|
if just_install:
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/compiler.py
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
-
|
|
9
|
+
Authors: Evan Hubinger, Claude
|
|
10
10
|
License: Apache 2.0
|
|
11
11
|
Description: Compiles Coconut code into Python code.
|
|
12
12
|
"""
|
|
@@ -4092,7 +4092,7 @@ else:
|
|
|
4092
4092
|
imp_name=imp_as if imp_as is not None else imp,
|
|
4093
4093
|
imp_lookup=".".join([existing_imp] + module_path[1:] + ([imp] if imp_from is not None else [])),
|
|
4094
4094
|
)
|
|
4095
|
-
if lazy
|
|
4095
|
+
if lazy == "emulated":
|
|
4096
4096
|
out_lines = []
|
|
4097
4097
|
fake_mods = (imp_from if imp_from is not None else imp).split(".")
|
|
4098
4098
|
for i in range(1, len(fake_mods)):
|
|
@@ -4107,6 +4107,7 @@ else:
|
|
|
4107
4107
|
))
|
|
4108
4108
|
return "\n".join(out_lines)
|
|
4109
4109
|
else:
|
|
4110
|
+
internal_assert(not lazy or lazy == "native", "invalid lazy import type", lazy)
|
|
4110
4111
|
return (
|
|
4111
4112
|
("lazy " if lazy else "")
|
|
4112
4113
|
+ ("from " + imp_from + " " if imp_from is not None else "")
|
|
@@ -4217,6 +4218,11 @@ else:
|
|
|
4217
4218
|
)
|
|
4218
4219
|
return "\n".join(stmts)
|
|
4219
4220
|
|
|
4221
|
+
def stmt_at_top_level(self, original, loc):
|
|
4222
|
+
"""Determine whether the statement starting at loc is unindented."""
|
|
4223
|
+
line_start = original.rfind("\n", 0, loc) + 1
|
|
4224
|
+
return not original[line_start:loc].replace(closeindent, "")
|
|
4225
|
+
|
|
4220
4226
|
def import_handle(self, original, loc, tokens):
|
|
4221
4227
|
"""Universalizes imports."""
|
|
4222
4228
|
if len(tokens) == 2:
|
|
@@ -4228,7 +4234,15 @@ else:
|
|
|
4228
4234
|
raise CoconutInternalException("invalid import tokens", tokens)
|
|
4229
4235
|
|
|
4230
4236
|
internal_assert(lazy in ("lazy", ""), original, loc, "invalid import type token", lazy)
|
|
4231
|
-
|
|
4237
|
+
if not lazy:
|
|
4238
|
+
lazy = None
|
|
4239
|
+
# native lazy imports are only allowed at the top level (not inside
|
|
4240
|
+
# functions, classes, or try/except blocks), so we only use them for
|
|
4241
|
+
# unindented statements and otherwise emulate them
|
|
4242
|
+
elif self.target_info >= (3, 15) and self.stmt_at_top_level(original, loc):
|
|
4243
|
+
lazy = "native"
|
|
4244
|
+
else:
|
|
4245
|
+
lazy = "emulated"
|
|
4232
4246
|
|
|
4233
4247
|
if imp_from == "__future__":
|
|
4234
4248
|
if lazy:
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/grammar.py
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
-
|
|
9
|
+
Authors: Evan Hubinger, Claude
|
|
10
10
|
License: Apache 2.0
|
|
11
11
|
Description: Defines the Coconut grammar.
|
|
12
12
|
"""
|
|
@@ -27,6 +27,7 @@ from __future__ import print_function, absolute_import, unicode_literals, divisi
|
|
|
27
27
|
|
|
28
28
|
from coconut.root import * # NOQA
|
|
29
29
|
|
|
30
|
+
import re
|
|
30
31
|
from collections import defaultdict
|
|
31
32
|
from contextlib import contextmanager
|
|
32
33
|
from coconut.root import _coconut_partial as partial
|
|
@@ -63,6 +64,7 @@ from coconut.terminal import (
|
|
|
63
64
|
internal_assert,
|
|
64
65
|
)
|
|
65
66
|
from coconut.constants import (
|
|
67
|
+
non_syntactic_newline,
|
|
66
68
|
openindent,
|
|
67
69
|
closeindent,
|
|
68
70
|
strwrapper,
|
|
@@ -267,6 +269,19 @@ def add_bracks_handle(tokens):
|
|
|
267
269
|
return "[" + item + "]"
|
|
268
270
|
|
|
269
271
|
|
|
272
|
+
collapse_non_syntactic_newlines_regex = re.compile(re.escape(non_syntactic_newline) + r"[ \t]*")
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def collapse_non_syntactic_newlines_handle(tokens):
|
|
276
|
+
"""Collapse line continuations in raw text into single spaces.
|
|
277
|
+
|
|
278
|
+
Raw text (e.g. xonsh shell commands) is passed through verbatim, so any line continuations in it,
|
|
279
|
+
which are represented by non_syntactic_newline, need to be collapsed, otherwise they'd be expanded
|
|
280
|
+
back out into (indented) separate lines without their original backslashes."""
|
|
281
|
+
item, = tokens
|
|
282
|
+
return collapse_non_syntactic_newlines_regex.sub(" ", item)
|
|
283
|
+
|
|
284
|
+
|
|
270
285
|
def strip_parens_handle(tokens):
|
|
271
286
|
"""Strip parentheses."""
|
|
272
287
|
item, = tokens
|
|
@@ -2768,16 +2783,22 @@ class Grammar(object):
|
|
|
2768
2783
|
brackets = originalTextFor(nestedExpr("[", "]", ignoreExpr=None))
|
|
2769
2784
|
braces = originalTextFor(nestedExpr("{", "}", ignoreExpr=None))
|
|
2770
2785
|
|
|
2771
|
-
unsafe_anything_stmt =
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2786
|
+
unsafe_anything_stmt = attach(
|
|
2787
|
+
originalTextFor(regex_item("[^\n]+\n+")),
|
|
2788
|
+
collapse_non_syntactic_newlines_handle,
|
|
2789
|
+
)
|
|
2790
|
+
unsafe_xonsh_command = attach(
|
|
2791
|
+
originalTextFor(
|
|
2792
|
+
(Optional(at) + dollar | bang)
|
|
2793
|
+
+ ~(lparen + rparen | lbrack + rbrack | lbrace + rbrace)
|
|
2794
|
+
+ any_of(
|
|
2795
|
+
parens,
|
|
2796
|
+
brackets,
|
|
2797
|
+
braces,
|
|
2798
|
+
unsafe_name,
|
|
2799
|
+
)
|
|
2800
|
+
),
|
|
2801
|
+
collapse_non_syntactic_newlines_handle,
|
|
2781
2802
|
)
|
|
2782
2803
|
unsafe_xonsh_parser, _impl_call_ref = disable_inside(
|
|
2783
2804
|
single_input - end_marker,
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/constants.py
RENAMED
|
@@ -1072,7 +1072,7 @@ all_reqs = {
|
|
|
1072
1072
|
|
|
1073
1073
|
# min versions are inclusive
|
|
1074
1074
|
unpinned_min_versions = {
|
|
1075
|
-
"cPyparsing": (2, 4, 7, 2, 4,
|
|
1075
|
+
"cPyparsing": (2, 4, 7, 2, 4, 3),
|
|
1076
1076
|
("pre-commit", "py3"): (4,),
|
|
1077
1077
|
("psutil", "py3"): (7,),
|
|
1078
1078
|
"jupyter": (1, 1),
|
|
@@ -1214,6 +1214,9 @@ classifiers = (
|
|
|
1214
1214
|
"Programming Language :: Python :: 3.10",
|
|
1215
1215
|
"Programming Language :: Python :: 3.11",
|
|
1216
1216
|
"Programming Language :: Python :: 3.12",
|
|
1217
|
+
"Programming Language :: Python :: 3.13",
|
|
1218
|
+
"Programming Language :: Python :: 3.14",
|
|
1219
|
+
"Programming Language :: Python :: 3.15",
|
|
1217
1220
|
"Programming Language :: Other",
|
|
1218
1221
|
"Programming Language :: Other Scripting Engines",
|
|
1219
1222
|
"Programming Language :: Python :: Implementation :: CPython",
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/root.py
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
-
|
|
9
|
+
Authors: Evan Hubinger, Claude
|
|
10
10
|
License: Apache 2.0
|
|
11
11
|
Description: The Coconut IPython kernel.
|
|
12
12
|
"""
|
|
@@ -22,6 +22,7 @@ from coconut.root import * # NOQA
|
|
|
22
22
|
import os
|
|
23
23
|
import sys
|
|
24
24
|
import logging
|
|
25
|
+
import inspect
|
|
25
26
|
|
|
26
27
|
try:
|
|
27
28
|
import asyncio
|
|
@@ -52,7 +53,7 @@ from coconut.compiler.util import should_indent, paren_change, get_comment
|
|
|
52
53
|
from coconut.command.util import Runner
|
|
53
54
|
|
|
54
55
|
try:
|
|
55
|
-
from IPython.core.interactiveshell import InteractiveShellABC
|
|
56
|
+
from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
|
|
56
57
|
from IPython.core.compilerop import CachingCompiler
|
|
57
58
|
from IPython.terminal.embed import InteractiveShellEmbed
|
|
58
59
|
from ipykernel.ipkernel import IPythonKernel
|
|
@@ -110,6 +111,33 @@ def syntaxerr_memoized_parse_block(code):
|
|
|
110
111
|
raise syntax_err
|
|
111
112
|
|
|
112
113
|
|
|
114
|
+
def filter_kwargs_for(func, kwargs):
|
|
115
|
+
"""Remove any kwargs that func can't accept.
|
|
116
|
+
|
|
117
|
+
ipykernel decides whether to pass new keyword arguments (e.g. cell_id, cell_meta)
|
|
118
|
+
to run_cell by inspecting our signature, so we need to accept **kwargs, but then
|
|
119
|
+
only forward the ones that the underlying IPython method actually supports."""
|
|
120
|
+
if not kwargs:
|
|
121
|
+
return kwargs
|
|
122
|
+
try:
|
|
123
|
+
if hasattr(inspect, "signature"):
|
|
124
|
+
params = inspect.signature(func).parameters
|
|
125
|
+
if any(p.kind == p.VAR_KEYWORD for p in params.values()):
|
|
126
|
+
return kwargs
|
|
127
|
+
accepted = set(
|
|
128
|
+
name for name, p in params.items()
|
|
129
|
+
if p.kind in (p.POSITIONAL_OR_KEYWORD, p.KEYWORD_ONLY)
|
|
130
|
+
)
|
|
131
|
+
else:
|
|
132
|
+
argspec = inspect.getargspec(func)
|
|
133
|
+
if argspec.keywords is not None:
|
|
134
|
+
return kwargs
|
|
135
|
+
accepted = set(argspec.args)
|
|
136
|
+
except (TypeError, ValueError):
|
|
137
|
+
return kwargs
|
|
138
|
+
return dict((k, v) for k, v in kwargs.items() if k in accepted)
|
|
139
|
+
|
|
140
|
+
|
|
113
141
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
114
142
|
# KERNEL:
|
|
115
143
|
# -----------------------------------------------------------------------------------------------------------------------
|
|
@@ -256,17 +284,20 @@ def init_user_ns(self):
|
|
|
256
284
|
RUNNER.update_vars(self.user_ns_hidden)
|
|
257
285
|
|
|
258
286
|
@override
|
|
259
|
-
def run_cell(self, raw_cell, store_history=False, silent=False, shell_futures=True,
|
|
287
|
+
def run_cell(self, raw_cell, store_history=False, silent=False, shell_futures=True, **kwargs):
|
|
260
288
|
"""Version of run_cell that always uses shell_futures."""
|
|
261
|
-
#
|
|
262
|
-
#
|
|
289
|
+
# the presence of **kwargs means ipykernel thinks we accept new arguments like
|
|
290
|
+
# cell_id and cell_meta, so we have to filter out any that IPython doesn't support
|
|
291
|
+
# (we check InteractiveShell since ZMQInteractiveShell.run_cell just forwards *args, **kwargs)
|
|
292
|
+
kwargs = filter_kwargs_for(InteractiveShell.run_cell, kwargs)
|
|
263
293
|
return super({cls}, self).run_cell(raw_cell, store_history, silent, shell_futures=True, **kwargs)
|
|
264
294
|
|
|
265
|
-
if asyncio is not None:
|
|
295
|
+
if asyncio is not None and hasattr(InteractiveShell, "run_cell_async"):
|
|
266
296
|
@override
|
|
267
|
-
{coroutine}def run_cell_async(self, raw_cell, store_history=False, silent=False, shell_futures=True,
|
|
297
|
+
{coroutine}def run_cell_async(self, raw_cell, store_history=False, silent=False, shell_futures=True, **kwargs):
|
|
268
298
|
"""Version of run_cell_async that always uses shell_futures."""
|
|
269
299
|
# same as above
|
|
300
|
+
kwargs = filter_kwargs_for(InteractiveShell.run_cell_async, kwargs)
|
|
270
301
|
return super({cls}, self).run_cell_async(raw_cell, store_history, silent, shell_futures=True, **kwargs)
|
|
271
302
|
|
|
272
303
|
@override
|
|
@@ -26,7 +26,7 @@ import sys as _coconut_sys
|
|
|
26
26
|
VERSION = "3.2.0"
|
|
27
27
|
VERSION_NAME = None
|
|
28
28
|
# False for release, int >= 1 for develop
|
|
29
|
-
DEVELOP =
|
|
29
|
+
DEVELOP = 17
|
|
30
30
|
ALPHA = False # for pre releases rather than post releases
|
|
31
31
|
|
|
32
32
|
assert DEVELOP is False or DEVELOP >= 1, "DEVELOP must be False or an int >= 1"
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/main_test.py
RENAMED
|
@@ -913,6 +913,9 @@ class TestShell(unittest.TestCase):
|
|
|
913
913
|
def test_pipe(self):
|
|
914
914
|
call('echo ' + escape(coconut_snip) + "| coconut -s", shell=True, assert_output=True)
|
|
915
915
|
|
|
916
|
+
def test_code_interact(self):
|
|
917
|
+
call(["coconut", "-s", "-c", coconut_snip, "--interact"], assert_output=True, assert_output_only_at_end=False)
|
|
918
|
+
|
|
916
919
|
def test_api(self):
|
|
917
920
|
call_python(["-c", 'from coconut.api import parse; exec(parse("' + coconut_snip + '"))'], assert_output=True)
|
|
918
921
|
|
|
@@ -998,6 +1001,22 @@ class TestShell(unittest.TestCase):
|
|
|
998
1001
|
expect_retcode=0 if not WINDOWS else None,
|
|
999
1002
|
)
|
|
1000
1003
|
|
|
1004
|
+
def test_kernel_run_cell_kwargs(self):
|
|
1005
|
+
# newer ipykernels pass extra kwargs (cell_id, cell_meta) that older IPythons don't accept (#908)
|
|
1006
|
+
call_python(
|
|
1007
|
+
["-c", "\n".join((
|
|
1008
|
+
"from coconut.icoconut.root import CoconutShell, filter_kwargs_for",
|
|
1009
|
+
"def old_run_cell(self, raw_cell, store_history=False, silent=False, shell_futures=True, cell_id=None): pass",
|
|
1010
|
+
"assert filter_kwargs_for(old_run_cell, dict(cell_id=1, cell_meta=2)) == dict(cell_id=1)",
|
|
1011
|
+
"assert filter_kwargs_for(lambda **kwargs: None, dict(cell_id=1, cell_meta=2)) == dict(cell_id=1, cell_meta=2)",
|
|
1012
|
+
"res = CoconutShell.instance().run_cell('x = 1 |> (.+1)', cell_id='abc', cell_meta=dict(cellId='abc'))",
|
|
1013
|
+
"assert res.success, res",
|
|
1014
|
+
"assert CoconutShell.instance().user_ns['x'] == 2",
|
|
1015
|
+
"print('<success>')",
|
|
1016
|
+
))],
|
|
1017
|
+
assert_output="<success>",
|
|
1018
|
+
)
|
|
1019
|
+
|
|
1001
1020
|
def test_kernel_installation(self):
|
|
1002
1021
|
assert icoconut_custom_kernel_name in list_kernel_names()
|
|
1003
1022
|
call(["coconut", "--jupyter"], assert_output=kernel_installation_msg)
|
|
@@ -334,6 +334,10 @@ cannot reassign type variable 'T' (use explicit '\T' syntax if intended) (line 1
|
|
|
334
334
|
|
|
335
335
|
assert parse_with_state("def f(x):\n ${var}", "xonsh") == "def f(x):\n ${var}\n"
|
|
336
336
|
assert "data ABC" not in parse_with_state("data ABC:\n ${var}", "xonsh")
|
|
337
|
+
# backslash continuations in shell commands (#906)
|
|
338
|
+
assert parse_with_state("echo a \\\n b # NOQA", "xonsh").startswith("echo a b"), parse_with_state("echo a \\\n b # NOQA", "xonsh")
|
|
339
|
+
assert parse_with_state("$(ls \\\n -la)", "xonsh").startswith("$(ls -la)"), parse_with_state("$(ls \\\n -la)", "xonsh")
|
|
340
|
+
assert parse_with_state("x = 1 + \\\n 2", "xonsh").startswith("x = 1 + 2"), parse_with_state("x = 1 + \\\n 2", "xonsh")
|
|
337
341
|
assert "builder" not in parse_with_state("def x -> x", "lenient")
|
|
338
342
|
assert parse_with_state("def x -> x", "lenient").count("def") == 1
|
|
339
343
|
assert "builder" in parse_with_state("x -> def y -> (x, y)", "lenient")
|
|
@@ -729,6 +733,20 @@ def f[T](x):
|
|
|
729
733
|
return x
|
|
730
734
|
""".strip()
|
|
731
735
|
|
|
736
|
+
setup(line_numbers=False, target="3.15")
|
|
737
|
+
# native lazy imports are only allowed at the top level
|
|
738
|
+
assert parse("lazy import json", "lenient").strip() == "lazy import json"
|
|
739
|
+
assert parse("lazy from json import dumps", "lenient").strip() == "lazy from json import dumps"
|
|
740
|
+
for lazy_src in (
|
|
741
|
+
"def f():\n lazy import json",
|
|
742
|
+
"class A:\n lazy import json",
|
|
743
|
+
"try:\n lazy import json\nexcept ImportError:\n pass",
|
|
744
|
+
"def f(): lazy import json",
|
|
745
|
+
):
|
|
746
|
+
lazy_out = parse(lazy_src, "lenient")
|
|
747
|
+
assert "lazy import" not in lazy_out, lazy_out
|
|
748
|
+
assert "_coconut_lazy_module" in lazy_out, lazy_out
|
|
749
|
+
|
|
732
750
|
setup(line_numbers=False, minify=True)
|
|
733
751
|
assert parse("123 # derp", "lenient") == "123# derp"
|
|
734
752
|
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/.claude/settings.local.json
RENAMED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Bash(python3:*)",
|
|
14
14
|
"Bash(gh:*)",
|
|
15
15
|
"Bash(pip:*)",
|
|
16
|
+
"Bash(conda:*)",
|
|
16
17
|
"Bash(log \")",
|
|
17
18
|
"Bash(test:*)",
|
|
18
19
|
"Bash(done)",
|
|
@@ -26,7 +27,6 @@
|
|
|
26
27
|
"WebFetch(domain:doc.pypy.org)",
|
|
27
28
|
"Bash(git status:*)",
|
|
28
29
|
"Bash(make test-tests:*)",
|
|
29
|
-
"Bash(conda:*)",
|
|
30
30
|
"Bash(xonsh:*)"
|
|
31
31
|
]
|
|
32
32
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/__coconut__/py.typed
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/_coconut/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/_coconut/__init__.pyi
RENAMED
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__coconut__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__coconut__.pyi
RENAMED
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/__init__.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/__init__.pyi
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/cli.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/command.pyi
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/mypy.py
RENAMED
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/util.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/command/watch.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/header.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/matching.py
RENAMED
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/compiler/util.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/convenience.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/convenience.pyi
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/exceptions.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/highlighter.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/icoconut/embed.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/integrations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/requirements.py
RENAMED
|
File without changes
|
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/__init__.py
RENAMED
|
File without changes
|
{coconut_develop-3.2.0.post0.dev16 → coconut_develop-3.2.0.post0.dev17}/coconut/tests/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|