From 9d3eb1163e15602f6faf1b63660c785f818c30bb Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Thu, 2 Sep 2021 12:34:12 +0200 Subject: [PATCH 1/2] provide PARI_SIGINT_block/pending address for cysignals --- VERSION | 2 +- cypari2/paridecl.pyx | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 cypari2/paridecl.pyx diff --git a/VERSION b/VERSION index eca07e4c..a6eece0c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.2 +2.1.3b1 diff --git a/cypari2/paridecl.pyx b/cypari2/paridecl.pyx new file mode 100644 index 00000000..92bc9bcc --- /dev/null +++ b/cypari2/paridecl.pyx @@ -0,0 +1,33 @@ +""" +Expose ``PARI_SIGINT_block`` and ``PARI_SIGINT_pending`` for runtime use of ``cysignals``. + +AUTHORS: + +- Jonathan Kliem (2021-09-02) +""" +#***************************************************************************** +# Distributed under the terms of the GNU General Public License (GPL) +# as published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# http://www.gnu.org/licenses/ +#***************************************************************************** + +def _PARI_SIGINT_block_pt(): + """ + Return the address of ``PARI_SIGINT_block``. + + .. WARNING:: + + Changing this variable will change PARI's signal handling. + """ + return &PARI_SIGINT_block + +def _PARI_SIGINT_pending_pt(): + """ + Return the address of ``PARI_SIGINT_pending``. + + .. WARNING:: + + Changing this variable will change PARI's signal handling. + """ + return &PARI_SIGINT_pending From 0bf0a678c6f0f0c865f89a43da1b3f84922cfdc7 Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Mon, 22 Nov 2021 12:56:34 +0100 Subject: [PATCH 2/2] allow to run manually --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b3d1a97..fffbd4f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,8 @@ on: push: tags: - '*' + workflow_dispatch: + # Allow to run manually jobs: build: