Matej Cepl
7214b3e593
- 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
18 lines
713 B
Diff
18 lines
713 B
Diff
Index: libcst-0.4.9/libcst/codegen/generate.py
|
|
===================================================================
|
|
--- libcst-0.4.9.orig/libcst/codegen/generate.py
|
|
+++ libcst-0.4.9/libcst/codegen/generate.py
|
|
@@ -25,8 +25,10 @@ from libcst.codegen.transforms import (
|
|
|
|
|
|
def format_file(fname: str) -> None:
|
|
- with open(os.devnull, "w") as devnull:
|
|
- subprocess.check_call(["ufmt", "format", fname], stdout=devnull, stderr=devnull)
|
|
+ # Do not format to avoid ufmt dependency that's not yet in opensuse
|
|
+ pass
|
|
+ # with open(os.devnull, "w") as devnull:
|
|
+ # subprocess.check_call(["ufmt", "format", fname], stdout=devnull, stderr=devnull)
|
|
|
|
|
|
def clean_generated_code(code: str) -> str:
|