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

Support Python 2.7 #199

Closed
wants to merge 2 commits into from
Closed

Conversation

SirTakobi
Copy link
Contributor

@SirTakobi SirTakobi commented Jun 21, 2023

Tests fail because we lost support for Python 2.7

The support for python 2.7 will be removed on June 19. Related issue: actions/setup-python#672

Originally posted by @StefanRijnhart in #198 (comment)

Fix the above issue, and the same issue also in Repositories using this template

@SirTakobi SirTakobi marked this pull request as draft June 21, 2023 09:55
@SirTakobi SirTakobi force-pushed the support-python-2.7 branch 4 times, most recently from 3fa96df to 9e8d501 Compare June 21, 2023 10:35
@SirTakobi
Copy link
Contributor Author

The repos using the template should be fine with the first commit, but I'm struggling with fixing the CI of the template:

  • Python 2.7 seems to be requiring a container, but in there pipx can't be installed because it requires Python3.6.
  • I duplicated the steps because didn't manage to use the container conditionally with the matrix configuration.

Any suggestion?

@SirTakobi SirTakobi marked this pull request as ready for review June 21, 2023 10:44
@SirTakobi SirTakobi force-pushed the support-python-2.7 branch 3 times, most recently from 847214f to f534ff3 Compare June 21, 2023 10:54
@yajo
Copy link
Member

yajo commented Jun 29, 2023

Shouldn't we consider dropping py2.7 support too instead?

@SirTakobi SirTakobi mentioned this pull request Jun 29, 2023
@SirTakobi
Copy link
Contributor Author

Shouldn't we consider dropping py2.7 support too instead?

I think this deserves its own issue #200

{%- endif %}
{%- if odoo_version < 11 %}
container:
image: python:2.7.18-buster
Copy link
Member

Choose a reason for hiding this comment

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

This may not be necessary since the ubunu-20.04 runner has python2 preinstalled.

with:
python-version: "3.6"
{%- elif odoo_version < 14 %}
with:
python-version: "3.8"
{%- endif %}
Copy link
Member

Choose a reason for hiding this comment

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

We should pin the python version for all Odoo versions. But that's for another PR, I guess.

Copy link
Member

Choose a reason for hiding this comment

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

It is, but the PR was closed.

#196

@pedrobaeza
Copy link
Member

@SirTakobi can you finish this one fixing the CI and attending comments?

@aleuffre
Copy link

@SirTakobi 's new account is @SirAionTech

@sbidoul
Copy link
Member

sbidoul commented Oct 28, 2023

We dropped python 2 support in #217

@sbidoul sbidoul closed this Oct 28, 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.

6 participants