Skip to content
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

refactor(has_pkg): introduce strict flag #106

Merged
merged 1 commit into from
Aug 12, 2023

Conversation

wpbonelli
Copy link
Contributor

@wpbonelli wpbonelli commented Aug 12, 2023

  • add strict param to has_pkg() toggling whether to try to import the pkg or only check metadata
    • always invalidate/refresh the cache if strict is on
  • add pytest-virtualenv to test dependencies, test with/without strict
    • use --dist loadfile with xdist in CI for compatibility
  • motivated by ci: smoke test with/out optional dependencies, mark more tests modflowpy/flopy#1918, tests marked with requires_pkg could fail if a pkg has been installed but is missing dependencies

@wpbonelli wpbonelli force-pushed the has-pkg branch 3 times, most recently from 9adf9f3 to c917bce Compare August 12, 2023 16:35
* add strict param to has_pkg() toggling whether to try to import the pkg or only check metadata
* always invalidate/refresh the cache if strict is on
* add pytest-virtualenv to test dependencies, test with/without strict
* use --dist loadfile with xdist in CI for compatibility
* use strict=True for requires_pkg marker
@wpbonelli wpbonelli merged commit 03ea041 into MODFLOW-USGS:develop Aug 12, 2023
@wpbonelli wpbonelli deleted the has-pkg branch August 12, 2023 16:47
This was referenced Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant