diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 279ae64e..76dc998a 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v1 diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 00000000..8a8ef458 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,6 @@ +# Support +## How to file issues and get help +This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue. + +## Microsoft Support Policy +Support for Azure DevOps Python API is limited to the resources listed above. \ No newline at end of file diff --git a/azure-devops/azure/devops/v7_0/pipelines_checks/models.py b/azure-devops/azure/devops/v7_0/pipelines_checks/models.py index c0d911df..a06fa1c0 100644 --- a/azure-devops/azure/devops/v7_0/pipelines_checks/models.py +++ b/azure-devops/azure/devops/v7_0/pipelines_checks/models.py @@ -385,6 +385,12 @@ class CheckConfiguration(CheckConfigurationRef): :type modified_on: datetime :param timeout: Timeout in minutes for the check. :type timeout: int + :param is_disabled: True if the check is disabled. + :type is_disabled: bool + :param version: Configuration version. + :type version: int + :param settings: Check settings. + :type settings: TaskCheckConfig """ _attribute_map = { @@ -397,10 +403,13 @@ class CheckConfiguration(CheckConfigurationRef): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'timeout': {'key': 'timeout', 'type': 'int'} + 'timeout': {'key': 'timeout', 'type': 'int'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'version': {'key': 'version', 'type': 'int'}, + 'settings': {'key': 'settings', 'type': 'TaskCheckConfig'} } - def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, modified_by=None, modified_on=None, timeout=None): + def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, modified_by=None, modified_on=None, timeout=None, is_disabled=None, version=None, settings=None): super(CheckConfiguration, self).__init__(id=id, resource=resource, type=type, url=url) self._links = _links self.created_by = created_by @@ -408,7 +417,9 @@ def __init__(self, id=None, resource=None, type=None, url=None, _links=None, cre self.modified_by = modified_by self.modified_on = modified_on self.timeout = timeout - + self.is_disabled = is_disabled + self.version = version + self.settings = settings class CheckRun(CheckRunResult): """ diff --git a/azure-devops/azure/devops/v7_1/pipelines_checks/models.py b/azure-devops/azure/devops/v7_1/pipelines_checks/models.py index 17713252..f1cf0c8b 100644 --- a/azure-devops/azure/devops/v7_1/pipelines_checks/models.py +++ b/azure-devops/azure/devops/v7_1/pipelines_checks/models.py @@ -412,6 +412,12 @@ class CheckConfiguration(CheckConfigurationRef): :type modified_on: datetime :param timeout: Timeout in minutes for the check. :type timeout: int + :param is_disabled: True if the check is disabled. + :type is_disabled: bool + :param version: Configuration version. + :type version: int + :param settings: Check settings. + :type settings: TaskCheckConfig """ _attribute_map = { @@ -425,10 +431,13 @@ class CheckConfiguration(CheckConfigurationRef): 'issue': {'key': 'issue', 'type': 'CheckIssue'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'timeout': {'key': 'timeout', 'type': 'int'} + 'timeout': {'key': 'timeout', 'type': 'int'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'version': {'key': 'version', 'type': 'int'}, + 'settings': {'key': 'settings', 'type': 'TaskCheckConfig'} } - def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, issue=None, modified_by=None, modified_on=None, timeout=None): + def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, issue=None, modified_by=None, modified_on=None, timeout=None, is_disabled=None, version=None, settings=None): super(CheckConfiguration, self).__init__(id=id, resource=resource, type=type, url=url) self._links = _links self.created_by = created_by @@ -437,7 +446,9 @@ def __init__(self, id=None, resource=None, type=None, url=None, _links=None, cre self.modified_by = modified_by self.modified_on = modified_on self.timeout = timeout - + self.is_disabled = is_disabled + self.version = version + self.settings = settings class CheckRun(CheckRunResult): """ diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..d5937432 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,150 @@ +# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool. +# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected. +# This pipeline will be extended to the MicroBuild template +trigger: + branches: + include: + - dev + - master + - releases/vsts + batch: True +schedules: +- cron: 0 6 * * 1 + branches: + include: + - refs/heads/dev + always: true +resources: + repositories: + - repository: self + type: git + ref: refs/heads/dev + - repository: MicroBuildTemplate + type: git + name: 1ESPipelineTemplates/MicroBuildTemplate + ref: refs/tags/release +extends: + template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate + parameters: + sdl: + sourceAnalysisPool: 1ESPtTfsAgentBuildPoolSDL + pool: + name: Azure-Pipelines-1ESPT-ExDShared + image: windows-2022 + os: windows + customBuildTags: + - ES365AIMigrationTooling + stages: + - stage: stage + jobs: + - job: Phase_1 + displayName: Phase 1 + cancelTimeoutInMinutes: 1 + pool: + name: 1ES-Shared-Hosted-Pool_Windows-Server-2022 + steps: + - checkout: self + clean: true + fetchTags: true + persistCredentials: True + - task: UsePythonVersion@0 + displayName: Use Python 3.x + - task: PowerShell@2 + name: PowerShell4 + displayName: Create Virtual Environment + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 + + if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } + + + & python -m pip install -U pip setuptools + - task: Bash@3 + name: ShellScript1 + displayName: Update Version + inputs: + filePath: scripts/ci/version.sh + arguments: $(Build.BuildNumber) + script: > + #!/usr/bin/env bash + + + # Update the version strings in the source code + + + # Input: + + # $1 - the version string, if omitted, use ${BUILD_BUILDID} + + + version=$1 + + + if [ -z ${version} ]; then + version=${BUILD_BUILDID} + fi + + + if [ -z ${version} ]; then + echo 'Missing version string' + exit 1 + fi + + + echo "Add dev version suffix: $version" + + + platform=`uname` + + + echo "Platform: $platform" + + + pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" + + + if [ "${platform}" == "MSYS_NT-10.0" ]; then + # On preview version of sh build task, the script will pick up the wrong version of find.exe + find="C:\Program Files\Git\usr\bin\find.exe" + else + find="find" + fi + + + + for each in $("${find}" . -name setup.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done + + + for each in $("${find}" . -name version.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done + - task: PowerShell@2 + name: PowerShell1 + displayName: Compile All + timeoutInMinutes: 1 + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } "&" python -m compileall . pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy