-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
175 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cd /workdir | ||
yum -y install centos-release-scl-rh | ||
yum -y install llvm-toolset-7.0 | ||
source scl_source enable llvm-toolset-7.0 | ||
curl https://static.rust-lang.org/rustup/dist/%arch%-unknown-linux-gnu/rustup-init --output rustup-init | ||
chmod +x rustup-init | ||
./rustup-init -y --profile minimal | ||
source "$HOME/.cargo/env" | ||
export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" | ||
cd python | ||
python3.10 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.dev.txt | ||
maturin develop --release -m Cargo.toml | ||
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black | ||
maturin build --release -m Cargo.toml --features abi3 --compatibility manylinux2014 | ||
if [ %for_each_version% ]; then | ||
for VERSION in 7 8 9 10 11; do | ||
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility manylinux2014 | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cd /workdir | ||
apk add clang-dev | ||
curl https://static.rust-lang.org/rustup/dist/%arch%-unknown-linux-musl/rustup-init --output rustup-init | ||
chmod +x rustup-init | ||
./rustup-init -y --profile minimal | ||
source "$HOME/.cargo/env" | ||
export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" | ||
cd python | ||
python3.10 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.dev.txt | ||
maturin develop --release -m Cargo.toml | ||
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black | ||
maturin build --release -m Cargo.toml --features abi3 --compatibility musllinux_1_1 | ||
if [ %for_each_version% ]; then | ||
for VERSION in 7 8 9 10 11; do | ||
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility musllinux_1_1 | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
black~=23.1 | ||
furo | ||
maturin[patchelf]~=1.0 | ||
mypy~=1.0 | ||
ruff~=0.0.255 | ||
sphinx~=5.3 |