mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
relocate scripts (#6753)
This commit is contained in:
1 parent
273c5a349b
commit
c490a357fd
7 files changed
+7
-19
No files matched your search
@@ -106,7 +106,7 @@ cargo run --release -- -m test test_unicode -k test_unicode_escape
|
||||
|
||||
### Determining What to Implement
|
||||
|
||||
Run `./whats_left.py` to get a list of unimplemented methods, which is helpful when looking for contribution opportunities.
|
||||
Run `./scripts/whats_left.py` to get a list of unimplemented methods, which is helpful when looking for contribution opportunities.
|
||||
|
||||
## Coding Guidelines
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ jobs:
|
||||
target/release/rustpython -m venv testvenv
|
||||
testvenv/bin/rustpython -m pip install wheel
|
||||
- name: Check whats_left is not broken
|
||||
run: python -I whats_left.py
|
||||
run: python -I scripts/whats_left.py
|
||||
|
||||
lint:
|
||||
name: Check Rust code with clippy
|
||||
|
||||
@@ -94,8 +94,8 @@ jobs:
|
||||
run: cargo build --release --verbose
|
||||
- name: Collect what is left data
|
||||
run: |
|
||||
chmod +x ./whats_left.py
|
||||
./whats_left.py --features "ssl,sqlite" > whats_left.temp
|
||||
chmod +x ./scripts/whats_left.py
|
||||
./scripts/whats_left.py --features "ssl,sqlite" > whats_left.temp
|
||||
env:
|
||||
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
|
||||
- name: Upload data to the website
|
||||
|
||||
@@ -245,7 +245,7 @@ To enhance CPython compatibility, try to increase unittest coverage by checking
|
||||
Another approach is to checkout the source code: builtin functions and object
|
||||
methods are often the simplest and easiest way to contribute.
|
||||
|
||||
You can also simply run `python -I whats_left.py` to assist in finding any unimplemented
|
||||
You can also simply run `python -I scripts/whats_left.py` to assist in finding any unimplemented
|
||||
method.
|
||||
|
||||
## Compiling to WebAssembly
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
def foo(x):
|
||||
def bar(z):
|
||||
return z + x
|
||||
|
||||
return bar
|
||||
|
||||
|
||||
f = foo(9)
|
||||
g = foo(10)
|
||||
|
||||
print(f(2))
|
||||
print(g(2))
|
||||
File renamed without changes.
@@ -29,7 +29,7 @@ from pydoc import ModuleScanner
|
||||
|
||||
if not sys.flags.isolated:
|
||||
print("running without -I option.")
|
||||
print("python -I whats_left.py")
|
||||
print("python -I scripts/whats_left.py")
|
||||
exit(1)
|
||||
|
||||
GENERATED_FILE = "extra_tests/not_impl.py"
|
||||
@@ -39,7 +39,7 @@ if implementation != "CPython":
|
||||
sys.exit(f"whats_left.py must be run under CPython, got {implementation} instead")
|
||||
if sys.version_info[:2] < (3, 14):
|
||||
sys.exit(
|
||||
f"whats_left.py must be run under CPython 3.14 or newer, got {implementation} {sys.version} instead. If you have uv, try `uv run python -I whats_left.py` to select a proper Python interpreter easier."
|
||||
f"whats_left.py must be run under CPython 3.14 or newer, got {implementation} {sys.version} instead. If you have uv, try `uv run python -I scripts/whats_left.py` to select a proper Python interpreter easier."
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user