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 importlib-metadata dependency #1748

Merged
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
6 changes: 4 additions & 2 deletions build-scripts/ubuntu-2004/prepare-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ echo -e "\n\nPrepares indy-node debian package version"
sed -i -r "s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py

if [ "$distro_packages" = "debian-packages" ]; then
# Only used for the deb package builds, NOT for the PyPi package builds.
# Update the package names to match the versions that are pre-installed on the os.
# Update the package names to match the names that are available on the os.
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


# Only used for the deb package builds, NOT for the PyPi package builds.
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',
mgmgwi marked this conversation as resolved.
Show resolved Hide resolved
'timeout-decorator>=0.5.0',
'distro>=1.5.0'],
setup_requires=['pytest-runner'],
Expand Down