Skip to content

Commit

Permalink
Add pyproject.toml to python bindings (#1239)
Browse files Browse the repository at this point in the history
* Add pyproject.toml to python bindings

* Improve pyproject.toml

* Update CI pipeline to use pip to install python bindings
  • Loading branch information
twizmwazin authored May 9, 2023
1 parent 8bd18ef commit be1d3da
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run a maturin build
run: cd ./bindings/pylibafl && python3 -m venv .env && . .env/bin/activate && maturin develop && ./test.sh
run: cd ./bindings/pylibafl && python3 -m venv .env && . .env/bin/activate && pip install . && ./test.sh
- name: Run python test
run: . ./bindings/pylibafl/.env/bin/activate && cd ./fuzzers/baby_fuzzer && python3 baby_fuzzer.py 2>&1 | grep "Bye"

Expand Down
1 change: 1 addition & 0 deletions bindings/pylibafl/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
26 changes: 26 additions & 0 deletions bindings/pylibafl/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build-system]
requires = ["maturin[patchelf]>=0.14.10,<0.15"]
build-backend = "maturin"

[project]
name = "PyLibAFL"
version = "0.10.0"
description = "Advanced Fuzzing Library for Python"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Programming Language :: Rust",
"Topic :: Security",
]

[project.urls]
repository = "https://github.com/AFLplusplus/LibAFL.git"

[tool.maturin]
bindings = "pylibafl"
manifest-path = "Cargo.toml"
python-source = "python"
all-features = true
1 change: 0 additions & 1 deletion bindings/pylibafl/rust-toolchain

This file was deleted.

0 comments on commit be1d3da

Please sign in to comment.