Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add needed items for sdist #755

Merged
merged 7 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@ jobs:
run: |
pip install maturin
maturin sdist -m wheel/Cargo.toml
cd target/wheels
dirname=`basename chia_rs*.tar.gz .tar.gz`
echo $dirname
mkdir $dirname
cp -r ../../src/ $dirname/src/
gunzip chia_rs*.tar.gz
tar rvf chia_rs*.tar $dirname/src
gzip chia_rs*.tar
rm -rf $dirname

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion wheel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ version = "0.14.1"
authors = ["Richard Kiss <him@richardkiss.com>"]
edition = "2021"
license = "Apache-2.0"
license-file = "../LICENSE"
description = "Code useful for implementing chia consensus."
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"
Expand All @@ -21,6 +20,11 @@ path = "src/lib.rs"
[package.metadata.maturin]
python-source = "python"

# chia-client and chia-ssl are needed for the wheel sdist to work correctly
# ignore any errors from machete about unused dependencies
[package.metadata.cargo-machete]
ignored = ["chia-client", "chia-ssl"]

[dependencies]
clvmr = { workspace = true }
hex = { workspace = true }
Expand All @@ -29,3 +33,5 @@ chia-consensus = { workspace = true, features = ["py-bindings"] }
chia-bls = { workspace = true, features = ["py-bindings"] }
chia-protocol = { workspace = true, features = ["py-bindings"] }
clvm-utils = { workspace = true }
chia-ssl = { workspace = true }
chia-client = { workspace = true }