playwright-pytest icon indicating copy to clipboard operation
playwright-pytest copied to clipboard

[Feature]: Make pytest-playwright available on conda

Open marimeireles opened this issue 3 years ago • 11 comments
trafficstars

Hey all, Thanks for the work on playwright. I'm encountering this issue when trying to run it with both python 3.9 and 3.10. I wonder if it's some interaction with conda packages solvers?

Here's the full error:

(pyscript)  ✘  ~/dev/pyscript/pyscriptjs   main ±  pip install pytest-playwright
Collecting pytest-playwright
  Using cached pytest_playwright-0.3.0-py3-none-any.whl (10 kB)
ERROR: Could not find a version that satisfies the requirement playwright>=1.18 (from pytest-playwright) (from versions: none)
ERROR: No matching distribution found for playwright>=1.18 (from pytest-playwright)

If I try to specify playwright versions or just download any playwright, I get:

(pyscript)  ✘  ~/dev/pyscript/pyscriptjs   main ±  pip install playwright

ERROR: Could not find a version that satisfies the requirement playwright (from versions: none)
ERROR: No matching distribution found for playwright

Which python: /Users/user/miniconda3/envs/pyscript/bin/python

If you're interested I can create a recipe for conda-forge and maintain it.

Cheers.

marimeireles avatar Jul 29 '22 20:07 marimeireles

Nothing rings a bell to me, as for me it works - however maybe try to create new, clean virtual env?

aspenboy avatar Jul 29 '22 20:07 aspenboy

Which operating system are you using? (My guess is that you are using an unsupported one)

mxschmitt avatar Jul 29 '22 22:07 mxschmitt

Well, the pypi website says it's OS independent, where can I see which are the supported OSs? And I'm using an M1, osx. Thanks for the replies!

marimeireles avatar Jul 29 '22 22:07 marimeireles

I tried with a clean environment... But I'll try again starting with playwright and see if it solves my issue, thanks!

marimeireles avatar Jul 29 '22 22:07 marimeireles

K, this did the trick for me. I had to run playwright install by the end of it, but seems like everything is working fine. I do believe it's some conflict between different solvers, because I have to use both pip and conda. I know microsoft have their own conda channel, but is it possible to also host a version of pytest-playwright on conda-forge? Thanks for the help here! (Feel free to close it)

marimeireles avatar Jul 29 '22 23:07 marimeireles

Only Playwright is for now.

macos m1 is definitely supported!

mxschmitt avatar Jul 30 '22 06:07 mxschmitt

Internal note: Was looking into supporting it, since playwright is published under the microsoft conda channel, pytest-playwright also needs to be published there, which requires manually pushing logic.

Marking it as p3 for now since its more effort compared to conda-forge.

mxschmitt avatar Aug 01 '22 08:08 mxschmitt

Hey @mxschmitt, thanks for the reply :) I don't understand what you mean with more effort? I did a lot of conda-forge work in the past and I'm available to help if you need! Cheers and thank you.

marimeireles avatar Aug 03 '22 13:08 marimeireles

Hey @mxschmitt, thanks for the reply :) I don't understand what you mean with more effort? I did a lot of conda-forge work in the past and I'm available to help if you need! Cheers and thank you.

I think the problem is that Playwright is under the Microsoft channel and forge is an own channel.

https://anaconda.org/Microsoft/playwright

mxschmitt avatar Aug 03 '22 13:08 mxschmitt

Hum, I see. Yeah that's true, it's not possible to have requirements coming from outside conda-forge. Thanks!

marimeireles avatar Aug 03 '22 15:08 marimeireles

I concur that it would be nice to have this package available on conda (whatever the channel!), and that is is possible to automate publishing packages to a conda channel so that it's not a manual step part of the release process.

maximlt avatar Aug 10 '22 12:08 maximlt