Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3c649f4
metaclass support for #[pyclass] macro
youknowone Aug 7, 2021
8c1d39b
vscode lldb configuration template
youknowone Aug 11, 2021
b80db73
os: update TestSendfile from cpython
deantvv Aug 11, 2021
2528d25
support deque.extend recursive call
eldpswp99 Aug 11, 2021
9c5dace
use _extend std:Iterator
eldpswp99 Aug 11, 2021
cd548b8
PyDeque::extend to use _extend always
youknowone Aug 11, 2021
4633d82
Check compilation for Android and Redox in CI
coolreader18 Aug 11, 2021
94eb264
Fix rustyline on redox
coolreader18 Aug 9, 2021
811111b
Merge branch 'fix-redox-repl' into exotic-targets-ci
coolreader18 Aug 11, 2021
32adc32
clean up pymethod with names
youknowone Aug 11, 2021
739ca96
PyDeque with extract_elements & extend
youknowone Aug 12, 2021
06d33f8
`id()` for `str` stays the same after `* 1`, refs #2840
sobolevn Aug 12, 2021
ab8c6bf
support deque.insert when idx is gte to len
eldpswp99 Aug 12, 2021
06581db
Merge pull request #2865 from eldpswp99/support-deque-insert-at-the-end
youknowone Aug 12, 2021
201664e
avoid vm.new_stringref in pystr.rs
youknowone Aug 12, 2021
0e604b5
Update vm/src/stdlib/collections.rs
youknowone Aug 12, 2021
3d66693
Merge pull request #2864 from sobolevn/str-mul-1
youknowone Aug 12, 2021
d2a9316
Merge pull request #2853 from eldpswp99/support-deque.extend-recursiv…
youknowone Aug 12, 2021
c29a1d2
remove improper setter of deque.maxlen
eldpswp99 Aug 12, 2021
8e6a266
change deque.maxlen type from atomicCell<Option> to Option
eldpswp99 Aug 12, 2021
0e36ff8
remove unnecessary Option<usize> clone
eldpswp99 Aug 12, 2021
8f47192
os: fix sendfile arguments
deantvv Aug 11, 2021
4ec328b
Merge pull request #2866 from eldpswp99/make-deque-maxlen-readonly
youknowone Aug 12, 2021
97d388e
Merge pull request #2863 from youknowone/funcnames
DimitrisJim Aug 12, 2021
cf61959
Cleans up `pyproperty` definitions
sobolevn Aug 12, 2021
8cf3506
Merge pull request #2867 from sobolevn/pyproperty-cleanup
DimitrisJim Aug 12, 2021
e00fd52
Cleans up `pyclassmethod` definition
sobolevn Aug 12, 2021
0c6375c
Fix pickling, length hint, iteration for reverse list iterators. Refa…
DimitrisJim Aug 12, 2021
1c8b17a
Merge pull request #2870 from sobolevn/pyclassmethod-cleanup
youknowone Aug 12, 2021
987516b
Merge pull request #2868 from DimitrisJim/reverse_list_it
DimitrisJim Aug 12, 2021
6481891
Deque.__init__ handles initialization.
DimitrisJim Aug 12, 2021
51c9aa8
manual safety for deque.maxlen
youknowone Aug 12, 2021
ca5c07b
Fix warnings on redox/android
coolreader18 Aug 12, 2021
f813a54
Merge pull request #2862 from RustPython/exotic-targets-ci
coolreader18 Aug 12, 2021
c1b8eaa
Clean up remaining pymethod usages.
DimitrisJim Aug 12, 2021
2e7c3bd
Merge pull request #2873 from DimitrisJim/cleaning
youknowone Aug 13, 2021
805abb7
Merge pull request #2871 from DimitrisJim/deque_init
youknowone Aug 13, 2021
2bfafbb
Removes unused imports
sobolevn Aug 13, 2021
724d75d
Merge pull request #2845 from youknowone/vscode-lldb
youknowone Aug 13, 2021
4a46024
Retrying contains, remove, discard with a frozenset.
DimitrisJim Aug 13, 2021
634a6c2
Merge pull request #2875 from DimitrisJim/retry_set_ops
youknowone Aug 13, 2021
a21ad9e
Merge pull request #2804 from youknowone/static-metaclass
DimitrisJim Aug 13, 2021
ac0d5ff
Add reduce for set, frozenset.
DimitrisJim Aug 13, 2021
3bb4e5d
os: fix sendfile for macos
deantvv Aug 13, 2021
cc40ae0
Merge pull request #2851 from deantvv/fix-os-sendfile
coolreader18 Aug 14, 2021
289ddea
Merge pull request #2878 from DimitrisJim/sets_reduce
youknowone Aug 14, 2021
ecf7877
Remove unnecessary slot wrapper overwriting
moreal Aug 14, 2021
ee09ef2
TryFromBorrowedObject
youknowone Aug 11, 2021
93cf687
TryFromBorrowedObjcet for PyBuffer
youknowone Aug 11, 2021
888b382
Give a sole module for buffer protocol
youknowone Aug 11, 2021
e594090
BufferProtocol -> AsBuffer
youknowone Aug 11, 2021
f6de106
PyBytesInner::try_from_borrowed_object
youknowone Aug 11, 2021
3ed817f
impl TryFromBorrowedObject for PyBytes
youknowone Aug 11, 2021
4d4e39a
Rename PyBytesLike, PyRwBytesLike, BufOrStr to Arg-prefixed proper names
youknowone Aug 11, 2021
62bff17
TryFromBorrowedObject for byteslike
youknowone Aug 11, 2021
597771d
Unmark fixed tests
moreal Aug 14, 2021
61bae9a
Merge pull request #2856 from youknowone/buffer-protocol
youknowone Aug 14, 2021
9d99ea9
Merge pull request #2879 from moreal/bugfix/unnecessary-slot-overwrite
youknowone Aug 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ jobs:
command: check
args: ${{ env.CARGO_ARGS }} --no-default-features

exotic_targets:
name: Ensure compilation on exotic targets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
target: aarch64-linux-android

- name: Check compilation for android
uses: actions-rs/cargo@v1
with:
command: check
args: --target aarch64-linux-android

- name: Prepare repository for redox compilation
run: bash scripts/redox/uncomment-cargo.sh
- name: Check compilation for Redox
uses: coolreader18/redoxer-action@v1
with:
command: check

snippets_cpython:
name: Run snippets and cpython tests
runs-on: ${{ matrix.os }}
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/cron-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ on:
name: Periodic checks/tasks

jobs:
redox:
name: Check compilation on Redox
runs-on: ubuntu-latest
container:
image: redoxos/redoxer:latest
steps:
- uses: actions/checkout@v2
- name: prepare repository for redoxer compilation
run: bash scripts/redox/uncomment-cargo.sh
- name: compile for redox
run: redoxer build --verbose

codecov:
name: Collect code coverage data
runs-on: ubuntu-latest
Expand Down
283 changes: 283 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'rustpython'",
"preLaunchTask": "Build RustPython Debug",
"program": "target/debug/rustpython",
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython"
],
"filter": {
"name": "rustpython",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug benchmark 'execution'",
"cargo": {
"args": [
"test",
"--no-run",
"--bench=execution",
"--package=rustpython"
],
"filter": {
"name": "execution",
"kind": "bench"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug benchmark 'microbenchmarks'",
"cargo": {
"args": [
"test",
"--no-run",
"--bench=microbenchmarks",
"--package=rustpython"
],
"filter": {
"name": "microbenchmarks",
"kind": "bench"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-pylib'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-pylib"
],
"filter": {
"name": "rustpython-pylib",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-bytecode'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-bytecode"
],
"filter": {
"name": "rustpython-bytecode",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-compiler'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-compiler"
],
"filter": {
"name": "rustpython-compiler",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-compiler-core'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-compiler-core"
],
"filter": {
"name": "rustpython-compiler-core",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-ast'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-ast"
],
"filter": {
"name": "rustpython-ast",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-parser'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-parser"
],
"filter": {
"name": "rustpython-parser",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-vm'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-vm"
],
"filter": {
"name": "rustpython-vm",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-common'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-common"
],
"filter": {
"name": "rustpython-common",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython-jit'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython-jit"
],
"filter": {
"name": "rustpython-jit",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'integration'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=integration",
"--package=rustpython-jit"
],
"filter": {
"name": "integration",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'rustpython_wasm'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=rustpython_wasm"
],
"filter": {
"name": "rustpython_wasm",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build RustPython Debug",
"type": "shell",
"command": "cargo",
"args": [
"build", "--features=ssl",
],
"problemMatcher": [
"$rustc",
],
"group": {
"kind": "build",
"isDefault": true,
},
}
],
}
17 changes: 15 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading