From 3e1ef21c58b526ad42ec109c7cabc37e83f2dccd Mon Sep 17 00:00:00 2001 From: Chris McCarthy Date: Mon, 5 Jun 2023 22:11:10 +0100 Subject: [PATCH] v2.0.0 Signed-off-by: Chris McCarthy --- .azure/.pypirc | 6 -- .azure/README.md | 3 - .azure/artifact-release-pipeline.yml | 53 ------------- .azure/azure-pipelines.yml | 98 ------------------------ .azure/azure-static-web-apps-yt-docs.yml | 46 ----------- 5 files changed, 206 deletions(-) delete mode 100644 .azure/.pypirc delete mode 100644 .azure/README.md delete mode 100644 .azure/artifact-release-pipeline.yml delete mode 100644 .azure/azure-pipelines.yml delete mode 100644 .azure/azure-static-web-apps-yt-docs.yml diff --git a/.azure/.pypirc b/.azure/.pypirc deleted file mode 100644 index 8ed83357..00000000 --- a/.azure/.pypirc +++ /dev/null @@ -1,6 +0,0 @@ -[distutils] -Index-servers = - Yawning-Titan - -[Yawning-Titan] -Repository = https://pkgs.dev.azure.com/ma-dev-uk/a6d6c871-7ecf-4c6e-9b67-157a3e02ce06/_packaging/Yawning-Titan/pypi/upload/ diff --git a/.azure/README.md b/.azure/README.md deleted file mode 100644 index bd9776e9..00000000 --- a/.azure/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Plase holder for anything Azure DevOps related. - -To be removed before commiting to https://github.com/dstl/YAWNING-TITAN diff --git a/.azure/artifact-release-pipeline.yml b/.azure/artifact-release-pipeline.yml deleted file mode 100644 index d7e04cd4..00000000 --- a/.azure/artifact-release-pipeline.yml +++ /dev/null @@ -1,53 +0,0 @@ - -trigger: -- feature/AIDT-265-Build-pipeline-to-create-Linux-wheels - -pool: - vmImage: ubuntu-latest -strategy: - matrix: - Python310: - python.version: '3.10' - -steps: -- task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - displayName: 'Use Python $(python.version)' - -- script: | - python -m pip install --upgrade pip==23.0.1 - pip install wheel==0.38.4 --upgrade - pip install setuptools==66 --upgrade - pip install build - pip install twine - pip install keyring - pip install artifacts-keyring - displayName: 'Install build dependencies' - -- script: | - python -m pip install -e .[dev] - displayName: 'Install Yawning-Titan' - -- script: | - cd docs - make html - displayName: 'Build Docs' - -- script: | - cd scripts - sh copy_docs_to_gui_static.sh - displayName: 'Copy built docs to gui static' - -- script: | - python -m build - displayName: 'Build Yawning-Titan' - -- task: TwineAuthenticate@1 - displayName: 'Twine Authenticate' - inputs: - artifactFeed: a6d6c871-7ecf-4c6e-9b67-157a3e02ce06/Yawning-Titan - -- script: | - python -m twine upload --verbose -r Yawning-Titan --config-file $(PYPIRC_PATH) dist/*.whl - displayName: 'Artifact Upload' diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml deleted file mode 100644 index 6a917568..00000000 --- a/.azure/azure-pipelines.yml +++ /dev/null @@ -1,98 +0,0 @@ -trigger: -- main -- dev -- dev-gui -- feature/* -- hotfix/* -- bugfix/* -- release/* - -pool: - vmImage: ubuntu-latest -strategy: - matrix: - Python38: - python.version: '3.8' - Python39: - python.version: '3.9' - Python310: - python.version: '3.10' - -steps: -- task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - displayName: 'Use Python $(python.version)' - -- task: NodeTool@0 - inputs: - versionSpec: '18.x' - displayName: 'Install Node.js' - -- script: | - python -m pip install --upgrade pip==23.0.1 - pip install wheel==0.38.4 --upgrade - pip install setuptools==66 --upgrade - pip install build - pip install pytest-azurepipelines - displayName: 'Install build dependencies' - -- script: | - python -m build --config-setting=--quiet - displayName: 'Build Yawning-Titan' - -- script: | - YT=$(ls ./dist/yawningtitan-*.whl) - python -m pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html - python -m pip install $YT[dev] --default-timeout 1000 - displayName: 'Install Yawning-Titan' - -- script: | - yawning-titan setup - displayName: 'Perform the Yawning-Titan setup from the CLI' - -- script: | - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - displayName: 'Lint with flake8' - -- script: | - pytest tests/ -m "not (unit_test or integration_test or e2e_integration_test or gui_test)" - displayName: 'Run unmarked tests' - -- script: | - pytest tests/ -m unit_test - displayName: 'Run unit tests' - -- script: | - pytest tests/ -m integration_test - displayName: 'Run integration tests' - -- script: | - pytest tests/ -m e2e_integration_test - displayName: 'Run end-to-end integration tests' - -- script: | - echo 'Preparing to run GUI tests' - displayName: 'Preparing to run GUI tests' - -# GUI build pipeline -- script: | - npm install --global yarn - displayName: 'Install yarn' - -- script: | - cd network_editor && yarn - displayName: 'Install dependencies with yarn' - -- script: | - cd network_editor && yarn test:ci - displayName: 'Network Editor unit test' - -- script: | - cd network_editor && yarn build - displayName: 'Build Network Editor' - -- script: | - yawning-titan gui & (sleep 15 && cd network_editor && yarn test:ci:e2e) - displayName: 'GUI end-to-end test' diff --git a/.azure/azure-static-web-apps-yt-docs.yml b/.azure/azure-static-web-apps-yt-docs.yml deleted file mode 100644 index bb13035e..00000000 --- a/.azure/azure-static-web-apps-yt-docs.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Azure Static Web Apps CI/CD - -pr: none -trigger: - branches: - include: - - dev - -jobs: -- job: build_and_deploy_job - displayName: Build and Deploy Job - condition: or(eq(variables['Build.Reason'], 'Manual'),or(eq(variables['Build.Reason'], 'PullRequest'),eq(variables['Build.Reason'], 'IndividualCI'))) - pool: - vmImage: ubuntu-latest - variables: - - group: Azure-Static-Web-Apps-gray-desert-0bbbd2d03-variable-group - steps: - - checkout: self - submodules: true - - - script: | - python -m pip install --upgrade pip==23.0.1 - pip install wheel==0.38.4 --upgrade - pip install setuptools==66 --upgrade - pip install build - displayName: 'Install build dependencies' - - - script: | - python -m pip install -e .[dev] - displayName: 'Install Yawning-Titan for docs autosummary' - - - script: | - cd docs - make html - cd .. - displayName: 'Build Docs' - - - task: AzureStaticWebApp@0 - inputs: - azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_GRAY_DESERT_0BBBD2D03) -###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### -# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/docs/_build/html" # App source code path - api_location: "" # Api source code path - optional - output_location: "/" # Built app content directory - optional -###### End of Repository/Build Configurations ######