Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
196d201966
!16 [sync] PR-14: make the test check
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-03-30 01:15:25 +00:00
zhuofeng
6690751902 make the test check
Signed-off-by: zhuofeng <zhuofeng2@huawei.com>
(cherry picked from commit a2130a0d211e734cdfe1c5e17f264a733e32ea20)
2023-03-29 16:52:11 +08:00
openeuler-ci-bot
53b204fae3
!12 Do not pack open-source test case files
From: @zhangruifang2020 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-24 08:17:18 +00:00
zhangruifang2020
f3d91614ca Do not pack open-source test case files 2022-10-24 10:49:22 +08:00
openeuler-ci-bot
f076b35e32 !9 [sync] PR-8: upgrade version to 0.17.0
Merge pull request !9 from openeuler-sync-bot/sync-pr8-master-to-openEuler-22.03-LTS-Next
2021-12-27 01:26:47 +00:00
Anonymous_Z
fd92c4e30c upgrade version to 0.17.0
(cherry picked from commit 689850de06f629a674b09416b1c76f77d8bb8ec5)
2021-12-24 18:59:35 +08:00
openeuler-ci-bot
7d51f44676 !5 use python3 replace python2 for build
From: @yeah_wang
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 10:06:13 +08:00
s17723959267
9c506b7125 use python3 replace python2 2020-10-29 11:12:59 +08:00
openeuler-ci-bot
5429746d31 !3 python-ecdsa
Merge pull request !3 from shirely/master
2020-06-17 09:18:33 +08:00
shirely16
e980369403 . 2020-06-16 17:24:33 +08:00
3 changed files with 23 additions and 36 deletions

Binary file not shown.

BIN
ecdsa-0.17.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,9 +1,8 @@
%bcond_without python2
%bcond_without python3
Name: python-ecdsa
Version: 0.14.1
Release: 2
Version: 0.17.0
Release: 3
Summary: ECDSA cryptographic signature library
License: MIT
URL: https://pypi.python.org/pypi/ecdsa
@ -20,27 +19,14 @@ the MIT license. With this library, you can quickly create keypairs (signing
and signatures are very short, making them easy to handle and incorporate
into other protocols.
%if %{with python2}
%package -n python2-ecdsa
Summary: ECDSA cryptographic signature library
BuildRequires: python2-devel python2-setuptools python2-six
Requires: python2-six
%{?python_provide:%python_provide python2-ecdsa}
%description -n python2-ecdsa
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
Digital Signature Algorithm), implemented purely in Python, released under
the MIT license. With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures. The keys
and signatures are very short, making them easy to handle and incorporate
into other protocols.
%endif
%package -n python3-ecdsa
Summary: ECDSA cryptographic signature library
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
Requires: python3-six
BuildRequires: python3-pytest
BuildRequires: python3-hypothesis
%{?python_provide:%python_provide python3-ecdsa}
%description -n python3-ecdsa
@ -57,41 +43,42 @@ rm -rf ecdsa.egg-info
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
%build
%if %{with python2}
%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s'
%endif
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%if %{with python2}
%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot
%endif
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
%check
%if %{with python2}
%_bindir/python2 setup.py test
%endif
%_bindir/python3 setup.py test
%if %{with python2}
%files -n python2-ecdsa
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python2.7/site-packages/*
%endif
%{__python3} -m pytest -v
%files -n python3-ecdsa
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/*
%exclude %_prefix/lib/python%{python3_version}/site-packages/ecdsa/test_*
%exclude %_prefix/lib/python%{python3_version}/site-packages/ecdsa/__pycache__/test_*
%files help
%defattr(-,root,root)
%doc NEWS README.md
%changelog
* Tue Jun 16 2020 hanhui<hanhui@huawei.com> - 0.14.1-2
* Wed Dec 21 2022 zhuofeng <zhuofeng2@huawei.com> - 0.17.0-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:make the test check
* Mon Oct 24 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.17.0-2
- Do not pack open-source test case files
* Sat Nov 13 2021 liudabo <liudabo1@huawei.com> - 0.17.0-1
- update version to 0.17.0
* Thu Oct 29 2020 wangye <wangye70@huawei.com> - 0.14.1-3
- use python3 replace python2 for build
* Tue Jun 16 2020 hanhui <hanhui@huawei.com> - 0.14.1-2
- fix python3.8 can not find path
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.14.1-1