From 00601841218a064f278ec4d1d3cb74a1e28cdb85 Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Sat, 24 Jun 2023 06:10:20 +0000 Subject: [PATCH] fix: release flow - Add support for including helper packages --- .github/workflows/release.yml | 2 ++ MANIFEST.in | 1 + packages/packages.json | 2 +- pyproject.toml | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6f0b88..565ec9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: sudo apt-get autoclean python -m pip install --upgrade pip pip install twine poetry==1.4.2 + poetry install + poetry run autonomy packages sync --update-packages - name: Build wheels and source tarball run: | diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..5f0e7d9 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include helpers *.yaml *.proto *.md \ No newline at end of file diff --git a/packages/packages.json b/packages/packages.json index 9dde1f1..3aaf146 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -3,6 +3,6 @@ "third_party": { "connection/valory/p2p_libp2p_client/0.1.0": "bafybeidwcobzb7ut3efegoedad7jfckvt2n6prcmd4g7xnkm6hp6aafrva", "protocol/valory/acn/1.1.0": "bafybeignmc5uh3vgpuckljcj2tgg7hdqyytkm6m5b6v6mxtazdcvubibva", - "protocol/valory/mech_acn/0.1.0": "bafybeifdg57my55xwr3klgu72np3dcgrctalndpod2cm6xayfuqqvaocku" + "protocol/valory/acn_data_share/0.1.0": "bafybeieyixetwvz767zekhvg7r6etumyanzys6xbalx2brrfswybinnlhi" } } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e8209b4..54f928a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,23 @@ authors = ["David Minarsch "] readme = "README.md" packages = [{include = "mech_client"}] license = "Apache-2.0" +include = [ + "mech_client/helpers/acn/*", + "mech_client/helpers/acn/*.md", + "mech_client/helpers/acn/*.yaml", + "mech_client/helpers/acn/*.proto", + "mech_client/helpers/acn/tests/*", + "mech_client/helpers/acn_data_share/*", + "mech_client/helpers/acn_data_share/*.md", + "mech_client/helpers/acn_data_share/*.yaml", + "mech_client/helpers/acn_data_share/*.proto", + "mech_client/helpers/acn_data_share/tests/*", + "mech_client/helpers/p2p_libp2p_client/*", + "mech_client/helpers/p2p_libp2p_client/*.md", + "mech_client/helpers/p2p_libp2p_client/*.yaml", + "mech_client/helpers/p2p_libp2p_client/*.proto", + "mech_client/helpers/p2p_libp2p_client/tests/*", +] [tool.poetry.dependencies] python = "^3.10"