Skip to content

Commit

Permalink
fix importlib-metadata dependency
Browse files Browse the repository at this point in the history
Signed-off-by: mgmgwi <guido.wischrop@mgm-tp.com>
  • Loading branch information
mgmgwi committed May 10, 2022
1 parent a0dc19d commit c7fa709
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-scripts/ubuntu-2004/prepare-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ if [ "$distro_packages" = "debian-packages" ]; then
echo -e "\nAdapt the dependencies for the Canonical archive"
sed -i "s~timeout-decorator~python3-timeout-decorator~" setup.py
sed -i "s~distro~python3-distro~" setup.py
sed -i "s~importlib-metadata~python3-importlib-metadata~" setup.py

echo -e "\n\nPrepares indy-plenum debian package version"
sed -i -r "s~indy-plenum==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-plenum==\1\~\3~" setup.py
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@
)],

install_requires=['indy-plenum==1.13.0.dev14',
'importlib-metadata<3.0',
# importlib-metadata needs to be pinned to 3.10.1 because from v4.0.0 the package
# name ends in python3-importlib-metadata_0.0.0_amd64.deb
# see also build-scripts/ubuntu-2004/build-3rd-parties.sh
# https://github.com/hyperledger/indy-plenum/blob/eac38674252b539216be2c40bb13e53c5b70dad2/build-scripts/ubuntu-2004/build-3rd-parties.sh#L104-L106
'importlib-metadata==3.10.1',
'timeout-decorator>=0.5.0',
'distro>=1.5.0'],
setup_requires=['pytest-runner'],
Expand Down

0 comments on commit c7fa709

Please sign in to comment.