Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .chronus/changes/bump-2024-12-25-2024-11-25-8-10-41.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: internal
packages:
- "@autorest/python"
- "@azure-tools/typespec-python"
---

Bump @typespec/http-client-python 0.5.0
9 changes: 1 addition & 8 deletions eng/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
azure-pylint-guidelines-checker==0.0.8
colorama==0.4.6
debugpy==1.8.9
pytest==8.3.4
tox==4.23.2
coverage==7.6.9
black==24.10.0
setuptools==73.0.1
-r ../packages/typespec-python/dev_requirements.txt
Copy link
Member Author

@msyyc msyyc Dec 26, 2024

Choose a reason for hiding this comment

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

Although it is a little weird to install dependencies of subdirectory, we only need to update dependencies in one file after this change which is easier to maintain in the future.

10 changes: 3 additions & 7 deletions eng/pipelines/ci-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ steps:
displayName: "Install Node.js 18.x"
inputs:
versionSpec: "18.x"

- task: UsePythonVersion@0
displayName: "Use Python 3.11"
displayName: "Use Python $(PythonVersion)"
inputs:
versionSpec: 3.11
versionSpec: $(PythonVersion)

- script: npm install -g pnpm@9.5.0
displayName: Install pnpm 9.5.0
Expand Down Expand Up @@ -125,11 +126,6 @@ steps:
workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/autorest.python/test
condition: and(succeeded(), ${{ parameters.regenerate }}, ${{ parameters.checkChange }})

- task: UsePythonVersion@0
displayName: "Use Python $(PythonVersion)"
inputs:
versionSpec: $(PythonVersion)

- script: |
pnpm pack
AbsolutePkgPath=$(find "$(pwd)" -name "autorest-python-*" -maxdepth 1)
Expand Down
5 changes: 0 additions & 5 deletions eng/requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions packages/autorest.python/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
-e .
-e ./generator
-r ../../eng/requirements.txt
-r ../../eng/dev_requirements.txt
ptvsd==4.3.2
types-PyYAML==6.0.12.8
invoke==2.2.0
2 changes: 1 addition & 1 deletion packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "~0.4.4",
"@typespec/http-client-python": "~0.5.0",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand Down
12 changes: 0 additions & 12 deletions packages/autorest.python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
black==24.4.0
click==8.1.3
docutils==0.19
Jinja2==3.1.4
m2r2==0.3.3
MarkupSafe==2.1.2
mistune==0.8.4
pathspec==0.11.1
platformdirs==3.2.0
PyYAML==6.0.1
tomli==2.0.1
setuptools==69.2.0
json-rpc==1.14.0
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed dependencies are already declared in pygen.

4 changes: 2 additions & 2 deletions packages/autorest.python/scripts/eng/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ ignore=_generated,samples,examples,test,tests,doc,.tox,generated_samples
[MESSAGES CONTROL]

# Add enable for useless disables
enable=useless-suppression
# enable=useless-suppression
Copy link
Member Author

Choose a reason for hiding this comment

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

I fix the CI to enable pylint for autorest.python then some tiny lint issues are reporeted. I disable some specific items and we could fix them in another PR.


# For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html'
# locally-disabled: Warning locally suppressed using disable-msg
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
# too-many-lines: Due to code generation many files end up with too many lines.
# Let's black deal with bad-continuation
disable=missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin,unknown-option-value
disable=missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin,unknown-option-value,useless-suppression,too-many-instance-attributes

[FORMAT]
max-line-length=120
Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def main():
venv_context = env_builder.context

python_run(venv_context, "pip", ["install", "-U", "pip"])
python_run(venv_context, "pip", ["install", "-r", f"{_ROOT_DIR}/requirements.txt"])
python_run(venv_context, "pip", ["install", "-e", f"{_ROOT_DIR}/generator"])


Expand Down
2 changes: 1 addition & 1 deletion packages/autorest.python/test/azure/legacy/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ skipsdist=True
passenv=*
deps=
-r requirements.txt
-r ../../../../../eng/requirements.txt
-r ../../../../../eng/dev_requirements.txt
commands=
pytest --cov=Expected

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ skipsdist=True
passenv=*
deps=
-r requirements.txt
-r ../../../../../eng/requirements.txt
-r ../../../../../eng/dev_requirements.txt
commands=
pytest --cov=Expected

[testenv:lint]
deps=
-r requirements.txt
-r ../../../../../eng/requirements.txt
-r ../../../../../eng/dev_requirements.txt
commands =
pip install azure-pylint-guidelines-checker==0.4.1 --index-url="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
python ../../../../../eng/scripts/run_pylint.py -t azure -g version-tolerant {posargs}
Expand Down
4 changes: 2 additions & 2 deletions packages/autorest.python/test/dpg/version-tolerant/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ skipsdist=True
passenv=*
deps=
-r requirements.txt
-r ../../../../../eng/requirements.txt
-r ../../../../../eng/dev_requirements.txt
commands=
pytest --cov=Expected

[testenv:lint]
deps=
-r requirements.txt
-r ../../../../../eng/requirements.txt
-r ../../../../../eng/dev_requirements.txt
commands =
pip install azure-pylint-guidelines-checker==0.4.1 --index-url="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
python ../../../../../eng/scripts/run_pylint.py -t dpg -g version-tolerant {posargs}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
2 changes: 1 addition & 1 deletion packages/autorest.python/test/multiapi/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ skipsdist=True
passenv=*
deps=
-r requirements.txt
-r ../../../../eng/requirements.txt
-r ../../../../eng/dev_requirements.txt
commands=
pytest --cov=Expected

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------


VERSION = "0.1.0"
Loading
Loading