Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

Commit b59d7ef

Browse files
committed
Delete commented out code
1 parent a7a2aef commit b59d7ef

File tree

2 files changed

+0
-225
lines changed

2 files changed

+0
-225
lines changed

.github/workflows/ci.yaml

-155
Original file line numberDiff line numberDiff line change
@@ -224,81 +224,6 @@ jobs:
224224
with:
225225
command: check
226226

227-
# snippets_cpython:
228-
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
229-
# needs: lalrpop
230-
# env:
231-
# RUST_BACKTRACE: full
232-
# name: Run snippets and cpython tests
233-
# runs-on: ${{ matrix.os }}
234-
# strategy:
235-
# matrix:
236-
# os: [macos-latest, ubuntu-latest, windows-latest]
237-
# fail-fast: false
238-
# steps:
239-
# - uses: actions/checkout@v3
240-
# - name: Cache generated parser
241-
# uses: actions/cache@v3
242-
# with:
243-
# path: compiler/parser/python.rs
244-
# key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
245-
#
246-
# - uses: dtolnay/rust-toolchain@stable
247-
# - uses: actions/setup-python@v4
248-
# with:
249-
# python-version: "3.11"
250-
# - name: Set up the Windows environment
251-
# shell: bash
252-
# run: |
253-
# choco install llvm openssl
254-
# echo "OPENSSL_DIR=C:\Program Files\OpenSSL-Win64" >>$GITHUB_ENV
255-
# if: runner.os == 'Windows'
256-
# - name: Set up the Mac environment
257-
# run: brew install autoconf automake libtool openssl@3
258-
# if: runner.os == 'macOS'
259-
#
260-
# - uses: Swatinem/rust-cache@v2
261-
# - name: build rustpython
262-
# run: cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }}
263-
# - uses: actions/setup-python@v4
264-
# with:
265-
# python-version: "3.11"
266-
# - name: run snippets
267-
# run: python -m pip install -r requirements.txt && pytest -v
268-
# working-directory: ./extra_tests
269-
# - if: runner.os == 'Linux'
270-
# name: run cpython platform-independent tests
271-
# run:
272-
# target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v ${{ env.PLATFORM_INDEPENDENT_TESTS }}
273-
# - if: runner.os != 'Windows'
274-
# name: run cpython platform-dependent tests
275-
# run: target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
276-
# - if: runner.os == 'Windows'
277-
# name: run cpython platform-dependent tests (windows partial - fixme)
278-
# run:
279-
# target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
280-
# test_glob
281-
# test_importlib
282-
# test_io
283-
# test_iter
284-
# test_os
285-
# test_pathlib
286-
# test_posixpath
287-
# test_shutil
288-
# test_venv
289-
# - if: runner.os != 'Windows'
290-
# name: check that --install-pip succeeds
291-
# run: |
292-
# mkdir site-packages
293-
# target/release/rustpython --install-pip ensurepip --user
294-
# - if: runner.os != 'Windows'
295-
# name: Check that ensurepip succeeds.
296-
# run: |
297-
# target/release/rustpython -m ensurepip
298-
# target/release/rustpython -c "import pip"
299-
# - name: Check whats_left is not broken
300-
# run: python -I whats_left.py
301-
302227
lalrpop:
303228
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
304229
name: Generate parser with lalrpop
@@ -385,83 +310,3 @@ jobs:
385310
- uses: Swatinem/rust-cache@v2
386311
- name: Run tests under miri
387312
run: cargo +nightly miri test -p rustpython-parser -- miri_test
388-
389-
# wasm:
390-
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
391-
# name: Check the WASM package and demo
392-
# needs: lalrpop
393-
# runs-on: ubuntu-latest
394-
# steps:
395-
# - uses: actions/checkout@v3
396-
# - name: Cache generated parser
397-
# uses: actions/cache@v3
398-
# with:
399-
# path: compiler/parser/python.rs
400-
# key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
401-
# - uses: dtolnay/rust-toolchain@stable
402-
#
403-
# - uses: Swatinem/rust-cache@v2
404-
# - name: install wasm-pack
405-
# run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
406-
# - name: install geckodriver
407-
# run: |
408-
# wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz
409-
# mkdir geckodriver
410-
# tar -xzf geckodriver-v0.30.0-linux64.tar.gz -C geckodriver
411-
# - uses: actions/setup-python@v4
412-
# with:
413-
# python-version: "3.11"
414-
# - run: python -m pip install -r requirements.txt
415-
# working-directory: ./wasm/tests
416-
# - uses: actions/setup-node@v3
417-
# - name: run test
418-
# run: |
419-
# export PATH=$PATH:`pwd`/../../geckodriver
420-
# npm install
421-
# npm run test
422-
# env:
423-
# NODE_OPTIONS: "--openssl-legacy-provider"
424-
# working-directory: ./wasm/demo
425-
# - name: build notebook demo
426-
# if: github.ref == 'refs/heads/release'
427-
# run: |
428-
# npm install
429-
# npm run dist
430-
# mv dist ../demo/dist/notebook
431-
# env:
432-
# NODE_OPTIONS: "--openssl-legacy-provider"
433-
# working-directory: ./wasm/notebook
434-
# - name: Deploy demo to Github Pages
435-
# if: success() && github.ref == 'refs/heads/release'
436-
# uses: peaceiris/actions-gh-pages@v2
437-
# env:
438-
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEMO_DEPLOY_KEY }}
439-
# PUBLISH_DIR: ./wasm/demo/dist
440-
# EXTERNAL_REPOSITORY: RustPython/demo
441-
# PUBLISH_BRANCH: master
442-
#
443-
# wasm-wasi:
444-
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
445-
# name: Run snippets and cpython tests on wasm-wasi
446-
# needs: lalrpop
447-
# runs-on: ubuntu-latest
448-
# steps:
449-
# - uses: actions/checkout@v3
450-
# - name: Cache generated parser
451-
# uses: actions/cache@v3
452-
# with:
453-
# path: compiler/parser/python.rs
454-
# key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
455-
# - uses: dtolnay/rust-toolchain@stable
456-
# with:
457-
# target: wasm32-wasi
458-
#
459-
# - uses: Swatinem/rust-cache@v2
460-
# - name: Setup Wasmer
461-
# uses: wasmerio/setup-wasmer@v2
462-
# - name: Install clang
463-
# run: sudo apt-get update && sudo apt-get install clang -y
464-
# - name: build rustpython
465-
# run: cargo build --release --target wasm32-wasi --features freeze-stdlib,stdlib --verbose
466-
# - name: run snippets
467-
# run: wasmer run --dir . target/wasm32-wasi/release/rustpython.wasm -- extra_tests/snippets/stdlib_random.py

