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

ardupilotwaf: require minimum Python 3.8 #29490

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tpwrules
Copy link
Contributor

Makes the comment honest.

Requires upgrading Cygwin to Python 3.9. Python 3.12 is available but it doesn't have all our packages. I think we will have to modernize a bit more.

Python 3.12 is also available, but some packages are not.
Python 3.12 is also available, but some packages are not.
Makes the comment accurate. Python 3.8 is shipped in Ubuntu 20.04 focal
by default so we can't move past until that goes EOL.
@peterbarker
Copy link
Contributor

Why is it that we want to move forward with our minimum Python version?

Doing so is likely to break a bunch of people's environments.

@tpwrules
Copy link
Contributor Author

tpwrules commented Mar 10, 2025

I'm mostly proposing that we make the comment correct. If we want to keep 3.6 the minimum I suppose that's okay, but it has not seen a release in nearly four years and is nearly ten years old.

We already tried the move a couple years ago (which is where the comment came from) but it had to be reverted because Ubuntu 18.04 was still on life support. Now that that's gone let's move.

Making 3.8 the minimum also does make it easier to test. We e.g. can't CI test 3.6 compatibility anymore.

@tpwrules
Copy link
Contributor Author

Here are your previous thoughts: #23287 (comment) :)

@timtuxworth
Copy link
Contributor

Why is it that we want to move forward with our minimum Python version?

Doing so is likely to break a bunch of people's environments.

I don't understand why this is even a question Peter, like my mother always used to say, if "a bunch of people" jumped off a cliff would you follow them?

@@ -160,7 +160,7 @@ jobs:

- uses: cygwin/cygwin-install-action@v5
with:
packages: cygwin64 gcc-g++=10.2.0-1 ccache python37 python37-future python37-lxml python37-pip python37-setuptools python37-wheel git procps gettext
packages: cygwin64 gcc-g++=10.2.0-1 ccache python39 python39-future python39-lxml python39-pip python39-setuptools python39-wheel git procps gettext
Copy link
Contributor

Choose a reason for hiding this comment

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

needs testing the binary

@@ -548,7 +548,7 @@ def configure(cfg):

# require python 3.8.x or later
cfg.load('python')
cfg.check_python_version(minver=(3,6,9))
cfg.check_python_version(minver=(3,8,0))
Copy link
Contributor

@tridge tridge Mar 11, 2025

Choose a reason for hiding this comment

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

maybe if version_is_3.6, print big warning, sleep 5 seconds so user can see it

Copy link
Contributor

Choose a reason for hiding this comment

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

< 3.8?

@peterbarker
Copy link
Contributor

Incidentally, if you can show we're currently broken on 3.6.9 / 3.7.0 we could probably merge this with the 3.8.0 requirement.

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.

5 participants