From 9a70da9c9679f466989e44e18a4f11589e7725b7 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sun, 11 Oct 2020 22:28:37 +0300 Subject: [PATCH] Drop azure-pipelines integration --- .azure-pipelines/ci.yml | 22 ----- .azure-pipelines/deploy.yml | 156 -------------------------------- .azure-pipelines/stage-lint.yml | 139 ---------------------------- .azure-pipelines/stage-test.yml | 124 ------------------------- 4 files changed, 441 deletions(-) delete mode 100644 .azure-pipelines/ci.yml delete mode 100644 .azure-pipelines/deploy.yml delete mode 100644 .azure-pipelines/stage-lint.yml delete mode 100644 .azure-pipelines/stage-test.yml diff --git a/.azure-pipelines/ci.yml b/.azure-pipelines/ci.yml deleted file mode 100644 index 37f3959c1..000000000 --- a/.azure-pipelines/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -trigger: - batch: true - branches: - include: - - master - - ?.?* # matches to backport branches, e.g. 3.6 - tags: - exclude: - - '*' -pr: - autoCancel: true - branches: - include: - - master - - ?.?* # matches to backport branches, e.g. 3.6 - -variables: -- group: codecov - -stages: -- template: stage-lint.yml -- template: stage-test.yml diff --git a/.azure-pipelines/deploy.yml b/.azure-pipelines/deploy.yml deleted file mode 100644 index f7d233198..000000000 --- a/.azure-pipelines/deploy.yml +++ /dev/null @@ -1,156 +0,0 @@ -trigger: - tags: - include: - - v?.* -pr: none - - -variables: -- group: codecov -- group: twine - - -resources: - containers: - - container: manylinux - image: quay.io/pypa/manylinux1_x86_64 - repositories: - - repository: templates - type: github - name: aio-libs/azure-pipelines - endpoint: aio-libs - -stages: -- template: stage-lint.yml - -- template: stage-test.yml - -- stage: build - displayName: 'Build' - - jobs: - - job: tarball - displayName: 'Tarball' - pool: - vmImage: 'ubuntu-latest' - - steps: - - template: templates/step-build.yml@templates - parameters: - steps: - - script: | - python setup.py sdist - displayName: 'Make tarball' - - - job: manylinux - displayName: 'Manylinux' - strategy: - matrix: - py35 x64: - python.code: 'cp35-cp35m' - manylinux: 'manylinux_64' - py36 x64: - python.code: 'cp36-cp36m' - manylinux: 'manylinux_64' - py37 x64: - python.code: 'cp37-cp37m' - manylinux: 'manylinux_64' - py38 x64: - python.code: 'cp38-cp38' - manylinux: 'manylinux_64' - pool: - vmImage: 'ubuntu-latest' - container: manylinux - steps: - - checkout: self - submodules: true - clean: true - - - script: | - /opt/python/$(python.code)/bin/python -m venv .build-venv - displayName: 'Use Python $(python.code)' - - - script: | - source .build-venv/bin/activate - pip install -U setuptools wheel - displayName: 'Install tools' - - - script: | - source .build-venv/bin/activate - python setup.py bdist_wheel - displayName: 'Make wheel' - - - script: | - auditwheel repair dist/*.whl --wheel-dir wheelhouse/ - displayName: 'Repair wheel' - - - template: templates/step-store-dist.yml@templates - parameters: - folder: wheelhouse - - - job: - strategy: - matrix: - Win py35 x64: - python.version: '3.5' - python.architecture: 'x64' - image: 'vs2017-win2016' - Win py36 x64: - python.version: '3.6' - python.architecture: 'x64' - image: 'windows-latest' - Win py37 x64: - python.version: '3.7' - python.architecture: 'x64' - image: 'windows-latest' - Win py38 x64: - python.version: '3.8' - python.architecture: 'x64' - image: 'windows-latest' - Win py35 x86: - python.version: '3.5' - python.architecture: 'x86' - image: 'vs2017-win2016' - Win py36 x86: - python.version: '3.6' - python.architecture: 'x86' - image: 'windows-latest' - Win py37 x86: - python.version: '3.7' - python.architecture: 'x86' - image: 'windows-latest' - Win py38 x86: - python.version: '3.8' - python.architecture: 'x86' - image: 'windows-latest' - Mac py35: - python.version: '3.5' - image: 'macos-latest' - python.architecture: 'x64' - Mac py36: - python.version: '3.6' - image: 'macos-latest' - python.architecture: 'x64' - Mac py37: - python.version: '3.7' - image: 'macos-latest' - python.architecture: 'x64' - Mac py38: - python.version: '3.8' - image: 'macos-latest' - python.architecture: 'x64' - pool: - vmImage: '$(image)' - steps: - - template: templates/step-build.yml@templates - parameters: - python: '$(python.version)' - architecture: '$(python.architecture)' - steps: - - script: | - python setup.py bdist_wheel - displayName: 'Make wheel' - -- template: templates/stage-publish.yml@templates - parameters: - github: release-upload diff --git a/.azure-pipelines/stage-lint.yml b/.azure-pipelines/stage-lint.yml deleted file mode 100644 index ea7242603..000000000 --- a/.azure-pipelines/stage-lint.yml +++ /dev/null @@ -1,139 +0,0 @@ -stages: -- stage: lint - displayName: 'Lint' - - jobs: - - job: 'flake8' - pool: - vmImage: 'ubuntu-latest' - - steps: - - checkout: self - submodules: true - clean: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - architecture: 'x64' - - - script: | - pip install -r requirements/lint.txt - displayName: 'Install deps' - - - script: | - make flake8 - displayName: 'Run flake8' - - - job: 'isort' - pool: - vmImage: 'ubuntu-latest' - - steps: - - checkout: self - submodules: true - clean: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - architecture: 'x64' - - - script: | - pip install -e . - displayName: 'Install itself' - env: - MULTIDICT_NO_EXTENSIONS: 1 - - - script: | - pip install -r requirements/lint.txt - displayName: 'Install deps' - - - script: | - make isort-check - displayName: 'Run isort checker' - - - job: 'mypy' - pool: - vmImage: 'ubuntu-latest' - - steps: - - checkout: self - submodules: true - clean: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - architecture: 'x64' - - - script: | - pip install -r requirements/lint.txt - displayName: 'Install deps' - - - script: | - pip install -e . - displayName: 'Install itself' - env: - MULTIDICT_NO_EXTENSIONS: 1 - - - script: | - make mypy - displayName: 'Run mypy checker' - - - job: 'docs' - pool: - vmImage: 'ubuntu-latest' - - steps: - - checkout: self - submodules: true - clean: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - architecture: 'x64' - - - script: | - apt install libenchant-dev - pip install -r requirements/doc-spelling.txt - pip install -r requirements/towncrier.txt - displayName: 'Install deps' - - - script: | - towncrier --yes - displayName: 'Run towncrier' - env: - MULTIDICT_NO_EXTENSIONS: 1 - - - script: | - make doc-spelling - displayName: 'Run docs checker' - env: - MULTIDICT_NO_EXTENSIONS: 1 - - - job: 'twine' - pool: - vmImage: 'ubuntu-latest' - - steps: - - checkout: self - submodules: true - clean: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - architecture: 'x64' - - - script: | - pip install -U twine wheel - python setup.py sdist bdist_wheel - displayName: 'Install deps' - env: - MULTIDICT_NO_EXTENSIONS: 1 - - - script: | - twine check dist/* - displayName: 'Run twine checker' diff --git a/.azure-pipelines/stage-test.yml b/.azure-pipelines/stage-test.yml deleted file mode 100644 index 1ac2b667b..000000000 --- a/.azure-pipelines/stage-test.yml +++ /dev/null @@ -1,124 +0,0 @@ -stages: -- stage: test - displayName: 'Run tests' - - jobs: - - job: - strategy: - matrix: - Py35-C-Linux: - python.version: '3.5' - no_extensions: '' - image: 'ubuntu-latest' - Py36-C-Linux: - python.version: '3.6' - no_extensions: '' - image: 'ubuntu-latest' - Py37-C-Linux: - python.version: '3.7' - no_extensions: '' - image: 'ubuntu-latest' - Py38-C-Linux: - python.version: '3.8' - no_extensions: '' - image: 'ubuntu-latest' - Py35-Pure-Linux: - python.version: '3.5' - no_extensions: 'Y' - image: 'ubuntu-latest' - Py36-Pure-Linux: - python.version: '3.6' - no_extensions: 'Y' - image: 'ubuntu-latest' - Py37-Pure-Linux: - python.version: '3.7' - no_extensions: 'Y' - image: 'ubuntu-latest' - Py38-Pure-Linux: - python.version: '3.8' - no_extensions: 'Y' - image: 'ubuntu-latest' - PyPy3-Linux: - python.version: 'pypy3' - no_extensions: '' - image: 'ubuntu-latest' - Py35-C-Win: - python.version: '3.5' - no_extensions: '' - image: 'vs2017-win2016' - Py36-C-Win: - python.version: '3.6' - no_extensions: '' - image: 'windows-latest' - Py37-C-Win: - python.version: '3.7' - no_extensions: '' - image: 'windows-latest' - Py38-C-Win: - python.version: '3.8' - no_extensions: '' - image: 'windows-latest' - Py35-C-Mac: - python.version: '3.5' - no_extensions: '' - image: 'macos-latest' - Py36-C-Mac: - python.version: '3.6' - no_extensions: '' - image: 'macos-latest' - Py37-C-Mac: - python.version: '3.7' - no_extensions: '' - image: 'macos-latest' - Py38-C-Mac: - python.version: '3.8' - no_extensions: '' - image: 'macos-latest' - pool: - vmImage: '$(image)' - - timeoutInMinutes: 10 - - steps: - - checkout: self - clean: true - submodules: true - - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - - script: | - python -m pip install --upgrade pip setuptools wheel - displayName: 'Update pip' - - - script: | - python setup.py install - displayName: 'Install itself' - env: - MULTIDICT_NO_EXTENSIONS: '$(no_extensions)' - - - script: | - python -m pip install -r requirements/pytest.txt - displayName: 'Install dependencies' - - - script: | - python -m pip install pytest-azurepipelines - displayName: 'Install pytest-azurepipelines' - - - script: | - python -m pytest tests -vv - displayName: 'pytest' - - - script: | - python -m coverage xml - displayName: 'Prepare coverage' - - - script: | - python -m pip install codecov - python -m codecov -f coverage.xml -X gcov - displayName: 'Upload coverage reports' - condition: ne(variables['codecov.token'], '') - env: - CODECOV_TOKEN: $(codecov.token)