Skip to content

Bump To 3.11#153

Merged
HassanAbouelela merged 7 commits into
mainfrom
3.11-upgrade
Nov 5, 2022
Merged

Bump To 3.11#153
HassanAbouelela merged 7 commits into
mainfrom
3.11-upgrade

Conversation

@HassanAbouelela
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela commented Oct 31, 2022

This PR bumps the snekbox version to the latest stable python version. Closes #152, closes #149

  • Bump version in dockerfile
  • Bump version in documentation
  • Relock dependency versions
  • Possibly look into bumping dependency versions?
  • Upgrade and test runtime packages

I'll upgrade where possible to avoid the image having to compile a bunch of packages itself, to speed up builds, however we might have to revisit in the future as I imagine a lot of packages don't have wheels yet.

@HassanAbouelela HassanAbouelela added area: dependencies Related to package dependencies and management area: packaging Related to packaging (setuptools, versioning, pyproject.toml) labels Oct 31, 2022
@HassanAbouelela
Copy link
Copy Markdown
Contributor Author

I might also go ahead and implement #149 since it's a relatively small change. I've already been using compose v2 and everything works as expected of course.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 31, 2022

Coverage Status

Coverage increased (+0.4%) to 87.158% when pulling 0919167 on 3.11-upgrade into f2f1193 on main.

Comment thread .pre-commit-config.yaml
@MarkKoz
Copy link
Copy Markdown
Contributor

MarkKoz commented Oct 31, 2022

Possibly look into bumping dependency versions?

The dependencies only have lower bounds. I think they would only need to be updated if there is a package whose metadata indicates it works with 3.10 and higher, but in practice it doesn't actually support 3.11.

Upgrade build image, configuration files, and documentation to python
3.11.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
Run `make upgrade` to relock all dependency files with pip-tools
on 3.11.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
Remove the coveralls dependency in favor of the GitHub action uploader.
The action is an official product from coveralls, and has the same
features as the package, however it reduces the project's dependencies
in favor of a simpler more stand-alone solution.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela
Copy link
Copy Markdown
Contributor Author

I think you're right on the package dep front.

@HassanAbouelela
Copy link
Copy Markdown
Contributor Author

Finished upgrading and testing runtime packages. All went fine. The following packages needed to build wheels:

forbiddenfruit, pendulum, yarl, multidict

We might want to upgrade them in the future, but overall very little building necessary

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
The compose file already uses compose v2 features, and most clients
likely already alias docker-compose to v2 under the hood. This change is
more of a formality.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela HassanAbouelela mentioned this pull request Oct 31, 2022
@HassanAbouelela HassanAbouelela marked this pull request as ready for review October 31, 2022 19:37
One of the GitHub action files was failing validation due to an
unindented block. It is unclear why this failure started now.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz left a comment

Choose a reason for hiding this comment

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

Thanks!

@HassanAbouelela HassanAbouelela merged commit a2d752a into main Nov 5, 2022
@HassanAbouelela HassanAbouelela deleted the 3.11-upgrade branch November 5, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dependencies Related to package dependencies and management area: packaging Related to packaging (setuptools, versioning, pyproject.toml)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python 3.11 support Use modern Docker Compose command

3 participants