From 12c0b43809efd2002be498a35ea3695b266cd4c3 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 8 Jan 2025 11:30:02 +0800 Subject: [PATCH 1/4] fix install for autorest.python --- packages/autorest.python/scripts/install.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/autorest.python/scripts/install.py b/packages/autorest.python/scripts/install.py index 9350c3c4564..79d699b5ad0 100644 --- a/packages/autorest.python/scripts/install.py +++ b/packages/autorest.python/scripts/install.py @@ -42,6 +42,7 @@ def main(): python_run(venv_context, "pip", ["install", "-U", "pip"]) python_run(venv_context, "pip", ["install", "-e", f"{_ROOT_DIR}/generator"]) + python_run(venv_context, "pip", ["install", "-e", f"{_ROOT_DIR}/requirements.txt"]) if __name__ == "__main__": From 771c35756afc5c69928835aa01576200d43172b0 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 8 Jan 2025 11:30:55 +0800 Subject: [PATCH 2/4] changelog --- .chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md diff --git a/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md b/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md new file mode 100644 index 00000000000..4149a9d6e15 --- /dev/null +++ b/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@autorest/python" +--- + +Fix install for autorest.python \ No newline at end of file From e0f7ed3fdceebddc28b4310f38f21db4b47e072b Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 8 Jan 2025 11:32:29 +0800 Subject: [PATCH 3/4] update version --- .chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md | 7 ------- packages/autorest.python/CHANGELOG.md | 7 +++++++ packages/autorest.python/package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 .chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md diff --git a/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md b/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md deleted file mode 100644 index 4149a9d6e15..00000000000 --- a/.chronus/changes/fix-autorest.python-2025-0-8-11-30-42.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@autorest/python" ---- - -Fix install for autorest.python \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 8ea084e6ae0..bce230baf7c 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,12 @@ # Release +## 6.27.4 + +### Bug Fixes + +- [771c357](https://github.com/Azure/autorest.python/commit/771c35756afc5c69928835aa01576200d43172b0) Fix install for autorest.python + + ## 6.27.3 ### Bug Fixes diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index bb98217abf3..8a5c9d1a67c 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.27.3", + "version": "6.27.4", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", From 8dfb6af62985615a0a1189f79dd21326cce59aa1 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 8 Jan 2025 12:00:15 +0800 Subject: [PATCH 4/4] Fix pip install command for requirements --- packages/autorest.python/scripts/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/autorest.python/scripts/install.py b/packages/autorest.python/scripts/install.py index 79d699b5ad0..7b687f1171d 100644 --- a/packages/autorest.python/scripts/install.py +++ b/packages/autorest.python/scripts/install.py @@ -41,8 +41,8 @@ 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"]) - python_run(venv_context, "pip", ["install", "-e", f"{_ROOT_DIR}/requirements.txt"]) if __name__ == "__main__":