Comments (12)
from pyopenssl.
It looks like you're still installing flaky, even though it was dropped as a dependency in 510b0e5
from pyopenssl.
One sec let me check 😋
from pyopenssl.
Hmm ..
- that commit is not part of the master 24.1.0...main
- I cannot apply patch from that commit on top of 24.1.0
warning: Downloading https://github.com/pyca/pyopenssl//archive/24.1.0/python-pyOpenSSL-24.1.0.tar.gz to /home/tkloczko/rpmbuild/SOURCES/python-pyOpenSSL-24.1.0.tar.gz
warning: Downloading https://github.com/pyca/pyopenssl//commit/510b0e57.patch#/python-pyOpenSSL-Stop-using-flaky-lib-use-pytest-rerunfailures-instead.patch to /home/tkloczko/rpmbuild/SOURCES/python-pyOpenSSL-Stop-using-flaky-lib-use-pytest-rerunfailures-instead.patch
warning: source_date_epoch_from_changelog set but %changelog is missing
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4zzikU
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf pyopenssl-24.1.0
+ /usr/lib/rpm/rpmuncompress -x /home/tkloczko/rpmbuild/SOURCES/python-pyOpenSSL-24.1.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pyopenssl-24.1.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /home/tkloczko/rpmbuild/SOURCES/python-pyOpenSSL-Stop-using-flaky-lib-use-pytest-rerunfailures-instead.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
1 out of 1 hunk FAILED -- saving rejects to file setup.py.rej
3 out of 3 hunks FAILED -- saving rejects to file tests/test_crypto.py.rej
2 out of 2 hunks FAILED -- saving rejects to file tests/test_ssl.py.rej
1 out of 1 hunk FAILED -- saving rejects to file tests/util.py.rej
error: Bad exit status from /var/tmp/rpm-tmp.4zzikU (%prep)
🤔
from pyopenssl.
flaky still is used in pytest marks
[tkloczko@pers-jacek pyopenssl-24.1.0]$ grep -r flaky
tests/test_ssl.py: @pytest.mark.flaky(reruns=2)
tests/test_crypto.py: @pytest.mark.flaky(reruns=2)
tests/test_crypto.py: @pytest.mark.flaky(reruns=2)
Without installed flaky pytest fails on those marks
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
OpenSSL: b'OpenSSL 3.2.1 30 Jan 2024'
cryptography: 42.0.5
rootdir: /home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0
configfile: pyproject.toml
testpaths: tests
collected 6 items / 2 errors
========================================================================================== ERRORS ===========================================================================================
___________________________________________________________________________ ERROR collecting tests/test_crypto.py ___________________________________________________________________________
'flaky' not found in `markers` configuration option
____________________________________________________________________________ ERROR collecting tests/test_ssl.py _____________________________________________________________________________
'flaky' not found in `markers` configuration option
===================================================================================== warnings summary ======================================================================================
tests/test_crypto.py:21
tests/test_crypto.py:21
/home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0/tests/test_crypto.py:21: DeprecationWarning: sign() is deprecated. Use the equivalent APIs in cryptography.
from OpenSSL.crypto import (
tests/test_crypto.py:21
tests/test_crypto.py:21
/home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0/tests/test_crypto.py:21: DeprecationWarning: verify() is deprecated. Use the equivalent APIs in cryptography.
from OpenSSL.crypto import (
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
ERROR tests/test_crypto.py - Failed: 'flaky' not found in `markers` configuration option
ERROR tests/test_ssl.py - Failed: 'flaky' not found in `markers` configuration option
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 4 warnings, 2 errors in 0.89s ===============================================================================
from pyopenssl.
Ok so looks like remove using flaky is not fully finished. Am I right? 😋
from pyopenssl.
from pyopenssl.
No, those marks are from pytest-rerunfailures, not flaky
One sec .. 😋
from pyopenssl.
OK so pytest is OK however I see some warnings
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyOpenSSL-24.1.0-2.fc36.x86_64/usr/lib64/python3.9/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyOpenSSL-24.1.0-2.fc36.x86_64/usr/lib/python3.9/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
OpenSSL: b'OpenSSL 3.2.1 30 Jan 2024'
cryptography: 42.0.5
rootdir: /home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0
configfile: pyproject.toml
testpaths: tests
plugins: rerunfailures-12.0
collected 504 items
tests/test_crypto.py ................................................... [ 10%]
........................................................................ [ 24%]
........................................................................ [ 38%]
.......................................................... [ 50%]
tests/test_debug.py . [ 50%]
tests/test_rand.py .... [ 51%]
tests/test_ssl.py ...................................................... [ 61%]
........................................................................ [ 76%]
........................................................................ [ 90%]
............................................... [ 99%]
tests/test_util.py . [100%]
=============================== warnings summary ===============================
tests/test_crypto.py:21
/home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0/tests/test_crypto.py:21: DeprecationWarning: sign() is deprecated. Use the equivalent APIs in cryptography.
from OpenSSL.crypto import (
tests/test_crypto.py:21
/home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0/tests/test_crypto.py:21: DeprecationWarning: verify() is deprecated. Use the equivalent APIs in cryptography.
from OpenSSL.crypto import (
tests/test_ssl.py::TestContext::test_set_cipher_list[hello world:AES128-SHA1]
/home/tkloczko/rpmbuild/BUILD/pyopenssl-24.1.0/tests/test_ssl.py:499: DeprecationWarning: str for cipher_list is no longer accepted, use bytes
context.set_cipher_list(cipher_string)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================= 504 passed, 3 warnings in 7.45s ========================
from pyopenssl.
from pyopenssl.
Yes, those warnings are expected at this time
Thank you very much for your time 👍 😄
Closing
PS. Would you accept PR with filtering all pyopenssl
code over pyupgrade --py38
and bumping minimum python version to 3.8 ?🤔
(3.7 has been EOSed +halt year ago)
from pyopenssl.
No, we won't drop 37 until our users stop using it.
OK 👍
from pyopenssl.
Related Issues (20)
- Selection of PKCS12 MAC algorithm HOT 1
- MemoryError: Cannot allocate write+execute memory for ffi.callback() in ASLR enabled machine - FreeBSD HOT 2
- Latest version of the pyopenssl library giving following error HOT 16
- Implement PyOpenSSL deprecated functions as calls into Cryptography library HOT 3
- Use SSL_session_reused API HOT 1
- RemoveError: 'pyopenssl' is a dependency of conda and cannot be removed from conda's operating environment. HOT 2
- Add support for retrieving negotiated SRTP profile HOT 4
- pyopenssl-23.3.0 is incompatible with the latest cryptography 42.0.0
- [docs] Use Furo?
- TLS 1.3 Session Resumption with PSKs in pyopenssl? HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 2
- Support for `cryptography.X509.Extensions` in `pyopenssl.X509.add_extensions` etc? HOT 2
- 24.1.0: sphinx warnings `reference target not found` HOT 1
- CVE-2023-6129 Safety vulnerability HOT 1
- Some X509 Tests fail on v24.1.0 HOT 1
- Add SSL_OP_CLEANSE_PLAINTEXT to exported set of options
- Use of a Broken or Risky Cryptographic Algorithm [Snyk Vulnerability] HOT 1
- expose `SSL_set_info_callback` (i.e. `Connection.set_info_callback`)
- X.509Name.get_components() doesn't process Subject values like X.509Name.__getattr__() does with Unicode strings. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyopenssl.