From 7f49cc2ca7addbc958cca2835a12065984195470 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Sun, 28 Apr 2024 14:50:23 +0800 Subject: [PATCH] Clean work (#2549) * delete useless dir * try to fix chronus * update readme.md --- README.md | 2 +- eng/publish.mjs | 4 ++-- .../property/additionalproperties/_types.py | 15 --------------- .../property/additionalproperties/_types.py | 15 --------------- 4 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py delete mode 100644 packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py diff --git a/README.md b/README.md index 81db0b4b237..2d37fef8a9a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ pnpm clean Branch `publish/auto-release` should be automatically updated with the latest changelog. Give it 5min after merging a PR or check the status of the [Release action](https://github.com/Azure/autorest.python/actions/workflows/prepare-auto-release-branch.yml) -Then go to https://github.com/Azure/autorest.python/pull/new/publish/auto-release and create this PR. After PR created, please update `Minor Changes`/`Patch Changes` of changelog with existing items `New Features`/`Bug Fixes`/`Other Changes`. +Then go to https://github.com/Azure/autorest.python/pull/new/publish/auto-release and create this PR. ## Contributing diff --git a/eng/publish.mjs b/eng/publish.mjs index 768f0f902a0..fa35ae5cf6d 100644 --- a/eng/publish.mjs +++ b/eng/publish.mjs @@ -2,7 +2,7 @@ import { execSync } from "child_process"; const branchName = "publish/auto-release"; -execSync(`pnpm changeset version`); +execSync(`pnpm chronus version`); const stdout = execSync(`git status --porcelain`).toString(); if (stdout.trim() !== "") { @@ -16,7 +16,7 @@ if (stdout.trim() !== "") { console.log(); console.log("-".repeat(160)); console.log("| Link to create the PR"); - console.log(`| https://github.com/Azure/cadl-ranch/pull/new/${branchName} `); + console.log(`| https://github.com/Azure/autorest.python/pull/new/${branchName} `); console.log("-".repeat(160)); } else { console.log("No changes to publish"); diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py deleted file mode 100644 index 221b5d947e6..00000000000 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py +++ /dev/null @@ -1,15 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING, Union - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from . import models as _models -WidgetData = Union["_models.WidgetData0", "_models.WidgetData1"] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py deleted file mode 100644 index 143d5658555..00000000000 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_types.py +++ /dev/null @@ -1,15 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Unbranded Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Unbranded (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING, Union - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from . import models as _models -WidgetData = Union["_models.WidgetData0", "_models.WidgetData1"]