coconut 3.0.2__tar.gz → 3.0.3__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.
Files changed (87) hide show
  1. {coconut-3.0.2 → coconut-3.0.3}/CONTRIBUTING.md +2 -2
  2. {coconut-3.0.2 → coconut-3.0.3}/DOCS.md +300 -231
  3. {coconut-3.0.2 → coconut-3.0.3}/HELP.md +11 -11
  4. {coconut-3.0.2 → coconut-3.0.3}/PKG-INFO +2 -2
  5. {coconut-3.0.2 → coconut-3.0.3}/__coconut__/__init__.pyi +494 -67
  6. {coconut-3.0.2 → coconut-3.0.3}/_coconut/__init__.pyi +1 -0
  7. {coconut-3.0.2 → coconut-3.0.3}/coconut/_pyparsing.py +84 -44
  8. {coconut-3.0.2 → coconut-3.0.3}/coconut/api.py +99 -25
  9. coconut-3.0.3/coconut/api.pyi +152 -0
  10. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/cli.py +9 -3
  11. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/command.py +115 -56
  12. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/command.pyi +1 -0
  13. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/util.py +57 -28
  14. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/compiler.py +514 -309
  15. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/grammar.py +114 -95
  16. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/header.py +149 -19
  17. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/templates/header.py_template +90 -41
  18. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/util.py +201 -76
  19. {coconut-3.0.2 → coconut-3.0.3}/coconut/constants.py +81 -36
  20. {coconut-3.0.2 → coconut-3.0.3}/coconut/exceptions.py +20 -7
  21. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/root.py +6 -7
  22. {coconut-3.0.2 → coconut-3.0.3}/coconut/integrations.py +27 -11
  23. {coconut-3.0.2 → coconut-3.0.3}/coconut/root.py +1 -1
  24. {coconut-3.0.2 → coconut-3.0.3}/coconut/terminal.py +38 -11
  25. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/constants_test.py +16 -4
  26. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/main_test.py +123 -62
  27. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/primary.coco +53 -12
  28. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/specific.coco +2 -2
  29. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/suite.coco +2 -2
  30. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/tutorial.coco +5 -5
  31. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/util.coco +11 -12
  32. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/non_strict/non_strict_test.coco +7 -0
  33. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_sys/target_sys_test.coco +76 -1
  34. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/extras.coco +95 -38
  35. coconut-3.0.3/coconut/tests/src/importable.coco +14 -0
  36. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/runnable.coco +5 -0
  37. {coconut-3.0.2 → coconut-3.0.3}/coconut/util.py +8 -0
  38. {coconut-3.0.2 → coconut-3.0.3}/coconut.egg-info/SOURCES.txt +1 -0
  39. coconut-3.0.2/coconut/api.pyi +0 -108
  40. {coconut-3.0.2 → coconut-3.0.3}/FAQ.md +0 -0
  41. {coconut-3.0.2 → coconut-3.0.3}/LICENSE.txt +0 -0
  42. {coconut-3.0.2 → coconut-3.0.3}/MANIFEST.in +0 -0
  43. {coconut-3.0.2 → coconut-3.0.3}/README.rst +0 -0
  44. {coconut-3.0.2 → coconut-3.0.3}/__coconut__/__init__.py +0 -0
  45. {coconut-3.0.2 → coconut-3.0.3}/__coconut__/py.typed +0 -0
  46. {coconut-3.0.2 → coconut-3.0.3}/_coconut/__init__.py +0 -0
  47. {coconut-3.0.2 → coconut-3.0.3}/_coconut/py.typed +0 -0
  48. {coconut-3.0.2 → coconut-3.0.3}/coconut/__coconut__.py +0 -0
  49. {coconut-3.0.2 → coconut-3.0.3}/coconut/__coconut__.pyi +0 -0
  50. {coconut-3.0.2 → coconut-3.0.3}/coconut/__init__.py +0 -0
  51. {coconut-3.0.2 → coconut-3.0.3}/coconut/__init__.pyi +0 -0
  52. {coconut-3.0.2 → coconut-3.0.3}/coconut/__main__.py +0 -0
  53. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/__init__.py +0 -0
  54. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/__init__.pyi +0 -0
  55. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/mypy.py +0 -0
  56. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/resources/zcoconut.pth +0 -0
  57. {coconut-3.0.2 → coconut-3.0.3}/coconut/command/watch.py +0 -0
  58. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/__init__.py +0 -0
  59. {coconut-3.0.2 → coconut-3.0.3}/coconut/compiler/matching.py +0 -0
  60. {coconut-3.0.2 → coconut-3.0.3}/coconut/convenience.py +0 -0
  61. {coconut-3.0.2 → coconut-3.0.3}/coconut/convenience.pyi +0 -0
  62. {coconut-3.0.2 → coconut-3.0.3}/coconut/highlighter.py +0 -0
  63. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/__init__.py +0 -0
  64. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/__main__.py +0 -0
  65. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/coconut/kernel.json +0 -0
  66. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/coconut_py/kernel.json +0 -0
  67. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/coconut_py2/kernel.json +0 -0
  68. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/coconut_py3/kernel.json +0 -0
  69. {coconut-3.0.2 → coconut-3.0.3}/coconut/icoconut/embed.py +0 -0
  70. {coconut-3.0.2 → coconut-3.0.3}/coconut/main.py +0 -0
  71. {coconut-3.0.2 → coconut-3.0.3}/coconut/py.typed +0 -0
  72. {coconut-3.0.2 → coconut-3.0.3}/coconut/requirements.py +0 -0
  73. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/__init__.py +0 -0
  74. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/__main__.py +0 -0
  75. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/__init__.coco +0 -0
  76. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/agnostic/main.coco +0 -0
  77. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_2/py2_test.coco +0 -0
  78. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_3/py3_test.coco +0 -0
  79. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_35/py35_test.coco +0 -0
  80. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_36/py36_test.coco +0 -0
  81. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/cocotest/target_38/py38_test.coco +0 -0
  82. {coconut-3.0.2 → coconut-3.0.3}/coconut/tests/src/runner.coco +0 -0
  83. {coconut-3.0.2 → coconut-3.0.3}/conf.py +0 -0
  84. {coconut-3.0.2 → coconut-3.0.3}/pyproject.toml +0 -0
  85. {coconut-3.0.2 → coconut-3.0.3}/setup.cfg +0 -0
  86. {coconut-3.0.2 → coconut-3.0.3}/setup.py +0 -0
  87. {coconut-3.0.2 → coconut-3.0.3}/xontrib/coconut.py +0 -0
