Skip to content

[python] drop python 3.8 #6821

Merged
iscai-msft merged 18 commits intomainfrom
drop-python-3.8
Apr 8, 2025
Merged

[python] drop python 3.8 #6821
iscai-msft merged 18 commits intomainfrom
drop-python-3.8

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Apr 2, 2025

  1. drop python 3.8
  2. fix "format" command
  3. open lint check for python source code of emitter in CI
  4. fix some pylint issue

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Apr 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 2, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc msyyc requested a review from m-nash as a code owner April 2, 2025 03:05
@msyyc msyyc changed the title [python] drop python 3.8 [python] drop python 3.8 (DO NOT MERGE FOR NOW) Apr 2, 2025
@msyyc msyyc mentioned this pull request Apr 2, 2025
3 tasks
@msyyc msyyc changed the title [python] drop python 3.8 (DO NOT MERGE FOR NOW) [python] drop python 3.8 Apr 8, 2025
@iscai-msft iscai-msft enabled auto-merge April 8, 2025 16:04
@iscai-msft iscai-msft added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit dd55fbd Apr 8, 2025
47 checks passed
@iscai-msft iscai-msft deleted the drop-python-3.8 branch April 8, 2025 16:49
export async function runPython3(...args: string[]) {
const command = await patchPythonPath(["python", ...args], {
version: ">=3.8",
version: ">=3.9",
Copy link
Member

@lmazuel lmazuel Apr 8, 2025

Choose a reason for hiding this comment

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

Technically speaking, using 3.8+ to generate and generating 3.8+ are two different things. For instance, we could technically have a generator written in Python 2.7, that generates Python 3.12 code :). In other words, the fact that our generator is written in Python is an implementation detail.

That being said, it's fair to ask people to have 3.8+, because it allows us as well to write the generator with more recent syntax.

Copy link
Member

@lmazuel lmazuel left a comment

Choose a reason for hiding this comment

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

Nicee to see how we can simplify our code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants