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

Fix Python versions #587

Merged
merged 8 commits into from
Nov 10, 2023
Merged

Fix Python versions #587

merged 8 commits into from
Nov 10, 2023

Conversation

SpacemanPaul
Copy link
Contributor

Updated supported Python version to >= 3.9 throughout.
Updated test conda environment to Python 3.9
Pinned odc_apps_dc_tools to Python 3.9-3.10 as per opendatacube/datacube-core#1511

@@ -46,7 +46,7 @@ dependencies:
- pytest-httpserver
- pytest-cov
- pytest-timeout
- moto
- moto[server]
Copy link
Member

Choose a reason for hiding this comment

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

not valid conda syntax, this only works with pip, unless something changed recently in conda

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I had a feeling that was the case. I've installed conda and I'll deal with it tomorrow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's the moto version that's the issue - conda is pulling in an ancient version for some reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol. I just removed the ancient pin on aiobotocore and it built in 1/5 the time and works fine.

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Attention: 124 lines in your changes are missing coverage. Please review.

Comparison is base (8fc9742) 56.22% compared to head (c5638c4) 66.55%.
Report is 110 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #587       +/-   ##
============================================
+ Coverage    56.22%   66.55%   +10.32%     
============================================
  Files           47       65       +18     
  Lines         4016     5367     +1351     
============================================
+ Hits          2258     3572     +1314     
- Misses        1758     1795       +37     
Files Coverage Δ
apps/cloud/odc/apps/cloud/__init__.py 100.00% <100.00%> (ø)
apps/cloud/odc/apps/cloud/redrive_to_queue.py 85.71% <100.00%> (ø)
apps/dc_tools/odc/apps/dc_tools/__init__.py 100.00% <100.00%> (ø)
apps/dc_tools/odc/apps/dc_tools/_version.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_add_update_products.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_cop_dem_to_dc.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_esa_worldcover_to_dc.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_fs_to_dc.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_s3_to_dc.py 100.00% <100.00%> (ø)
apps/dc_tools/tests/test_sns_publishing.py 100.00% <100.00%> (ø)
... and 52 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SpacemanPaul SpacemanPaul marked this pull request as ready for review November 9, 2023 23:27
apps/dc_tools/setup.cfg Outdated Show resolved Hide resolved
@@ -49,7 +49,6 @@ dependencies:
- moto
- deepdiff


# for docs
- sphinx
Copy link
Member

Choose a reason for hiding this comment

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

Don't do it now, but, omg, testing everywhere is such a mess. I'm sure we don't need sphinx here...

@@ -28,7 +28,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
Copy link
Member

Choose a reason for hiding this comment

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

At some point, we should use the GitHub actions matrix to parameterise this and test more than a single Python version.

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.

Thanks Paul. Other than the <=3.10 restriction on Python this looks okay.

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.

ty

@SpacemanPaul SpacemanPaul merged commit f3d143b into develop Nov 10, 2023
8 checks passed
@SpacemanPaul SpacemanPaul deleted the pythonvers branch November 10, 2023 00:42
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.

4 participants