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

Commit 7a3eedb

Browse files
committed
Merge branch 'RustPython:main' into main
2 parents 335780a + fe25708 commit 7a3eedb

29 files changed

+8902
-8542
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
1212
resolver = "2"
1313
members = [
1414
"ast", "core", "format", "literal", "parser",
15+
"ast-pyo3",
1516
"ruff_text_size", "ruff_source_location",
1617
]
1718

ast-pyo3/.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/target
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
.pytest_cache/
6+
*.py[cod]
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
.venv/
14+
env/
15+
bin/
16+
build/
17+
develop-eggs/
18+
dist/
19+
eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
include/
26+
man/
27+
venv/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
pip-selfcheck.json
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
45+
# Translations
46+
*.mo
47+
48+
# Mr Developer
49+
.mr.developer.cfg
50+
.project
51+
.pydevproject
52+
53+
# Rope
54+
.ropeproject
55+
56+
# Django stuff:
57+
*.log
58+
*.pot
59+
60+
.DS_Store
61+
62+
# Sphinx documentation
63+
docs/_build/
64+
65+
# PyCharm
66+
.idea/
67+
68+
# VSCode
69+
.vscode/
70+
71+
# Pyenv
72+
.python-version

ast-pyo3/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "rustpython-ast-pyo3"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[features]
7+
# This feature is experimental
8+
# It reimplements AST types, but currently both slower than python AST types and limited to use in other API
9+
wrapper = []
10+
11+
[lib]
12+
name = "rustpython_ast"
13+
crate-type = ["cdylib"]
14+
15+
[dependencies]
16+
rustpython-ast = { workspace = true, features = ["location"] }
17+
rustpython-parser = { workspace = true }
18+
num-complex = { workspace = true }
19+
once_cell = { workspace = true }
20+
21+
pyo3 = { workspace = true, features = ["num-bigint", "num-complex"] }

ast-pyo3/pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[build-system]
2+
requires = ["maturin>=0.15,<0.16"]
3+
build-backend = "maturin"
4+
5+
[project]
6+
name = "rustpython_ast"
7+
requires-python = ">=3.7"
8+
classifiers = [
9+
"Programming Language :: Rust",
10+
"Programming Language :: Python :: Implementation :: CPython",
11+
]
12+
13+
14+
[tool.maturin]
15+
features = ["pyo3/extension-module"]

0 commit comments

Comments
 (0)