Hello Pythonistas.
When we updated pytest to 5, I've introduced python-pytest4 compatibility package to ease the transition. We are now on pytest 6.2 and python-pytest4 still exists.
However, pytest 4 has problems on Python 3.10 and I lack the enthusiasm to backport the fixes from 6.2 to 4. The most recent issue proved to be nontrivial:
https://bugzilla.redhat.com/show_bug.cgi?id=1914847
The only Fedora package pulling in pytest4 is python-pytest-relaxed, which Requires pytest < 5.
- python-invoke and python-paramiko BuildRequire python3-pytest-relaxed - python-jsonmodels and python-paramiko BuildRequire python3-invoke - many packages (Build)Require python3-paramiko
Ideas:
1) Add support of recent pytest to python-pytest-relaxed [ideal]
Issue: https://github.com/bitprophet/pytest-relaxed/issues/12
Volunteers?
2) Retire python-pytest4 and introduce python-pytest5
pytest-relaxed seem to work with pytest5 witch some patches that are available. However, this is not a long term solution, so I'd rather not spend my time on it.
3) Retire python-pytest4 and python-pytest-relaxed
This requires disabling tests in invoke and slightly patching tests of paramiko. Once pytest-relaxed supports recent pytest, we can reintroduce it.
4) Somebody else than me takes care of pytest4 and fixes it for Python 3.10
This requires long term involvement, not one time effort.
Volunteers?
On 02. 02. 21 18:09, Miro Hrončok wrote:
3) Retire python-pytest4 and python-pytest-relaxed
This requires disabling tests in invoke and slightly patching tests of paramiko. Once pytest-relaxed supports recent pytest, we can reintroduce it.
BTW the patch for paramiko exists:
https://github.com/paramiko/paramiko/pull/1665
Hello, first of all, I'm sorry about my English. My name is Kader. I am currently a student in computer engineering department from Turkey.
I use python but my knowledge of python is not perfect. Mostly I was interested in python/django. I would like to improve my knowledge of Python and help with the fourth idea.
Can you help me with how to get started?
Best regards..
Kader Miyanyedi
On 05. 02. 21 21:11, Kader Miyanyedi wrote:
Hello, first of all, I'm sorry about my English. My name is Kader. I am currently a student in computer engineering department from Turkey.
I use python but my knowledge of python is not perfect. Mostly I was interested in python/django. I would like to improve my knowledge of Python and help with the fourth idea.
Can you help me with how to get started?
Hello Kader. Thanks for your kind offer.
The ideal entry point to the fourth idea is this problem:
https://bugzilla.redhat.com/show_bug.cgi?id=1914847
My (not working) attempt to fix it is at:
https://github.com/pytest-dev/pytest/pull/8236
An alternate solution for this particular problem seem to be ignoring the error. See also https://github.com/pytest-dev/pytest/blob/4.6.x/tox.ini#L163
However, I don't think this is a best way to improve Python skills (and it has nothing to do with Django I am afraid).
If you want to get familiar with pytest internals nevertheless, I think investing time to option 1) is time better spent than option 4).
See https://github.com/bitprophet/pytest-relaxed/issues/12 and https://github.com/bitprophet/pytest-relaxed/pull/10
I guess I misrepresented myself. I know it's not about Django. I want to improve myself on python. I will look option 1, thank you.
Best Regards, Kader Miyanyedi
Given the lack of communication from the paramiko/invoke maintainers, I've just orphaned python-pytest4. If nobody picks it up, I plan to continue maintaining it in Fedora 33 and 34.
On 02. 02. 21 18:09, Miro Hrončok wrote:
Hello Pythonistas.
When we updated pytest to 5, I've introduced python-pytest4 compatibility package to ease the transition. We are now on pytest 6.2 and python-pytest4 still exists.
However, pytest 4 has problems on Python 3.10 and I lack the enthusiasm to backport the fixes from 6.2 to 4. The most recent issue proved to be nontrivial:
https://bugzilla.redhat.com/show_bug.cgi?id=1914847
The only Fedora package pulling in pytest4 is python-pytest-relaxed, which Requires pytest < 5.
- python-invoke and python-paramiko BuildRequire python3-pytest-relaxed
- python-jsonmodels and python-paramiko BuildRequire python3-invoke
- many packages (Build)Require python3-paramiko
Ideas:
- Add support of recent pytest to python-pytest-relaxed [ideal]
Issue: https://github.com/bitprophet/pytest-relaxed/issues/12
Volunteers?
- Retire python-pytest4 and introduce python-pytest5
pytest-relaxed seem to work with pytest5 witch some patches that are available. However, this is not a long term solution, so I'd rather not spend my time on it.
- Retire python-pytest4 and python-pytest-relaxed
This requires disabling tests in invoke and slightly patching tests of paramiko. Once pytest-relaxed supports recent pytest, we can reintroduce it.
- Somebody else than me takes care of pytest4 and fixes it for Python 3.10
This requires long term involvement, not one time effort.
Volunteers?
python-devel@lists.fedoraproject.org