12308 Commits

Author SHA1 Message Date
Noa
c7faae9b22 Bump all crate versions to 0.2.0 v0.2.0 2023-01-11 00:14:28 -06:00
Jeong YunWon
c38babe5cb Merge pull request #4435 from RustPython/dependabot/cargo/bzip2-0.4.4
Bump bzip2 from 0.4.3 to 0.4.4
2023-01-11 10:27:27 +09:00
dependabot[bot]
2c696bca94 Bump bzip2 from 0.4.3 to 0.4.4
Bumps [bzip2](https://github.com/alexcrichton/bzip2-rs) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/alexcrichton/bzip2-rs/releases)
- [Commits](https://github.com/alexcrichton/bzip2-rs/commits/0.4.4)

---
updated-dependencies:
- dependency-name: bzip2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 22:31:07 +00:00
Jeong YunWon
48103030e4 Merge pull request #4433 from lgyanf/devcontainer
[RFC] Add Github Codespaces configuration (devcontainer.json)
2023-01-10 08:28:39 +09:00
Ivan Gromov
1e9d9aed84 Create devcontainer.json 2023-01-09 22:22:17 +00:00
Jeong YunWon
a3e223d78e Merge pull request #4432 from youknowone/cspell
first cspell dict
2023-01-09 20:46:40 +09:00
Jeong YunWon
1848c45302 first cspell dict 2023-01-09 19:57:23 +09:00
Jeong YunWon
fc9e531272 Merge pull request #4414 from moreal/keyboard-int-exitcode
Correct exitcode of KeyboardInterrupt
2023-01-08 17:48:44 +09:00
Moreal
16579aeafe Correct exitcode of KeyboardInterrupt 2023-01-08 14:49:51 +09:00
Steve Shi
765933136c Implement Sqlite3 Module (#4260)
* add supporting for PyAtomic<PyObject>

* create sqlite module

* add dependency sqlite3-sys

* add module constants

* import sqlite3 from cpython

* adjust lib

* add module structure

* impl Connection.cursor

* add module exceptions

* impl lstrip_sql

* impl statement new

* wip cursor.execute

* wip cursor

* wip error to exception

* add SqliteRaw and SqliteStatementRaw

* impl statement parameters binding

* wip cursor.execute

* add test_sqlite

* impl closeable connection

* impl closeable cursor

* impl cursor.executemany

* impl cursor.executescript

* impl cursor.fetch*

* impl connection.backup

* stage 1

* add support connection.backup with progress

* fix backup deadlock

* support changable isolation_level

* impl converter

* impl adapter

* impl text_factory and blob

* impl create_function

* impl create_function 2

* fix empty statement

* impl blob support

* impl create_aggregate

* impl create_aggregate 2

* refactor create_*

* impl enable_callback_traceback

* impl create_collation

* refactor create_* with CallbackData

* fix text and blob use SQLITE_TRANSIENT

* fix str to SQLITE_TEXT

* impl thread check

* impl Connection Factory

* impl busy timeout

* shift sqlite3-sys -> libsqlite3-sys

* refactor CallbackData

* impl create_window_function

* refactor callback functions

* add module attr converters

* fix nullable isolation_level

* add module attr adapters

* fix nullable adapt proto

* impl set_authorizer

* impl trace_callback

* impl set_progress_handler

* impl cancellable sqlite function*

* impl attributes for Connection

* fix some failed tests

* impl Row

* impl Blob methods

* impl Blob subscript & ass_subscript

* pass tests

* rebase

* no sqlite for wasm

* use ThreadId instead u64

* no libsqlite3-sys for wasm

* fix into_cstring for all platform

* fixup

* rebase

* fix windows into_bytes

* disable sqlite for android

* fixup
2023-01-07 22:03:24 +02:00
yt2b
22a5a83fda PyInt.format only raises ValueError (#4428) 2023-01-08 02:06:04 +09:00
Jeong YunWon
604aa427fa Merge pull request #4429 from youknowone/fix-format
Fix nightly clippy warnings
2023-01-07 21:38:41 +09:00
Jeong YunWon
8d36fe68e7 Fix nightly clippy warnings 2023-01-07 21:07:10 +09:00
Jeong YunWon
55aac852fd Merge pull request #4427 from yt2b/fix_integer_format
Fix integer format
2023-01-07 19:41:32 +09:00
Jeong YunWon
ddc2e1b81d Merge pull request #4426 from harupy/include-comment
Include comment text in token
2023-01-07 19:38:51 +09:00
yt2b
4bec6e8cc8 add from_bytes 2023-01-07 12:44:28 +09:00
Jeong YunWon
ff0f0ac25c Merge pull request #4425 from yt2b/fix_formatspec_parse
Fix `FormatSpec::parse`.
2023-01-07 02:18:32 +09:00
harupy
d532160333 Include comment text in token 2023-01-06 23:29:20 +09:00
yt2b
3677013765 Fix tests 2023-01-06 23:28:33 +09:00
yt2b
32cf0185bd Fix functions 2023-01-06 22:56:30 +09:00
Jeong YunWon
ba427c8690 Merge pull request #4422 from harupy/impl-Default-for-Location
Implement `Default` for `Location`
2023-01-06 01:43:15 +09:00
Jeong YunWon
f1ca3596c0 Merge pull request #4421 from yt2b/implement_string_format_validation
Implement string format validation
2023-01-06 01:43:04 +09:00
yt2b
e60a264dc8 Remove map_err 2023-01-06 00:02:39 +09:00
yt2b
1534112cfe Add test 2023-01-05 23:55:23 +09:00
yt2b
f84dd2e84f Implement format validation 2023-01-05 23:55:23 +09:00
Jeong YunWon
2f94c07609 Merge pull request #4361 from yt2b/fix_fstring
Fix f-string padding
2023-01-05 23:10:59 +09:00
harupy
3602d2602b Implement Default for Location 2023-01-05 22:48:47 +09:00
Jeong YunWon
062a543c7f Fix f-string padding
Co-Authored-By: yt2b <reinventing.the.wheels@gmail.com>
2023-01-05 22:29:11 +09:00
Jim Fasarakis-Hilliard
ed5b182c44 Merge pull request #4420 from harupy/simplify-string-check
Simplify string check in `Lexer.lex_identifier`
2023-01-05 12:45:52 +02:00
yt2b
d3b587afc7 Remove the decorators 2023-01-05 18:52:11 +09:00
yt2b
59bfc51769 Add test 2023-01-05 18:52:10 +09:00
harupy
c640312051 Address comments 2023-01-05 18:24:54 +09:00
Bijan Naimi
134355e1e6 Improved the fix for the continuing problem in the shell (#4406) 2023-01-05 10:12:29 +09:00
Jim Fasarakis-Hilliard
144f61932f Merge pull request #4419 from yt2b/implement_float_format_validation
Implement float format validation
2023-01-04 20:27:20 +02:00
harupy
d775965e3d Use try_from 2023-01-05 01:18:30 +09:00
harupy
f02f3279b0 Simplify string check 2023-01-04 23:57:50 +09:00
yt2b
980e578d27 Remove map_err 2023-01-04 23:36:34 +09:00
yt2b
de58b7cb00 Add tests 2023-01-04 23:13:55 +09:00
yt2b
a79d3ad61b Fix functions 2023-01-04 23:08:20 +09:00
Jim Fasarakis-Hilliard
cad2adc299 Merge pull request #4326 from yt2b/fix_list_remove
Fix `PyList.remove`
2023-01-04 13:28:59 +02:00
threeifbyair
9d711c805a Ensure ScandirIterator does not leak file handles under Unix-like systems (#4307)
* Ensure ScandirIterator does not leak file handles under Unix-like systems.
2023-01-04 13:18:32 +02:00
Jeong YunWon
9af9c1643d Merge pull request #4417 from harupy/add-with-offset-methods
Add `with_col_offset` and `with_row_offset` to `Location` for conveniece
2023-01-04 17:07:31 +09:00
Jeong YunWon
36ec2e44d7 Merge pull request #4413 from harupy/more-generic-window-impl
Update `CharWindow` in `compiler/parser/src/lexer.rs` to allow slicing
2023-01-04 17:06:06 +09:00
Jeong YunWon
8f87dbcf28 Merge pull request #4412 from yt2b/implement_format_validation
Implement integer format validation
2023-01-04 16:50:26 +09:00
harupy
9e0d31d12d Use Self 2023-01-04 13:19:23 +09:00
harupy
a6cebc4f51 Add with_col_offset and with_row_offset to Location 2023-01-04 13:16:03 +09:00
Jim Fasarakis-Hilliard
096a604c30 Merge pull request #4415 from harupy/remove-incorrect-empty-expression-error
Remove incorrect `EmptyExpression` in `StringParser.parse_formatted_value`
2023-01-03 23:12:53 +02:00
harupy
57b87c6d2d Address comment 2023-01-04 00:03:18 +09:00
harupy
60ce07d829 Remove incorrect EmptyExpression in parse_formatted_value 2023-01-03 23:55:50 +09:00
harupy
b5db39441c Improve CharWindow 2023-01-03 17:27:35 +09:00