From 68cdcff40a1b1e0dd76cc0588e6f042f8058366a Mon Sep 17 00:00:00 2001 From: Evan Hubinger Date: Thu, 23 Nov 2023 23:23:50 -0800 Subject: [PATCH] Clean up docs --- DOCS.md | 2 +- coconut/tests/main_test.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DOCS.md b/DOCS.md index 0bd5b94b4..44341734f 100644 --- a/DOCS.md +++ b/DOCS.md @@ -4716,7 +4716,7 @@ Switches the [`breakpoint` built-in](https://www.python.org/dev/peps/pep-0553/) Both functions behave identically to [`setuptools.find_packages`](https://setuptools.pypa.io/en/latest/userguide/quickstart.html#package-discovery), except that they find Coconut packages rather than Python packages. `find_and_compile_packages` additionally compiles any Coconut packages that it finds in-place. -Note that if you want to use either of these functions in your `setup.py`, you'll need to include `coconut` as a [build-time dependency in your `pyproject.toml`](https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#build-time-dependencies). +Note that if you want to use either of these functions in your `setup.py`, you'll need to include `coconut` as a [build-time dependency in your `pyproject.toml`](https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#build-time-dependencies). If you want `setuptools` to package your Coconut files, you'll also need to add `global-include *.coco` to your [`MANIFEST.in`](https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html). ##### Example diff --git a/coconut/tests/main_test.py b/coconut/tests/main_test.py index 3a762c726..bf6c26bf5 100644 --- a/coconut/tests/main_test.py +++ b/coconut/tests/main_test.py @@ -89,6 +89,9 @@ os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1" +# run fewer tests on Windows so appveyor doesn't time out +TEST_ALL = get_bool_env_var("COCONUT_TEST_ALL", not WINDOWS) + # ----------------------------------------------------------------------------------------------------------------------- # CONSTANTS: @@ -984,8 +987,7 @@ def test_no_tco(self): def test_no_wrap(self): run(["--no-wrap"]) - # run fewer tests on Windows so appveyor doesn't time out - if not WINDOWS: + if TEST_ALL: if CPYTHON: def test_any_of(self): with using_env_vars({ @@ -1024,8 +1026,7 @@ def test_trace(self): run(["--jobs", "0", "--trace"], check_errors=False) -# more appveyor timeout prevention -if not WINDOWS: +if TEST_ALL: @add_test_func_names class TestExternal(unittest.TestCase):