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

Ensure that botocore/boto3 dependency is optional #1174

Merged
merged 5 commits into from Aug 11, 2021
Merged

Conversation

Kirill888
Copy link
Member

Reason for this pull request

  • Make sure datacube can run in an environment without botocore libraries
  • Cleanup dependencies

Proposed changes

  • Remove no longer used extras flags: interactive and replicas

  • Add dependencies that are used directly but installed indirectly (pandas, botocore, kombu)

  • Update test docker

  • Add guards to test_3d test

  • Closes Missing required dependencies in default install #1172

  • Tests added / passed

  • Fully documented, including docs/about/whats_new.rst for all changes

Apps that needed `replicas` and `interactive` are no longer in the repo. Also
adding more dependencies that were missing but were pulled in because of other
dependencies (pandas is used in datacube code directly, but is also pulled in by
xarray).
Datacube does NOT declare dependency on botocore by default, it is currently
behind `s3` feature flag, so code should not import anything from botocore or
utils.aws at module level.
boto is not a default dependency, so should not be imported at module level
without import guards
@codecov
Copy link

codecov bot commented Aug 11, 2021

Codecov Report

Merging #1174 (eead051) into develop (e547153) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1174      +/-   ##
===========================================
- Coverage    93.75%   93.74%   -0.01%     
===========================================
  Files          102      102              
  Lines        10347    10347              
===========================================
- Hits          9701     9700       -1     
- Misses         646      647       +1     
Impacted Files Coverage Δ
datacube/drivers/postgres/_connections.py 88.59% <0.00%> (-0.88%) ⬇️
datacube/utils/dask.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e547153...eead051. Read the comment docs.

Copy link
Member

@omad omad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you

@omad omad merged commit 31f8e56 into develop Aug 11, 2021
@omad omad deleted the kk-dependency-fixes branch August 11, 2021 02:24
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.

Missing required dependencies in default install
2 participants