Skip to content

Commit

Permalink
Skp gpgme installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Aug 11, 2024
1 parent cd18b97 commit 08f8ede
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,57 +28,57 @@ jobs:
steps:
- uses: actions/checkout@v4

# https://notmuchmail.org/releases/ notmuch-0.38.3.tar.xz
- name: Install dependencies for the gpg and notmuch python package
run: |
set -e
sudo apt-get update
sudo apt-get install -y --no-install-recommends apt-rdepends
sudo apt-get install -y --no-install-recommends \
libgpgme-dev libxapian-dev libgmime-3.0-dev libtalloc-dev swig \
python3 python3-dev \
libpython3-all-dev python3-all-dev \
$(apt-rdepends python3-gpg | grep -v "^ " |grep -v debconf | grep -v pinentry)
env:
DEBIAN_FRONTEND: noninteractive
## https://notmuchmail.org/releases/ notmuch-0.38.3.tar.xz
#- name: Install dependencies for the gpg and notmuch python package
# run: |
# set -e
# sudo apt-get update
# sudo apt-get install -y --no-install-recommends apt-rdepends
# sudo apt-get install -y --no-install-recommends \
# libgpgme-dev libxapian-dev libgmime-3.0-dev libtalloc-dev swig \
# python3 python3-dev \
# libpython3-all-dev python3-all-dev \
# $(apt-rdepends python3-gpg | grep -v "^ " |grep -v debconf | grep -v pinentry)

# env:
# DEBIAN_FRONTEND: noninteractive

# - name: Update the gpg dependency in the pyproject file
# # 1.16 is the version of gpgme that is currently available in ubuntu-latest (currently 22.04)
# run: sed -i 's|gpg>1.10.0|gpg @ https://dev.gnupg.org/source/gpgme.git@gpgme-1.16.0|' pyproject.toml
#- name: Clone the gpgme repository
# run: git clone --depth 1 --branch gpgme-1.17.0 https://dev.gnupg.org/source/gpgme.git gpgme
- name: Download gpgme
run: |
wget https://gnupg.org/ftp/gcrypt/gpgme/gpgme-$VERSION.tar.bz2 https://gnupg.org/ftp/gcrypt/gpgme/gpgme-$VERSION.tar.bz2.sig
curl https://gnupg.org/signature_key.asc | gpg --import
for k in BCEF7E294B092E28 528897B826403ADA 528897B826403ADA E98E9B2D19C6C8BD E98E9B2D19C6C8BD 549E695E905BA208 549E695E905BA208; do
gpg -k $k
done
gpg --verify gpgme-$VERSION.tar.bz2.sig gpgme-$VERSION.tar.bz2
tar -xf gpgme-$VERSION.tar.bz2
mv gpgme-$VERSION gpgme
env:
VERSION: 1.19.0

- name: Build the gpgme bindings
run: |
ls -l $(which -a python python3)
set -e
./autogen.sh
./configure --enable-maintainer-mode --enable-languages=python
make
sudo make install
working-directory: gpgme
env:
PYTHON: /usr/bin/python3

- name: debug gpgme result
run: find
working-directory: gpgme
#- name: Download gpgme
# run: |
# wget https://gnupg.org/ftp/gcrypt/gpgme/gpgme-$VERSION.tar.bz2 https://gnupg.org/ftp/gcrypt/gpgme/gpgme-$VERSION.tar.bz2.sig
# curl https://gnupg.org/signature_key.asc | gpg --import
# for k in BCEF7E294B092E28 528897B826403ADA 528897B826403ADA E98E9B2D19C6C8BD E98E9B2D19C6C8BD 549E695E905BA208 549E695E905BA208; do
# gpg -k $k
# done

# gpg --verify gpgme-$VERSION.tar.bz2.sig gpgme-$VERSION.tar.bz2
# tar -xf gpgme-$VERSION.tar.bz2

# mv gpgme-$VERSION gpgme
# env:
# VERSION: 1.19.0

#- name: Build the gpgme bindings
# run: |
# ls -l $(which -a python python3)
# set -e
# ./autogen.sh

# ./configure --enable-maintainer-mode --enable-languages=python
# make
# sudo make install
# working-directory: gpgme
# env:
# PYTHON: /usr/bin/python3

#- name: debug gpgme result
# run: find
# working-directory: gpgme

- name: clone the notmuch repository
run: git clone --depth 1 https://git.notmuchmail.org/git/notmuch notmuch
Expand Down Expand Up @@ -106,9 +106,9 @@ jobs:
run: pip install .
working-directory: notmuch/bindings/python-cffi

- name: Install gpgme python bindings
run: pip install .
working-directory: gpgme/lang/python
#- name: Install gpgme python bindings
# run: pip install .
# working-directory: gpgme/lang/python

- name: Install dependencies
run: pip install .
Expand Down

0 comments on commit 08f8ede

Please sign in to comment.