chore: validate release by imabhichow · Pull Request #768 · aws/aws-encryption-sdk-python
Expand Up
@@ -52,6 +52,8 @@ envlist =
# build :: Builds source and wheel dist files.
# test-release :: Builds dist files and uploads to testpypi pypirc profile.
# release :: Builds dist files and uploads to pypi pypirc profile.
# validate-pypi-release :: Tests a released version from PyPI instead of source.
# validate-pypi-release-mpl :: Tests a released version with MPL features.
# Reporting environments: # Expand Down Expand Up @@ -395,3 +397,48 @@ passenv = commands = {[testenv:release-base]commands} twine upload --skip-existing --repository pypi {toxinidir}/dist/*
# Test the PyPI released version (not local source code) [testenv:py-validate-base] basepython = python3 skip_install = true passenv = {[testenv]passenv} deps = pytest pytest-mock mock coverage # Add dev requirements for testing -rdev_requirements/test-requirements.txt
# Standard test environment for PyPI-released version (no MPL) [testenv:validate-pypi-release] basepython = {[testenv:py-validate-base]basepython} skip_install = {[testenv:py-validate-base]skip_install} passenv = {[testenv:py-validate-base]passenv} deps = {[testenv:py-validate-base]deps} setenv = VERSION = {env:VERSION:latest} commands = # Install the specified version from PyPI (without MPL extras) pip install "aws-encryption-sdk=={env:VERSION}" --force-reinstall # Run non-MPL examples {[testenv:base-command]commands} examples/test/legacy/ -m examples
# MPL test environment for PyPI-released version [testenv:validate-pypi-release-mpl] basepython = {[testenv:py-validate-base]basepython} skip_install = {[testenv:py-validate-base]skip_install} passenv = {[testenv:py-validate-base]passenv} deps = {[testenv:py-validate-base]deps} boto3 setenv = VERSION = {env:VERSION:latest} commands = # Install the specified version from PyPI with MPL extras pip install "aws-encryption-sdk[MPL]=={env:VERSION}" --force-reinstall # Install MPL requirements needed for MPL examples pip install -r requirements_mpl.txt # Run MPL-specific examples {[testenv:base-command]commands} examples/test/ -m examples --ignore examples/test/legacy/
# Reporting environments: # Expand Down Expand Up @@ -395,3 +397,48 @@ passenv = commands = {[testenv:release-base]commands} twine upload --skip-existing --repository pypi {toxinidir}/dist/*
# Test the PyPI released version (not local source code) [testenv:py-validate-base] basepython = python3 skip_install = true passenv = {[testenv]passenv} deps = pytest pytest-mock mock coverage # Add dev requirements for testing -rdev_requirements/test-requirements.txt
# Standard test environment for PyPI-released version (no MPL) [testenv:validate-pypi-release] basepython = {[testenv:py-validate-base]basepython} skip_install = {[testenv:py-validate-base]skip_install} passenv = {[testenv:py-validate-base]passenv} deps = {[testenv:py-validate-base]deps} setenv = VERSION = {env:VERSION:latest} commands = # Install the specified version from PyPI (without MPL extras) pip install "aws-encryption-sdk=={env:VERSION}" --force-reinstall # Run non-MPL examples {[testenv:base-command]commands} examples/test/legacy/ -m examples
# MPL test environment for PyPI-released version [testenv:validate-pypi-release-mpl] basepython = {[testenv:py-validate-base]basepython} skip_install = {[testenv:py-validate-base]skip_install} passenv = {[testenv:py-validate-base]passenv} deps = {[testenv:py-validate-base]deps} boto3 setenv = VERSION = {env:VERSION:latest} commands = # Install the specified version from PyPI with MPL extras pip install "aws-encryption-sdk[MPL]=={env:VERSION}" --force-reinstall # Install MPL requirements needed for MPL examples pip install -r requirements_mpl.txt # Run MPL-specific examples {[testenv:base-command]commands} examples/test/ -m examples --ignore examples/test/legacy/