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

Upgrade to Python 3.11 #754

Merged
merged 27 commits into from
Oct 10, 2023
Merged

Upgrade to Python 3.11 #754

merged 27 commits into from
Oct 10, 2023

Conversation

dmichaels-harvard
Copy link
Contributor

  • Upgrade to Python 3.11.
  • Changed pyyaml version to ^6.0.1.
  • Updated boto versions.
  • Removed types/access_key.py and schemas/access_key.json as the ones in snovault are sufficient.
  • Added generate-local-access-key script (from snovault) to pyproject.toml;
    orignally created for smaht-portal since early in development no way to
    create an access-key normally using the UI; but generall useful/convenient.
  • Added generate-local-access-key script (defined in snovault).
  • Added view-local-object script (defined in snovault).

Copy link
Contributor

@willronchetti willronchetti left a comment

Choose a reason for hiding this comment

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

Same comment as in Fourfront - need to bump the Docker base image and deploy/test in devtest

Copy link
Contributor

@netsettler netsettler left a comment

Choose a reason for hiding this comment

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

My comments are not blocking.

@@ -3,7 +3,7 @@
import io
import json
import logging
from collections import Mapping
from collections.abc import Mapping
Copy link
Contributor

Choose a reason for hiding this comment

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

Bleah. Yeah, this is fine. But we see Python 3.11 makes an incompatible change. Sigh. (They might console themselves that they announced it earlier, but not as a 3.0 change. It only had compatibility support added in 3.4.) Once again we see semantic versioning apparently means nothing in Python. :(

pyproject.toml Outdated
@@ -33,13 +33,16 @@ classifiers = [
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
Copy link
Contributor

Choose a reason for hiding this comment

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

This line (about 3.7) should be deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oversight, thanks, deleted.

]

[tool.poetry.dependencies]
python = ">=3.8.1,<3.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we definitely mean 3.8.1 or did you just change the 7 to an 8? Is it not just >=3.8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't change that from master, it used to be: python = ">=3.8.1,<3.10" ... not sure why it would be 3.8.1 ...

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I recall from a long time ago 3.8.1 has some specific issues with cgap-portal IRC hence the explicit exclusion

Copy link
Contributor

@willronchetti willronchetti left a comment

Choose a reason for hiding this comment

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

Approving now since integrated testing looks good

@dmichaels-harvard dmichaels-harvard merged commit 39251e4 into master Oct 10, 2023
4 checks passed
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.

3 participants