From 580da4adb97d145e5da08e1fd39ff6911dcbdc3e Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 23 Jan 2024 13:06:55 +0100 Subject: Add pari to CI. --- .github/workflows/perf.yml | 6 +++--- .github/workflows/test.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index fff2b8c..1bcd949 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -6,7 +6,7 @@ env: LLVM_CONFIG: /usr/bin/llvm-config-10 PS_PACKAGES: libps4000 libps5000 libps6000 GMP_PACKAGES: libgmp-dev libmpfr-dev libmpc-dev - OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev + OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev libpari-dev pari-gp pari-seadata jobs: perf: @@ -53,8 +53,8 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip setuptools wheel - if [ $USE_GMP == 1 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, gmp, test, dev]"; fi - if [ $USE_GMP == 0 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, test, dev]"; fi + if [ $USE_GMP == 1 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, pari, gmp, test, dev]"; fi + if [ $USE_GMP == 0 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, pari, test, dev]"; fi - name: Perf run: | make perf diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09736e4..cba342e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ env: LLVM_CONFIG: /usr/bin/llvm-config-10 PS_PACKAGES: libps4000 libps5000 libps6000 GMP_PACKAGES: libgmp-dev libmpfr-dev libmpc-dev - OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev + OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev libpari-dev pari-gp pari-seadata jobs: test: @@ -53,8 +53,8 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip setuptools wheel - if [ $USE_GMP == 1 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, gmp, test, dev]"; fi - if [ $USE_GMP == 0 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, test, dev]"; fi + if [ $USE_GMP == 1 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, pari, gmp, test, dev]"; fi + if [ $USE_GMP == 0 ]; then pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, pari, test, dev]"; fi - name: Test run: | make test -- cgit v1.3.1 From 4f8092e89ceae902182f28de7d52c66378153702 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 23 Jan 2024 13:54:23 +0100 Subject: Ditch Python 3.8. --- .github/workflows/lint.yml | 10 +++++----- .github/workflows/perf.yml | 8 ++++---- .github/workflows/test.yml | 8 ++++---- pyproject.toml | 3 +-- 4 files changed, 14 insertions(+), 15 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0f64bd9..88553e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,25 +6,25 @@ env: LLVM_CONFIG: /usr/bin/llvm-config-10 PS_PACKAGES: libps4000 libps5000 libps6000 GMP_PACKAGES: libgmp-dev libmpfr-dev libmpc-dev - OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev + OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev libpari-dev pari-gp pari-seadata jobs: lint: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: pip-${{ runner.os }}-3.9-${{ hashFiles('pyproject.toml') }} restore-keys: | pip-${{ runner.os }}- - name: Setup Python 3.9 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.10" - name: Add picoscope repository run: | curl "https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key" | sudo apt-key add diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 1bcd949..883ce6c 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -13,16 +13,16 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.8", "3.9"] + python-version: ["3.9", "3.10"] gmp: [0, 1] env: PYTHON: ${{ matrix.python-version }} USE_GMP: ${{ matrix.gmp }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: pip-${{ runner.os }}-${{ matrix.gmp }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} @@ -31,7 +31,7 @@ jobs: pip-${{ runner.os }}-${{ matrix.gmp }}- pip-${{ runner.os }}- - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Add picoscope repository diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cba342e..77aae77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,16 +13,16 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.9", "3.10"] gmp: [0, 1] env: PYTHON: ${{ matrix.python-version }} USE_GMP: ${{ matrix.gmp }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: pip-${{ runner.os }}-${{ matrix.gmp }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} @@ -31,7 +31,7 @@ jobs: pip-${{ runner.os }}-${{ matrix.gmp }}- pip-${{ runner.os }}- - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Add picoscope repository diff --git a/pyproject.toml b/pyproject.toml index 089c6c2..5342229 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,14 +19,13 @@ "License :: OSI Approved :: MIT License", "Topic :: Security", "Topic :: Security :: Cryptography", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Intended Audience :: Developers", "Intended Audience :: Science/Research" ] - requires-python = ">=3.8" + requires-python = ">=3.9" dependencies = [ "numpy==1.24.4", "scipy", -- cgit v1.3.1