mirror of
https://abf.rosa.ru/djam/python-pycryptodomex.git
synced 2025-02-23 17:12:46 +00:00
Update to 3.17.0
This commit is contained in:
parent
aaef2f2091
commit
4242855604
4 changed files with 56 additions and 3 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
pycryptodomex-3.15.0.tar.gz: 36dc2965d64e0a6311af2a330a9df6b9aab2a485
|
||||
pycryptodomex-3.17.0.tar.gz: a8ae08e587bb1f10c94bc9fae2220bd4385a9e87
|
||||
|
|
38
python-pycryptodomex-3.16.0-unittest.patch
Normal file
38
python-pycryptodomex-3.16.0-unittest.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
diff -up ./lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py.bak ./lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py
|
||||
--- ./lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py.bak 2022-11-26 17:22:56.000000000 +0100
|
||||
+++ ./lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py 2023-01-08 13:45:26.875917918 +0100
|
||||
@@ -105,13 +105,13 @@ class TestEccPoint_Ed25519(unittest.Test
|
||||
|
||||
def test_pai(self):
|
||||
pai = EccPoint(0, 1, curve="Ed25519")
|
||||
- self.failUnless(pai.is_point_at_infinity())
|
||||
+ self.assertTrue(pai.is_point_at_infinity())
|
||||
self.assertEqual(pai, pai.point_at_infinity())
|
||||
|
||||
def test_negate(self):
|
||||
negG = -self.pointG
|
||||
sum = self.pointG + negG
|
||||
- self.failUnless(sum.is_point_at_infinity())
|
||||
+ self.assertTrue(sum.is_point_at_infinity())
|
||||
|
||||
def test_addition(self):
|
||||
self.assertEqual(self.pointG + self.pointG2, self.pointG3)
|
||||
diff -up ./lib/Crypto/SelfTest/PublicKey/test_ECC_448.py.bak ./lib/Crypto/SelfTest/PublicKey/test_ECC_448.py
|
||||
--- ./lib/Crypto/SelfTest/PublicKey/test_ECC_448.py.bak 2022-11-26 17:22:56.000000000 +0100
|
||||
+++ ./lib/Crypto/SelfTest/PublicKey/test_ECC_448.py 2023-01-08 13:45:26.875917918 +0100
|
||||
@@ -105,13 +105,13 @@ class TestEccPoint_Ed448(unittest.TestCa
|
||||
|
||||
def test_pai(self):
|
||||
pai = EccPoint(0, 1, curve="Ed448")
|
||||
- self.failUnless(pai.is_point_at_infinity())
|
||||
+ self.assertTrue(pai.is_point_at_infinity())
|
||||
self.assertEqual(pai, pai.point_at_infinity())
|
||||
|
||||
def test_negate(self):
|
||||
negG = -self.pointG
|
||||
sum = self.pointG + negG
|
||||
- self.failUnless(sum.is_point_at_infinity())
|
||||
+ self.assertTrue(sum.is_point_at_infinity())
|
||||
|
||||
def test_addition(self):
|
||||
self.assertEqual(self.pointG + self.pointG2, self.pointG3)
|
11
python-pycryptodomex-3.17.0-version.patch
Normal file
11
python-pycryptodomex-3.17.0-version.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -up ./lib/Crypto/__init__.py.bak ./lib/Crypto/__init__.py
|
||||
--- ./lib/Crypto/__init__.py.bak 2023-01-28 00:30:55.000000000 +0100
|
||||
+++ ./lib/Crypto/__init__.py 2023-02-05 23:01:57.294136813 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
__all__ = ['Cipher', 'Hash', 'Protocol', 'PublicKey', 'Util', 'Signature',
|
||||
'IO', 'Math']
|
||||
|
||||
-version_info = (3, 17)
|
||||
+version_info = (3, 17, 0)
|
||||
|
||||
__version__ = ".".join([str(x) for x in version_info])
|
|
@ -31,8 +31,8 @@ with the PyCrypto library.
|
|||
%global _with_tests 1
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 3.15.0
|
||||
Release: 2
|
||||
Version: 3.17.0
|
||||
Release: 1
|
||||
Summary: A self-contained cryptographic library for Python
|
||||
Group: Development/Python
|
||||
|
||||
|
@ -45,6 +45,10 @@ Source0: https://github.com/Legrandin/pycryptodome/archive/v%{version}/%{
|
|||
Patch0: %{name}-3.15.0-use_external_libtomcrypt.patch
|
||||
# Fix documentation build with Sphinx <= 1.2, especially on EL
|
||||
Patch1: %{name}-3.7.0-sphinx.patch
|
||||
# Fix deprecated unittest methods
|
||||
Patch2: %{name}-3.16.0-unittest.patch
|
||||
# Fix version
|
||||
Patch3: %{name}-3.17.0-version.patch
|
||||
|
||||
BuildRequires: pkgconfig(libtomcrypt)
|
||||
BuildRequires: pkgconfig(libtommath)
|
||||
|
|
Loading…
Add table
Reference in a new issue