diff --git a/.azure-pipelines/scripts/New-Ramdisk.ps1 b/.azure-pipelines/scripts/New-Ramdisk.ps1 deleted file mode 100644 index fb068e47fe..0000000000 --- a/.azure-pipelines/scripts/New-Ramdisk.ps1 +++ /dev/null @@ -1,75 +0,0 @@ -# Taken from https://github.com/pypa/pip/blob/ceaf75b9ede9a9c25bcee84fe512fa6774889685/.azure-pipelines/scripts/New-RAMDisk.ps1 -[CmdletBinding()] -param( - [Parameter(Mandatory=$true, - HelpMessage="Drive letter to use for the RAMDisk")] - [String]$drive, - [Parameter(HelpMessage="Size to allocate to the RAMDisk")] - [UInt64]$size=1GB -) - -$ErrorActionPreference = "Stop" -Set-StrictMode -Version Latest - -Write-Output "Installing FS-iSCSITarget-Server" -Install-WindowsFeature -Name FS-iSCSITarget-Server - -Write-Output "Starting MSiSCSI" -Start-Service MSiSCSI -$retry = 10 -do { - $service = Get-Service MSiSCSI - if ($service.Status -eq "Running") { - break; - } - $retry-- - Start-Sleep -Milliseconds 500 -} until ($retry -eq 0) - -$service = Get-Service MSiSCSI -if ($service.Status -ne "Running") { - throw "MSiSCSI is not running" -} - -Write-Output "Configuring Firewall" -Get-NetFirewallServiceFilter -Service MSiSCSI | Enable-NetFirewallRule - -Write-Output "Configuring RAMDisk" -# Must use external-facing IP address, otherwise New-IscsiTargetPortal is -# unable to connect. -$ip = ( - Get-NetIPAddress -AddressFamily IPv4 | - Where-Object {$_.IPAddress -ne "127.0.0.1"} -)[0].IPAddress -if ( - -not (Get-IscsiServerTarget -ComputerName localhost | Where-Object {$_.TargetName -eq "ramdisks"}) -) { - New-IscsiServerTarget ` - -ComputerName localhost ` - -TargetName ramdisks ` - -InitiatorId IPAddress:$ip -} - -$newVirtualDisk = New-IscsiVirtualDisk ` - -ComputerName localhost ` - -Path ramdisk:local$drive.vhdx ` - -Size $size -Add-IscsiVirtualDiskTargetMapping ` - -ComputerName localhost ` - -TargetName ramdisks ` - -Path ramdisk:local$drive.vhdx - -Write-Output "Connecting to iSCSI" -New-IscsiTargetPortal -TargetPortalAddress $ip -Get-IscsiTarget | Where-Object {!$_.IsConnected} | Connect-IscsiTarget - -Write-Output "Configuring disk" -$newDisk = Get-IscsiConnection | - Get-Disk | - Where-Object {$_.SerialNumber -eq $newVirtualDisk.SerialNumber} - -Set-Disk -InputObject $newDisk -IsOffline $false -Initialize-Disk -InputObject $newDisk -PartitionStyle MBR -New-Partition -InputObject $newDisk -UseMaximumSize -DriveLetter $drive - -Format-Volume -DriveLetter $drive -NewFileSystemLabel Temp -FileSystem NTFS diff --git a/.azure-pipelines/steps/build-package.yml b/.azure-pipelines/steps/build-package.yml deleted file mode 100644 index 01f9fe0bc3..0000000000 --- a/.azure-pipelines/steps/build-package.yml +++ /dev/null @@ -1,32 +0,0 @@ -steps: -- task: UsePythonVersion@0 - inputs: - versionSpec: $(python.version) - architecture: '$(python.architecture)' - addToPath: true - displayName: Use Python $(python.version) - -- bash: | - PYTHON_PATH=$(python -c 'import sys; print(sys.executable)') - echo "##vso[task.setvariable variable=PY_EXE]$PYTHON_PATH" - displayName: Set Python Path - -- script: | - echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) - env: - PYTHON_VERSION: $(python.version) - -- template: install-dependencies.yml - -- script: | - python -m pip install --upgrade wheel pip setuptools twine readme_renderer[md] - python setup.py sdist bdist_wheel - twine check dist/* - displayName: Build and check package - env: - PY_EXE: $(PY_EXE) - GIT_SSL_CAINFO: $(GIT_SSL_CAINFO) - LANG: $(LANG) - PIPENV_DEFAULT_PYTHON_VERSION: $(PIPENV_DEFAULT_PYTHON_VERSION) - PYTHONWARNINGS: ignore:DEPRECATION - PIPENV_NOSPIN: '1' diff --git a/.azure-pipelines/steps/install-dependencies.yml b/.azure-pipelines/steps/install-dependencies.yml deleted file mode 100644 index 003c724cd4..0000000000 --- a/.azure-pipelines/steps/install-dependencies.yml +++ /dev/null @@ -1,30 +0,0 @@ -parameters: - python_version: '' - -steps: - -- script: | - echo "##vso[task.setvariable variable=LANG]C.UTF-8" - echo "##vso[task.setvariable variable=PIP_PROCESS_DEPENDENCY_LINKS]1" - displayName: Set Environment Variables - -- script: | - echo "Python path: $(PY_EXE)" - echo "GIT_SSL_CAINFO: $(GIT_SSL_CAINFO)" - echo "PIPENV PYTHON VERSION: $(python.version)" - echo "python_version: ${{ parameters.python_version }}" - git submodule sync - git submodule update --init --recursive - $(PY_EXE) -m pip install --upgrade --upgrade-strategy=eager pip setuptools wheel - env: - PIPENV_DEFAULT_PYTHON_VERSION: ${{ parameters.python_version }} - PYTHONWARNINGS: 'ignore:DEPRECATION' - PIPENV_NOSPIN: '1' - displayName: Make Virtualenv - -- script: | - $(PY_EXE) -m pip install -e . --upgrade - $(PY_EXE) -m pipenv install --deploy --dev --python="$(PY_EXE)" - displayName: Upgrade Pip & Install Pipenv - env: - PYTHONWARNINGS: 'ignore:DEPRECATION' diff --git a/.azure-pipelines/steps/run-tests-linux.yml b/.azure-pipelines/steps/run-tests-linux.yml deleted file mode 100644 index 73eaba8fa6..0000000000 --- a/.azure-pipelines/steps/run-tests-linux.yml +++ /dev/null @@ -1,31 +0,0 @@ -parameters: - python_version: '' - -steps: - -- bash: | - pip install certifi - PYTHON_PATH=$(python -c 'import sys; print(sys.executable)') - CERTIFI_CONTENT=$(python -m certifi) - echo "##vso[task.setvariable variable=GIT_SSL_CAINFO]$CERTIFI_CONTENT" - echo "##vso[task.setvariable variable=PY_EXE]$PYTHON_PATH" - displayName: Set Python Path - env: - PYTHONWARNINGS: 'ignore:DEPRECATION' - -- template: install-dependencies.yml - parameters: - python_version: ${{ parameters.python_version }} - -- script: | - # Fix Git SSL errors - echo "Using pipenv python version: $(PIPENV_DEFAULT_PYTHON_VERSION)" - git submodule sync && git submodule update --init --recursive - pipenv run pytest -v -n auto --durations=10 --junitxml=junit/test-results.xml tests - displayName: Run integration tests - env: - PYTHONWARNINGS: ignore:DEPRECATION - PIPENV_NOSPIN: '1' - CI: 1 - PIPENV_DEFAULT_PYTHON_VERSION: ${{ parameters.python_version }} - GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=accept-new -o CheckHostIP=no diff --git a/.azure-pipelines/steps/run-tests-windows.yml b/.azure-pipelines/steps/run-tests-windows.yml deleted file mode 100644 index b37cea2d02..0000000000 --- a/.azure-pipelines/steps/run-tests-windows.yml +++ /dev/null @@ -1,58 +0,0 @@ -parameters: - python_version: '' - python_architecture: '' - -steps: - - task: PowerShell@2 - inputs: - filePath: .azure-pipelines/scripts/New-RAMDisk.ps1 - arguments: "-Drive R -Size 2GB" - displayName: Setup RAMDisk - - - powershell: | - mkdir R:\virtualenvs - $acl = Get-Acl "R:\" - $rule = New-Object System.Security.AccessControl.FileSystemAccessRule( - "Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow" - ) - $acl.AddAccessRule($rule) - Set-Acl "R:\" $acl - displayName: Set RAMDisk Permissions - - - powershell: | - Write-Host "##vso[task.setvariable variable=TEMP]R:\" - Write-Host "##vso[task.setvariable variable=TMP]R:\" - Write-Host "##vso[task.setvariable variable=WORKON_HOME]R:\virtualenvs" - Write-Host "##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]$env:PYTHON_VERSION" - Write-Host "##vso[task.setvariable variable=PIPENV_NOSPIN]1" - displayName: Fix Temp Variable - env: - PYTHON_VERSION: ${{ parameters.python_version }} - - - powershell: | - pip install certifi - $env:PYTHON_PATH=$(python -c "import sys; print(sys.executable)") - $env:CERTIFI_CONTENT=$(python -m certifi) - echo "##vso[task.setvariable variable=GIT_SSL_CAINFO]$env:CERTIFI_CONTENT" - echo "##vso[task.setvariable variable=PY_EXE]$env:PYTHON_PATH" - displayName: Set Python Path - env: - PYTHONWARNINGS: 'ignore:DEPRECATION' - - - template: install-dependencies.yml - parameters: - python_version: ${{ parameters.python_version }} - - - powershell: | - git submodule sync - git submodule update --init --recursive - $venv = (pipenv --venv)[0] - & $venv/Scripts/pytest.exe -ra -n auto -v --durations=10 --junit-xml=junit/test-results.xml tests/ - failOnStderr: false - displayName: Run integration tests - env: - TEMP: 'R:\' - PYTHONWARNINGS: 'ignore:DEPRECATION' - PIPENV_NOSPIN: 1 - CI: 1 - GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=accept-new -o CheckHostIP=no diff --git a/.azure-pipelines/steps/run-tests.yml b/.azure-pipelines/steps/run-tests.yml deleted file mode 100644 index 41cb72fa86..0000000000 --- a/.azure-pipelines/steps/run-tests.yml +++ /dev/null @@ -1,28 +0,0 @@ -steps: -- task: UsePythonVersion@0 - inputs: - versionSpec: $(python.version) - architecture: '$(python.architecture)' - addToPath: true - displayName: Use Python $(python.version) - -- script: | - echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) - env: - PYTHON_VERSION: $(python.version) - -- ${{ if eq(parameters.vmImage, 'windows-latest') }}: - - template: run-tests-windows.yml - parameters: - python_version: $(python.version) -- ${{ if ne(parameters.vmImage, 'windows-latest') }}: - - template: run-tests-linux.yml - parameters: - python_version: $(python.version) - -- task: PublishTestResults@2 - displayName: Publish Test Results - inputs: - testResultsFiles: '**/junit/*.xml' - testRunTitle: 'Python $(python.version)' - condition: succeededOrFailed() diff --git a/.azure-pipelines/steps/run-vendor-scripts.yml b/.azure-pipelines/steps/run-vendor-scripts.yml deleted file mode 100644 index d4580672ee..0000000000 --- a/.azure-pipelines/steps/run-vendor-scripts.yml +++ /dev/null @@ -1,32 +0,0 @@ -parameters: - python_version: '' - -steps: -- task: UsePythonVersion@0 - inputs: - versionSpec: $(python.version) - architecture: '$(python.architecture)' - addToPath: true - displayName: Use Python $(python.version) - -- bash: | - python -m pip install --upgrade --upgrade-strategy=eager pip requests certifi wheel setuptools - PYTHON_PATH=$(python -c 'import sys; print(sys.executable)') - CERTIFI_CONTENT=$(python -m certifi) - echo "##vso[task.setvariable variable=PY_EXE]$PYTHON_PATH" - echo "##vso[task.setvariable variable=GIT_SSL_CAINFO]$CERTIFI_CONTENT" - displayName: Set Python Path - -- template: install-dependencies.yml - -- script: | - python -m pip install --upgrade invoke parver bs4 vistir towncrier --upgrade-strategy=eager - python -m invoke vendoring.update - displayName: Run Vendor Scripts - env: - PY_EXE: $(PY_EXE) - GIT_SSL_CAINFO: $(GIT_SSL_CAINFO) - LANG: $(LANG) - PIPENV_DEFAULT_PYTHON_VERSION: $(python.version) - PYTHONWARNINGS: ignore:DEPRECATION - PIPENV_NOSPIN: '1' diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 70e8c27316..0000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,140 +0,0 @@ -name: CI -trigger: - batch: true - branches: - include: - - master - paths: - exclude: - - 'docs/*' - - 'news/*' - - 'peeps/*' - - 'examples/*' - - 'pytest.ini' - - 'README.md' - - 'pipenv/patched/patched.txt' - - 'pipenv/vendor/vendor_pip.txt' - - '*/LICENSE.txt' - - '*/LICENSE' - - '*.LICENSE' - - '*/vendor.txt' - - 'CHANGELOG.rst' - - 'CONTRIBUTING.md' - - '*.md' - - '.gitignore' - - '.gitattributes' - - '.editorconfig' - -pr: - paths: - exclude: - - 'docs/*' - - 'news/*' - - 'peeps/*' - - 'examples/*' - - 'pytest.ini' - - 'README.md' - - 'pipenv/patched/patched.txt' - - 'pipenv/vendor/vendor_pip.txt' - - '*/LICENSE.txt' - - '*/LICENSE' - - '*.LICENSE' - - '*/vendor.txt' - - 'CHANGELOG.rst' - - 'CONTRIBUTING.md' - - '*.md' - - '.gitignore' - - '.gitattributes' - - '.editorconfig' - -variables: -- group: CI - -jobs: -- job: TestVendoring - displayName: Vendoring - pool: - vmImage: 'Ubuntu-latest' - variables: - python.version: '3.7' - python.architecture: x64 - steps: - - template: .azure-pipelines/steps/run-vendor-scripts.yml - parameters: - vmImage: 'Ubuntu-latest' - -- job: TestPackaging - displayName: Packaging - pool: - vmImage: 'Ubuntu-latest' - variables: - python.version: '3.7' - python.architecture: x64 - steps: - - template: .azure-pipelines/steps/build-package.yml - parameters: - vmImage: 'Ubuntu-latest' - -- job: TestLinux - displayName: Linux / - pool: - vmImage: 'Ubuntu-latest' - strategy: - matrix: - "3.6": - python.version: '3.6' - python.architecture: x64 - "3.7": - python.version: '3.7' - python.architecture: x64 - "3.8": - python.version: '3.8' - python.architecture: x64 - maxParallel: 8 - steps: - - template: .azure-pipelines/steps/run-tests.yml - parameters: - vmImage: 'Ubuntu-latest' - -- job: TestWindows - displayName: Windows / - timeoutInMinutes: 0 - pool: - vmImage: windows-latest - strategy: - matrix: - "3.6": - python.version: '3.6' - python.architecture: x64 - "3.7": - python.version: '3.7' - python.architecture: x64 - "3.8": - python.version: '3.8' - python.architecture: x64 - maxParallel: 8 - steps: - - template: .azure-pipelines/steps/run-tests.yml - parameters: - vmImage: windows-latest - -- job: TestMacOS - displayName: MacOS / - pool: - vmImage: macOS-latest - strategy: - matrix: - "3.6": - python.version: '3.6' - python.architecture: x64 - "3.7": - python.version: '3.7' - python.architecture: x64 - "3.8": - python.version: '3.8' - python.architecture: x64 - maxParallel: 8 - steps: - - template: .azure-pipelines/steps/run-tests.yml - parameters: - vmImage: macOS-latest