From a09e462940452f4f3e305a9d9ef731f19bfc200c Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 30 Apr 2021 16:56:17 -0700 Subject: [PATCH 1/7] feat: document running multiple envs at once Very helpful for speeding testing up. --- getting-started/python/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 453a84e..8a91613 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -31,7 +31,9 @@ and how to get started developing on these projects. `THREADS` at a time. Adjust `THREADS` as appropriate for your environment. (ex: `tox -r -p 7`) - + - `tox -e py38-accept,py38-examples,py38-integ,py38-local -p 3` : + Runs the listed enviorments (here, all of `py38`) with 3 workers. + - We use [`pytest`](https://docs.pytest.org/) to run our tests. - We use a variety of autoformatting and static analysis tools to ensure consistency among our projects. From 8c8e89ef0d2e9cd6f9bc168eb5377d813deeb2b2 Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 30 Apr 2021 17:03:51 -0700 Subject: [PATCH 2/7] fix: pyenv install; add 3.9.0 The former line would fail (at least in my shell) as two spaces would be prefixed with the version. I think bash will happily discard the spaces if it is not saved as a variable... otherwise it keeps them as the value. Also added 3.9.0 for [py39](https://github.com/aws/aws-encryption-sdk-python/blob/2e3ca4c5eb6843e0cf550e5a67f77ccb1e561dc3/tox.ini#L3) --- getting-started/python/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 8a91613..98844a0 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -95,9 +95,9 @@ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile # Install latest Python versions for MINOR_VERSION in 2.7 3.5 3.6 3.7 3.8;do - PYTHON_VERSION=$(pyenv install -l | grep "^ ${MINOR_VERSION}" | tail -1) - pyenv install ${PYTHON_VERSION} + pyenv install $(pyenv install -l | grep "^ ${MINOR_VERSION}" | tail -1) done +pyenv install 3.9.0 # set "local" pyenv version # just sets .python-version file in current directory From 6017aed1a0299203db94ffcb937304e3442593c6 Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Sat, 1 May 2021 13:59:45 -0700 Subject: [PATCH 3/7] doc(getting-started-python): tox tab completions --- getting-started/python/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 98844a0..8554793 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -117,3 +117,8 @@ exec "$SHELL" pipx install tox pipx inject tox tox-pyenv ``` + +## `tox` tab completion +Given the number of `tox` enviorments, it can be very helpful to setup tab completion. +For `zsh`, [here is a `tox` completion](https://github.com/zsh-users/zsh-completions/blob/master/src/_tox) compdef. +The whole `zsh-completions` repo can be installed, or you can just download the `_tox` file and add it to your `fpath` before running `autoload -Uz compinit && compinit -i`. From 363b3f825c7df989c9711a14493d042914bb50c3 Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:08:07 -0700 Subject: [PATCH 4/7] Update getting-started/python/README.md --- getting-started/python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 8554793..59738bd 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -94,7 +94,7 @@ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile # https://github.com/pyenv/pyenv/wiki#suggested-build-environment # Install latest Python versions -for MINOR_VERSION in 2.7 3.5 3.6 3.7 3.8;do +for MINOR_VERSION in 2.7 3.5 3.6 3.7 3.8 3.9;do pyenv install $(pyenv install -l | grep "^ ${MINOR_VERSION}" | tail -1) done pyenv install 3.9.0 From cca7776e2b2a74d97c8f563f21f9ef73920ea15a Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:22:48 -0700 Subject: [PATCH 5/7] Update getting-started/python/README.md Co-authored-by: Ben Farley <47006790+farleyb-amazon@users.noreply.github.com> --- getting-started/python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 59738bd..1e0cb5a 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -119,6 +119,6 @@ pipx inject tox tox-pyenv ``` ## `tox` tab completion -Given the number of `tox` enviorments, it can be very helpful to setup tab completion. +Given the number of `tox` environments, it can be very helpful to setup tab completion. For `zsh`, [here is a `tox` completion](https://github.com/zsh-users/zsh-completions/blob/master/src/_tox) compdef. The whole `zsh-completions` repo can be installed, or you can just download the `_tox` file and add it to your `fpath` before running `autoload -Uz compinit && compinit -i`. From 2977786b89eea8afca61f88845eb6a8144eae12b Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:22:56 -0700 Subject: [PATCH 6/7] Update getting-started/python/README.md Co-authored-by: Ben Farley <47006790+farleyb-amazon@users.noreply.github.com> --- getting-started/python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 1e0cb5a..0007fa3 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -32,7 +32,7 @@ and how to get started developing on these projects. Adjust `THREADS` as appropriate for your environment. (ex: `tox -r -p 7`) - `tox -e py38-accept,py38-examples,py38-integ,py38-local -p 3` : - Runs the listed enviorments (here, all of `py38`) with 3 workers. + Runs the listed environments (here, all of `py38`) with 3 workers. - We use [`pytest`](https://docs.pytest.org/) to run our tests. - We use a variety of autoformatting and static analysis tools From 67b70e029e206a3cf299b84bed3af3161596be34 Mon Sep 17 00:00:00 2001 From: Tony Knapp <5892063+texastony@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:26:24 -0700 Subject: [PATCH 7/7] Update getting-started/python/README.md --- getting-started/python/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/getting-started/python/README.md b/getting-started/python/README.md index 0007fa3..6144338 100644 --- a/getting-started/python/README.md +++ b/getting-started/python/README.md @@ -97,7 +97,6 @@ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile for MINOR_VERSION in 2.7 3.5 3.6 3.7 3.8 3.9;do pyenv install $(pyenv install -l | grep "^ ${MINOR_VERSION}" | tail -1) done -pyenv install 3.9.0 # set "local" pyenv version # just sets .python-version file in current directory