@@ -28,7 +28,7 @@ _Note: Don't forget to add yourself to the "Authors:" section in the moduledocs
28
28
 
29
29
  First, you'll want to set up a local copy of Coconut's recommended development environment. For that, just run `git checkout develop`, make sure your default `python` installation is some variant of Python 3, and run `make dev`. That should switch you to the `develop` branch, install all possible dependencies, bind the `coconut` command to your local copy, and set up [pre-commit](http://pre-commit.com/), which will check your code for errors for you whenever you `git commit`.
30
30
 
31
- Then, you should be able to use the Coconut command-line for trying out simple things, and to run a paired-down version of the test suite locally, just `make test-basic`.
31
+ Then, you should be able to use the Coconut command-line for trying out simple things, and to run a paired-down version of the test suite locally, just `make test-univ`.
32
32
 
33
33
  After you've tested your changes locally, you'll want to add more permanent tests to Coconut's test suite. Coconut's test suite is primarily written in Coconut itself, so testing new features just means using them inside of one of Coconut's `.coco` test files, with some `assert` statements to check validity.
34
34
 
@@ -154,7 +154,7 @@ After you've tested your changes locally, you'll want to add more permanent test
154
154
 
155
155
  1. Preparation:
156
156
  1. Run `make check-reqs` and update dependencies as necessary
157
- 2. Run `make format`
157
+ 2. Run `sudo make format`
158
158
  3. Make sure `make test`, `make test-py2`, and `make test-easter-eggs` are passing
159
159
  4. Ensure that `coconut --watch` can successfully compile files when they're modified
160
160
  5. Check changes in [`compiled-cocotest`](https://github.com/evhub/compiled-cocotest), [`pyprover`](https://github.com/evhub/pyprover), and [`coconut-prelude`](https://github.com/evhub/coconut-prelude)