From 66d0d74a331af339715e1e70274a45f775817f7f Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 8 Apr 2024 17:38:30 +0200 Subject: [PATCH 1/4] add release notes for 0.19.0 release --- NEWS | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/NEWS b/NEWS index cba5f930..5f27c168 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,34 @@ +* Release 0.19.0 (08 Apr 2024) + +New API: +* `to_ssh` in `VerifyingKey` and `SigningKey`, supports Ed25519 keys only + (Pablo Mazzini) + +New features: +* Support for twisted Brainpool curves + +Doc fix: +* Fix curve equation in glossary +* Documentation for signature encoding and signature decoding functions + +Maintenance: +* Dropped official support for 3.3 and 3.4 (because of problems running them + in CI, not because it's actually incompatible; support for 2.6 and 2.7 is + unaffected) +* Fixes aroung hypothesis parameters +* Officially support Python 3.11 and 3.12 +* Small updates to test suite to make it work with 3.11 and 3.12 and new + releases of test dependencies +* Dropped the internal `_rwlock` module as it's unused +* Added mutation testing to CI, lots of speed-ups to the test suite + to make it happen +* Removal of unnecessary `six.b` literals (Alexandre Detiste) + +Deprecations: +* `int_to_string`, `string_to_int`, and `digest_integer` from `ecdsa.ecdsa` + module are now considered deprecated, they will be removed in a future + release + * Release 0.18.0 (09 Jul 2022) New API: From c56030efe0044c6deb8a5f815eabb590e574fc41 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 8 Apr 2024 19:29:38 +0200 Subject: [PATCH 2/4] make coveralls submission work with py2.6 again --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8568f31f..b8636078 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -374,7 +374,13 @@ jobs: COVERALLS_FLAG_NAME: ${{ matrix.name }} COVERALLS_PARALLEL: true COVERALLS_SERVICE_NAME: github - run: coveralls + PY_VERSION: ${{ matrix.python-version }} + run: | + if [[ $PY_VERSION == "2.6" ]]; then + COVERALLS_SKIP_SSL_VERIFY=1 coveralls + else + coveralls + fi coveralls: name: Indicate completion to coveralls.io From 6e7adff153ad877747f56771c842a94bca65ede9 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 8 Apr 2024 19:42:52 +0200 Subject: [PATCH 3/4] don't check rate if no tests executed --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8636078..ba4238c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -268,7 +268,8 @@ jobs: - name: Install mutation testing dependencies if: ${{ matrix.mutation == 'true' }} run: | - pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip + #pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip + pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip pip install pytest-timeout - name: Display installed python package versions run: pip list @@ -417,7 +418,8 @@ jobs: key: sessions-${{ github.sha }} - name: Install cosmic-ray run: | - pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip + #pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip + pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip pip install pytest-timeout - name: Install dependencies run: | @@ -493,7 +495,8 @@ jobs: - name: Install build dependencies run: | pip install -r build-requirements.txt - pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip + #pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip + pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip pip install pytest-timeout - name: Run mutation testing run: | @@ -641,7 +644,8 @@ jobs: key: sessions-${{ github.sha }}-19-done - name: Install cosmic-ray run: | - pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip + #pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip + pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip pip install pytest-timeout - name: Install dependencies run: | From 217735bb28dd30c12619564da8b0ec7022ec0a95 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 8 Apr 2024 20:37:59 +0200 Subject: [PATCH 4/4] allow early exit from worker processes when running mutation testing --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba4238c0..36d9445d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -503,7 +503,11 @@ jobs: cp sessions/session-${{ matrix.name }}.sqlite session.sqlite systemd-run --user --scope -p MemoryMax=2G -p MemoryHigh=2G cosmic-ray exec cosmic-ray.toml session.sqlite & cosmic_pid=$! + sleep 1 for i in $(seq 1 10); do + if ! kill -s 0 $cosmic_pid; then + break + fi echo $i sleep 60 done