From 7f5e44e0dfed331d4c7458fa8b84e4c2922b5f6a Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Fri, 8 Sep 2023 19:51:28 +0530 Subject: [PATCH] chore: enable run_tests before extracting docs --- .../polywrap-sys-config-bundle/scripts/extract_readme.py | 2 +- .../polywrap-web3-config-bundle/scripts/extract_readme.py | 2 +- .../plugins/polywrap-ethereum-wallet/scripts/extract_readme.py | 2 +- packages/plugins/polywrap-fs-plugin/scripts/extract_readme.py | 2 +- .../plugins/polywrap-http-plugin/scripts/extract_readme.py | 2 +- .../polywrap-client-config-builder/scripts/extract_readme.py | 2 +- packages/polywrap-client/scripts/extract_readme.py | 2 +- packages/polywrap-core/scripts/extract_readme.py | 2 +- packages/polywrap-manifest/scripts/extract_readme.py | 2 +- packages/polywrap-msgpack/scripts/extract_readme.py | 2 +- packages/polywrap-plugin/scripts/extract_readme.py | 2 +- packages/polywrap-test-cases/scripts/extract_readme.py | 2 +- packages/polywrap-uri-resolvers/scripts/extract_readme.py | 2 +- packages/polywrap-wasm/scripts/extract_readme.py | 2 +- packages/polywrap/scripts/extract_readme.py | 2 +- scripts/publish_packages.py | 3 --- 16 files changed, 15 insertions(+), 18 deletions(-) diff --git a/packages/config-bundles/polywrap-sys-config-bundle/scripts/extract_readme.py b/packages/config-bundles/polywrap-sys-config-bundle/scripts/extract_readme.py index e2ae32cf..b54b1b0d 100644 --- a/packages/config-bundles/polywrap-sys-config-bundle/scripts/extract_readme.py +++ b/packages/config-bundles/polywrap-sys-config-bundle/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/config-bundles/polywrap-web3-config-bundle/scripts/extract_readme.py b/packages/config-bundles/polywrap-web3-config-bundle/scripts/extract_readme.py index e4db660d..d510bddc 100644 --- a/packages/config-bundles/polywrap-web3-config-bundle/scripts/extract_readme.py +++ b/packages/config-bundles/polywrap-web3-config-bundle/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/plugins/polywrap-ethereum-wallet/scripts/extract_readme.py b/packages/plugins/polywrap-ethereum-wallet/scripts/extract_readme.py index 875a6de2..89c6eab1 100644 --- a/packages/plugins/polywrap-ethereum-wallet/scripts/extract_readme.py +++ b/packages/plugins/polywrap-ethereum-wallet/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/plugins/polywrap-fs-plugin/scripts/extract_readme.py b/packages/plugins/polywrap-fs-plugin/scripts/extract_readme.py index e602196a..ea25efc2 100644 --- a/packages/plugins/polywrap-fs-plugin/scripts/extract_readme.py +++ b/packages/plugins/polywrap-fs-plugin/scripts/extract_readme.py @@ -16,7 +16,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/plugins/polywrap-http-plugin/scripts/extract_readme.py b/packages/plugins/polywrap-http-plugin/scripts/extract_readme.py index b1f4358c..7e7ebaa7 100644 --- a/packages/plugins/polywrap-http-plugin/scripts/extract_readme.py +++ b/packages/plugins/polywrap-http-plugin/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-client-config-builder/scripts/extract_readme.py b/packages/polywrap-client-config-builder/scripts/extract_readme.py index 2b287f1d..fbe1da23 100644 --- a/packages/polywrap-client-config-builder/scripts/extract_readme.py +++ b/packages/polywrap-client-config-builder/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-client/scripts/extract_readme.py b/packages/polywrap-client/scripts/extract_readme.py index 59ac5497..9e5c6459 100644 --- a/packages/polywrap-client/scripts/extract_readme.py +++ b/packages/polywrap-client/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-core/scripts/extract_readme.py b/packages/polywrap-core/scripts/extract_readme.py index aaeb5505..3a9a602b 100644 --- a/packages/polywrap-core/scripts/extract_readme.py +++ b/packages/polywrap-core/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-manifest/scripts/extract_readme.py b/packages/polywrap-manifest/scripts/extract_readme.py index 758e7e03..ea655108 100644 --- a/packages/polywrap-manifest/scripts/extract_readme.py +++ b/packages/polywrap-manifest/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-msgpack/scripts/extract_readme.py b/packages/polywrap-msgpack/scripts/extract_readme.py index 5d404b4e..3ab78466 100644 --- a/packages/polywrap-msgpack/scripts/extract_readme.py +++ b/packages/polywrap-msgpack/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-plugin/scripts/extract_readme.py b/packages/polywrap-plugin/scripts/extract_readme.py index f89379c8..48e72616 100644 --- a/packages/polywrap-plugin/scripts/extract_readme.py +++ b/packages/polywrap-plugin/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-test-cases/scripts/extract_readme.py b/packages/polywrap-test-cases/scripts/extract_readme.py index 12ce4f93..4872a93f 100644 --- a/packages/polywrap-test-cases/scripts/extract_readme.py +++ b/packages/polywrap-test-cases/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-uri-resolvers/scripts/extract_readme.py b/packages/polywrap-uri-resolvers/scripts/extract_readme.py index a24c8315..f4eac172 100644 --- a/packages/polywrap-uri-resolvers/scripts/extract_readme.py +++ b/packages/polywrap-uri-resolvers/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap-wasm/scripts/extract_readme.py b/packages/polywrap-wasm/scripts/extract_readme.py index 7972c576..cca89fb9 100644 --- a/packages/polywrap-wasm/scripts/extract_readme.py +++ b/packages/polywrap-wasm/scripts/extract_readme.py @@ -16,7 +16,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/packages/polywrap/scripts/extract_readme.py b/packages/polywrap/scripts/extract_readme.py index 4d89eb3d..8bddebae 100644 --- a/packages/polywrap/scripts/extract_readme.py +++ b/packages/polywrap/scripts/extract_readme.py @@ -17,7 +17,7 @@ def run_tests(): if __name__ == "__main__": # Make sure that the doctests are passing before we extract the README. - # run_tests() + run_tests() # Extract the README. readme = extract_readme() diff --git a/scripts/publish_packages.py b/scripts/publish_packages.py index 4f512cf6..2ce0953f 100644 --- a/scripts/publish_packages.py +++ b/scripts/publish_packages.py @@ -19,9 +19,6 @@ def patch_version(version: str): pyproject = tomlkit.load(f) pyproject["tool"]["poetry"]["version"] = version - # Remove extra dev/test dependencies - pyproject["tool"]["poetry"].pop("group") - for dep in list(pyproject["tool"]["poetry"]["dependencies"].keys()): if dep.startswith("polywrap-"): pyproject["tool"]["poetry"]["dependencies"].pop(dep)