Skip to content

Commit 64f10ec

Browse files
committed
Split repository from RustPython/Parser
0 parents  commit 64f10ec

12 files changed

+14682
-0
lines changed

Diff for: .gitignore

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

Diff for: Cargo.toml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[package]
2+
name = "rustpython-ast-pyo3"
3+
version = "0.0.1"
4+
authors = ["Jeong, Yunwon"]
5+
rust-version = "1.72.1"
6+
edition = "2021"
7+
description = "rustpython-ast PyO3 bindings"
8+
repository = "https://github.com/RustPython/rustpython-ast-pyo3"
9+
license = "MIT"
10+
11+
[features]
12+
abi3 = ["pyo3/abi3-py37"]
13+
# This feature is experimental
14+
# It reimplements AST types, but currently both slower than python AST types and limited to use in other API
15+
wrapper = []
16+
17+
[lib]
18+
name = "rustpython_ast"
19+
crate-type = ["cdylib"]
20+
21+
[dependencies]
22+
rustpython-ast = { version = "0.3.1", default-features = false, features = ["num-bigint", "location"] }
23+
rustpython-parser = { workspace = "0.3.1", default-features = false, features = ["num-bigint"] }
24+
25+
num-complex = "0.4.0"
26+
num-traits = "0.2"
27+
once_cell = "1.18.0"
28+
29+
pyo3 = { version = "0.20", features = ["num-bigint", "num-complex"] }

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Jeong, Yunwon
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: pyproject.toml

+15
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+
[tool.maturin]
14+
# module-name = "_rustpython_ast"
15+
features = ["pyo3/extension-module"]

Diff for: rustpython_ast/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from rustpython_ast.rustpython_ast import parse
2+
3+
__all__ = ["parse"]

0 commit comments

Comments
 (0)