Skip to content

Test conflict between pytest and flask #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bilalshaikh42 opened this issue Aug 22, 2019 · 7 comments
Closed

Test conflict between pytest and flask #1

bilalshaikh42 opened this issue Aug 22, 2019 · 7 comments
Labels
bug Something isn't working

Comments

@bilalshaikh42
Copy link
Contributor

Pytest 5.0.0 (and above?) have a conflict with flask 1.04 and below. Look at the requirements for karr_lab_build_utils and this package to diagnose.
Perhaps need to explicitly define test requirements to use a different version of flask or pytest

pytest-dev/pytest#5532

@bilalshaikh42 bilalshaikh42 added the bug Something isn't working label Aug 22, 2019
@jonrkarr
Copy link
Member

jonrkarr commented Aug 22, 2019 via email

@bilalshaikh42
Copy link
Contributor Author

Apparently, this was already fixed in connexion by upgrading flask >1.04. Tests are passing locally, but not on circleci. Circle ci is using pytest 5.01 for this build, so flask must be the outdated package

spec-first/connexion#991

@jonrkarr
Copy link
Member

jonrkarr commented Aug 22, 2019 via email

@bilalshaikh42
Copy link
Contributor Author

While the current connexion package requires flask > 1.04 it seems that the circle build somehow thinks it only needs >0.10. Adding the explicit requirement does make circle update, but it might be worth looking into why it didn't happen automatically.
From circle:
Requirement already satisfied, skipping upgrade: connexion in /usr/local/lib/python3.6/site-packages (from datanator-rest-api==0.0.1) (2.3.0) #this should require flask>=1.0.4

Requirement already satisfied, skipping upgrade: flask>=0.10.1 in /usr/local/lib/python3.6/site-packages (from connexion->datanator-rest-api==0.0.1) (1.0.2) #however, pip believes it only needs> 0.10.1 which was changed in the connexion issue refrences above

@bilalshaikh42
Copy link
Contributor Author

While the issue with flask does resolve with the explicit requirement, there are now other collection failures. I'll keep experimenting

@jonrkarr
Copy link
Member

jonrkarr commented Aug 22, 2019 via email

@bilalshaikh42
Copy link
Contributor Author

Adding flask package version to test requirement file before requirements that use flask a s sub dependency resolved issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants