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

fix python sdk & core build script #61

Merged
merged 1 commit into from
Dec 5, 2022
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
2 changes: 2 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"typechain-types/**/*.ts"
],
"scripts": {
"clean": "hardhat clean && rm -rf abis cache",
"precompile": "npm run clean",
"compile": "hardhat compile",
"verify": "hardhat verify",
"test": "hardhat test",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/python/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include contracts/**/*.json
4 changes: 4 additions & 0 deletions packages/sdk/python/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
clean-package:
rm -rf build contracts dist *.egg-info

build-contracts:
./scripts/build-contracts.sh

Expand All @@ -9,6 +12,7 @@ run-test:
./scripts/run-test.sh

build-package:
make clean-package
make build-contracts
python3 setup.py sdist bdist_wheel

Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

setuptools.setup(
name="human-protocol-sdk",
version="0.0.3",
version="0.0.4",
author="HUMAN Protocol",
description="A python library to launch escrow contracts to the HUMAN network.",
url="https://github.com/humanprotocol/human-protocol/packages/sdk/python",
include_package_data=True,
exclude_package_data={"contracts": ["*.dbg.json"]},
zip_safe=True,
classifiers=[
"Intended Audience :: Developers",
Expand Down