Skip to content

Commit

Permalink
Add needed items for sdist (#755)
Browse files Browse the repository at this point in the history
* Add needed items for sdist

* add missing parts to sdist tar archive

* Update cargo lock

* use correct path

* some debugging items

* Need to cleanup directory

* Add in some machete ignores
  • Loading branch information
emlowe authored Oct 10, 2024
1 parent f93e888 commit ba9d26d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
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 <[email protected]>"]
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 }

0 comments on commit ba9d26d

Please sign in to comment.