Skip to content

Commit 130f344

Browse files
authored
bump http-client-python 0.5.0 (#2981)
* bump http-client-python 0.5.0 * fix install issue * add changelog * regenerate * fix ci * optimize install and ci * update * update * fix ci * fix ci * update tox.ini * Add requirements.txt installation step in install script * update for eng dependencies * fix ci * fix ci * fix lint in ci * fix lint in ci * fix format * fix ci * inv reg * Add PatchAddedModel class and import modules * Remove unused dependencies from requirements.txt
1 parent 780ec92 commit 130f344

77 files changed

Lines changed: 98 additions & 144 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions

eng/dev_requirements.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
azure-pylint-guidelines-checker==0.0.8
2-
colorama==0.4.6
3-
debugpy==1.8.9
4-
pytest==8.3.4
5-
tox==4.23.2
6-
coverage==7.6.9
7-
black==24.10.0
8-
setuptools==73.0.1
1+
-r ../packages/typespec-python/dev_requirements.txt

eng/pipelines/ci-template.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ steps:
2020
displayName: "Install Node.js 18.x"
2121
inputs:
2222
versionSpec: "18.x"
23+
2324
- task: UsePythonVersion@0
24-
displayName: "Use Python 3.11"
25+
displayName: "Use Python $(PythonVersion)"
2526
inputs:
26-
versionSpec: 3.11
27+
versionSpec: $(PythonVersion)
2728

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

128-
- task: UsePythonVersion@0
129-
displayName: "Use Python $(PythonVersion)"
130-
inputs:
131-
versionSpec: $(PythonVersion)
132-
133129
- script: |
134130
pnpm pack
135131
AbsolutePkgPath=$(find "$(pwd)" -name "autorest-python-*" -maxdepth 1)

eng/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
-e .
22
-e ./generator
3-
-r ../../eng/requirements.txt
43
-r ../../eng/dev_requirements.txt
5-
ptvsd==4.3.2
6-
types-PyYAML==6.0.12.8
74
invoke==2.2.0

packages/autorest.python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "~0.4.4",
32+
"@typespec/http-client-python": "~0.5.0",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
black==24.4.0
2-
click==8.1.3
3-
docutils==0.19
4-
Jinja2==3.1.4
5-
m2r2==0.3.3
6-
MarkupSafe==2.1.2
7-
mistune==0.8.4
8-
pathspec==0.11.1
9-
platformdirs==3.2.0
10-
PyYAML==6.0.1
11-
tomli==2.0.1
12-
setuptools==69.2.0
131
json-rpc==1.14.0

packages/autorest.python/scripts/eng/pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ ignore=_generated,samples,examples,test,tests,doc,.tox,generated_samples
99
[MESSAGES CONTROL]
1010

1111
# Add enable for useless disables
12-
enable=useless-suppression
12+
# enable=useless-suppression
1313

1414
# For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html'
1515
# locally-disabled: Warning locally suppressed using disable-msg
1616
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
1717
# 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.
1818
# too-many-lines: Due to code generation many files end up with too many lines.
1919
# Let's black deal with bad-continuation
20-
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
20+
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
2121

2222
[FORMAT]
2323
max-line-length=120

packages/autorest.python/scripts/install.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def main():
4141
venv_context = env_builder.context
4242

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

4746

packages/autorest.python/test/azure/legacy/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ skipsdist=True
66
passenv=*
77
deps=
88
-r requirements.txt
9-
-r ../../../../../eng/requirements.txt
9+
-r ../../../../../eng/dev_requirements.txt
1010
commands=
1111
pytest --cov=Expected
1212

0 commit comments

Comments
 (0)