-
Notifications
You must be signed in to change notification settings - Fork 343
[python] drop python 3.8 #6821
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
[python] drop python 3.8 #6821
Changes from all commits
74b587e
0540245
6a57e15
6314cc9
ade0317
42adc6f
ef2fd1c
fc52c0e
8bccd79
d46e660
354c349
ddf30da
d9b330c
8c3c633
ff2834b
3aa513b
a810ecc
0b7c690
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ import { patchPythonPath } from "./system-requirements.js"; | |
|
|
||
| export async function runPython3(...args: string[]) { | ||
| const command = await patchPythonPath(["python", ...args], { | ||
| version: ">=3.8", | ||
| version: ">=3.9", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| environmentVariable: "AUTOREST_PYTHON_EXE", | ||
| }); | ||
| cp.execSync(command.join(" "), { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| import { runCommand } from "./utils.js"; | ||
|
|
||
| runCommand("black . --config ./eng/scripts/ci/pyproject.toml", "black"); | ||
| runCommand("black", ["generator/", "eng/", "--config", "./eng/scripts/ci/pyproject.toml"]); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # global configurations | ||
| [mypy] | ||
| python_version = 3.8 | ||
| python_version = 3.9 | ||
|
|
||
|
|
||
| # module level configurations | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [MASTER] | ||
| py-version=3.8 | ||
| py-version=3.9 | ||
| ignore-patterns=test_*,conftest,setup | ||
| reports=no | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.