Conda cannot install pytest 7 and pytest-httpx 0.20.0
See original GitHub issueenvironment.yml
name: api
channels:
- conda-forge
dependencies:
- python==3.9
- fastapi>=0.73.0
- uvicorn[standard]>=0.17.4
- SQLAlchemy>=1.4.31
- psycopg2>=2.9.3
- httpx>=0.22.0
- alembic>=1.7.6
- SQLAlchemy-Utils>=0.38.2
- pre-commit>=2.9.3
- pytest>=7.0.1
- requests>=2.27.1
- pytest-httpx>=0.20.0 # conflicts begin when adding this package.
❯ conda env update
Collecting package metadata (repodata.json): done
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation (sqlalchemy):
- alembic[version='>=1.7.6'] -> sqlalchemy[version='>=1.3.0']
- httpx[version='>=0.22.0']
- psycopg2[version='>=2.9.3']
- pytest-httpx[version='>=0.20.0'] -> httpx=0.22
- pytest-httpx[version='>=0.20.0'] -> pytest=6
- pytest[version='>=7.0.1']
- requests[version='>=2.27.1']
- sqlalchemy-utils[version='>=0.38.2'] -> sqlalchemy[version='>=1.0']
- sqlalchemy[version='>=1.4.31']
From this CHANGELOG entry it appears as though pytest 7 should be supported.
I’m pretty new to python package management, so I’m not sure if I’m doing something dumb. Also since we’re using conda-forge, I checked that artifact repository and I see 0.20 was uploaded 19 days ago, so I’m assuming they have the most up-to-date version.
If I switch from
pytest>=7.0.1
=> pytest>=6.2.5
❯ conda env update
Collecting package metadata (repodata.json): done
Solving environment: done
Downloading and Extracting Packages
pytest-httpx-0.20.0 | 15 KB | ################################################################################################################################### | 100%
pytest-6.2.5 | 434 KB | ################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Any pointers would be appreciated.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
pytest from pip and conda-forge behaves differently on ...
This is a tricky issue. It happened on appveyor. I cannot reproduce it locally, but I'll try my best to describe the issue....
Read more >Py.test command not found, but library is installed
I have installed pytest via pip install pytest . I am able to import the library in Python as well. The problem is...
Read more >pytest-httpx
Send responses to HTTPX using pytest ... Version 1.0.0 will be released once httpx is considered as stable (release of 1.0.0). However, current...
Read more >Get Started — pytest documentation
Run the following command in your command line: pip install -U pytest. Check that you installed the correct version: $ pytest --version pytest...
Read more >Error when updating conda packages: RemoveError
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating ... conda install -c anaconda setuptools.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry responding a bit late but I can confirm conda/mamba seem happy to create environments with pytest 7 and pytest-httpx 0.20
Thanks a lot for your support @owenlamont !