File tree 5 files changed +10
-6
lines changed
build-scripts/ubuntu-2004
5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 55
55
libgflags-dev
56
56
pip install packaging \
57
57
importlib_metadata==3.10.1 \
58
- indy-plenum==1.13.1rc3 \
58
+ indy-plenum==1.13.1.rc3 \
59
59
pyzmq==22.3.0
60
60
- name : Prepare package and set version
61
61
run : |
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ function build_from_pypi {
49
49
SCRIPT_PATH=" ${BASH_SOURCE[0]} "
50
50
pushd ` dirname ${SCRIPT_PATH} ` > /dev/null
51
51
52
+ build_from_pypi importlib-metadata 3.10.1
52
53
build_from_pypi timeout-decorator
53
54
build_from_pypi distro 1.7.0
54
55
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ cp -r "${INPUT_PATH}/." "${TMP_DIR}"
15
15
cd " ${TMP_DIR} /build-scripts/ubuntu-2004"
16
16
./prepare-package.sh " ${TMP_DIR} " indy_node " ${VERSION} " debian-packages
17
17
18
+ echo " Fetching the indy-plenum version from setup.py and converting it to deb format ..."
19
+ plenumDebVersion=$( grep -oP " indy-plenum==\d+.\d+.\d+((-|.)?rc\d+)?" ${TMP_DIR} /setup.py | grep -oP " \d+.\d+.\d+((-|.)?rc\d+)?" | sed ' s/\./\~/3' )
20
+ echo " plenumDebVersion: ${plenumDebVersion} "
18
21
19
22
sed -i " s/{package_name}/${PACKAGE_NAME} /" " prerm"
20
23
@@ -29,6 +32,8 @@ fpm --input-type "python" \
29
32
--depends at \
30
33
--depends iptables \
31
34
--depends libsodium23 \
35
+ --depends " indy-plenum(=${plenumDebVersion} )" \
36
+ --python-disable-dependency " indy-plenum" \
32
37
--no-python-fix-dependencies \
33
38
--maintainer
" Hyperledger <[email protected] >" \
34
39
--before-install " preinst_node" \
Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ if [ "$distro_packages" = "debian-packages" ]; then
33
33
sed -i " s~timeout-decorator~python3-timeout-decorator~" setup.py
34
34
sed -i " s~distro~python3-distro~" setup.py
35
35
sed -i " s~importlib-metadata=~python3-importlib-metadata=~" setup.py
36
-
37
- # Only used for the deb package builds, NOT for the PyPi package builds.
38
- echo -e " \n\nPrepares indy-plenum debian package version"
39
- sed -i -r " s~indy-plenum==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-plenum==\1\~\3~" setup.py
40
36
41
37
echo " Preparing config files"
42
38
GENERAL_CONFIG_DIR=" \/etc\/indy"
Original file line number Diff line number Diff line change 55
55
(BASE_DIR , ['data/nssm_original.exe' ])
56
56
)],
57
57
58
- install_requires = ['indy-plenum==1.13.1rc3' ,
58
+ # Update ./build-scripts/ubuntu-xxxx/build-3rd-parties.sh when this list gets updated.
59
+ # - Excluding changes to indy-plenum.
60
+ install_requires = ['indy-plenum==1.13.1.rc3' ,
59
61
# importlib-metadata needs to be pinned to 3.10.1 because from v4.0.0 the package
60
62
# name ends in python3-importlib-metadata_0.0.0_amd64.deb
61
63
# see also build-scripts/ubuntu-2004/build-3rd-parties.sh
You can’t perform that action at this time.
0 commit comments