Cargo.toml

-70
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
#[package]
2-
#name = "rustpython"
3-
#version = "0.2.0"
4-
#authors = ["RustPython Team"]
5-
#edition = "2021"
6-
#rust-version = "1.67.1"
7-
#description = "A python interpreter written in rust."
8-
#repository = "https://github.com/RustPython/RustPython"
9-
#license = "MIT"
10-
#include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
11-
121
[workspace]
132
resolver = "2"
143
members = [
@@ -55,60 +44,6 @@ thread_local = "1.1.4"
5544
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }
5645
widestring = "0.5.1"
5746

58-
#[features]
59-
#default = ["threading", "stdlib", "zlib", "importlib", "encodings", "rustpython-parser/lalrpop"]
60-
#importlib = ["rustpython-vm/importlib"]
61-
#encodings = ["rustpython-vm/encodings"]
62-
#stdlib = ["rustpython-stdlib", "rustpython-pylib"]
63-
#flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
64-
#freeze-stdlib = ["rustpython-vm/freeze-stdlib", "rustpython-pylib?/freeze-stdlib"]
65-
#jit = ["rustpython-vm/jit"]
66-
#threading = ["rustpython-vm/threading", "rustpython-stdlib/threading"]
67-
#zlib = ["stdlib", "rustpython-stdlib/zlib"]
68-
#bz2 = ["stdlib", "rustpython-stdlib/bz2"]
69-
#ssl = ["rustpython-stdlib/ssl"]
70-
#ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
71-
72-
#[dependencies]
73-
#rustpython-compiler = { path = "compiler", version = "0.2.0" }
74-
#rustpython-parser = { path = "compiler/parser", version = "0.2.0" }
75-
#rustpython-pylib = { path = "pylib", optional = true, default-features = false }
76-
#rustpython-stdlib = { path = "stdlib", optional = true, default-features = false }
77-
#rustpython-vm = { path = "vm", version = "0.2.0", default-features = false, features = ["compiler"] }
78-
79-
#atty = { workspace = true }
80-
#cfg-if = { workspace = true }
81-
#log = { workspace = true }
82-
#flame = { workspace = true, optional = true }
83-
#
84-
#clap = "2.34"
85-
#dirs = { package = "dirs-next", version = "2.0.0" }
86-
#env_logger = { version = "0.9.0", default-features = false, features = ["atty", "termcolor"] }
87-
#flamescope = { version = "0.1.2", optional = true }
88-
#
89-
#[target.'cfg(windows)'.dependencies]
90-
#libc = { workspace = true }
91-
#
92-
#[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
93-
#rustyline = { workspace = true }
94-
#
95-
#[dev-dependencies]
96-
#cpython = "0.7.0"
97-
#criterion = "0.3.5"
98-
#python3-sys = "0.7.0"
99-
100-
#[[bench]]
101-
#name = "execution"
102-
#harness = false
103-
#
104-
#[[bench]]
105-
#name = "microbenchmarks"
106-
#harness = false
107-
#
108-
#[[bin]]
109-
#name = "rustpython"
110-
#path = "src/main.rs"
111-
11247
[profile.dev.package."*"]
11348
opt-level = 3
11449

@@ -124,8 +59,3 @@ opt-level = 3
12459

12560
[profile.release]
12661
lto = "thin"
127-
128-
[patch.crates-io]
129-
# REDOX START, Uncomment when you want to compile/check with redoxer
130-
# nix = { git = "https://github.com/coolreader18/nix", branch = "0.26.2-redox" }
131-
# REDOX END

0 commit comments

Comments
 (0)