- Update to version 1.2.0 * Upgrade pyo3 to 0.20 * Remove reference to distutil * Add roundtrip tests from Python * Fix parsing list matchers without explicit brackets * Make readme example use python syntax highlighting * Upgrade rust to version 1.70 in readthedocs config * Update maturin requirement from <0.16,>=0.8.3 to >=0.8.3,<1.5 * Allow `Element::codegen` to be used by external users * installing rustc/cargo for mybinder demo * Update test_fix_pyre_directives.py * remove 3.8 support * Update syn to v2 * Set repository metadata entry for Rust crates * upgrade flake8 * Update pyproject.toml for Python 3.12 support * fix filepathprovider generic type * Update README.rst * Fix link in type_inference_provider.py * Parse multiline expressions in f-strings * Upgrade pyre * eliminate relative paths from Cargo.toml * Parse arbitrarily nested f-strings * ScopeProvider: Record Access for Attributes and Decorators * AddImportsVisitor: add imports before the first non-import statement * Scope provider changes for type annotations * add upper bound to pyo3 dependency * scope_provider: Simplify parent resolution * parser: remove Regexes from whitespace parser * Add crate metadata OBS-URL: https://build.opensuse.org/request/show/1153705 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=25
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
---
|
|
libcst/codegen/generate.py | 2 +-
|
|
libcst/codemod/tests/test_codemod_cli.py | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/libcst/codegen/generate.py
|
|
+++ b/libcst/codegen/generate.py
|
|
@@ -69,7 +69,7 @@ def codegen_visitors() -> None:
|
|
# by attempting to run codegen again in a new process.
|
|
with open(os.devnull, "w") as devnull:
|
|
subprocess.check_call(
|
|
- ["python3", "-m", "libcst.codegen.gen_visitor_functions"],
|
|
+ [sys.executable, "-m", "libcst.codegen.gen_visitor_functions"],
|
|
cwd=base,
|
|
stdout=devnull,
|
|
)
|
|
--- a/libcst/codemod/tests/test_codemod_cli.py
|
|
+++ b/libcst/codemod/tests/test_codemod_cli.py
|
|
@@ -4,7 +4,7 @@
|
|
# LICENSE file in the root directory of this source tree.
|
|
#
|
|
|
|
-
|
|
+import sys
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
@@ -16,7 +16,7 @@ class TestCodemodCLI(UnitTest):
|
|
def test_codemod_formatter_error_input(self) -> None:
|
|
rlt = subprocess.run(
|
|
[
|
|
- "python",
|
|
+ sys.executable,
|
|
"-m",
|
|
"libcst.tool",
|
|
"codemod",
|