From f0a60a499aadb38430e6861ff98f39014c91c9c3 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:01:32 -0600 Subject: [PATCH 01/11] feat: pytest matrix 3.9-3.13 --- .github/workflows/pytest.yml | 28 ++++++++++++++++++++++++++++ sleuth/requirements.txt | 19 ++++++++++--------- 2 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..7ce5fdf8 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,28 @@ +name: Pytest + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r sleuth/requirements.txt + pytest diff --git a/sleuth/requirements.txt b/sleuth/requirements.txt index 858d18c9..1a279624 100644 --- a/sleuth/requirements.txt +++ b/sleuth/requirements.txt @@ -1,23 +1,24 @@ attrs==23.2.0 boto3==1.35.97 botocore==1.35.97 -certifi==2024.7.4 +certifi==2024.12.14 chardet==5.2.0 -freezegun==1.2.2 -idna==3.7 +charset-normalizer==3.4.1 +freezegun==1.5.1 +idna==3.10 +iniconfig==2.0.0 jmespath==1.0.1 more-itertools==9.1.0 packaging==23.2 pluggy==1.5.0 -py==1.11.0 -pyparsing==3.1.1 -pytest==7.4.4 +pyparsing==3.2.1 +pytest==8.3.4 pytest-freezegun==0.4.2 -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 python-json-logger==2.0.7 requests==2.32.3 -s3transfer==0.6.1 -six==1.16.0 +s3transfer==0.10.4 +six==1.17.0 tabulate==0.9.0 urllib3==2.2.2 wcwidth==0.2.13 From 1384264d88d294bd77c8c9befea2cbb3d184b4af Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:19:02 -0600 Subject: [PATCH 02/11] chore(deps): updating urrlib3 and setuptools --- sleuth/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sleuth/requirements.txt b/sleuth/requirements.txt index 1a279624..633f1766 100644 --- a/sleuth/requirements.txt +++ b/sleuth/requirements.txt @@ -18,7 +18,8 @@ python-dateutil==2.9.0.post0 python-json-logger==2.0.7 requests==2.32.3 s3transfer==0.10.4 +setuptools==75.8.0 six==1.17.0 tabulate==0.9.0 -urllib3==2.2.2 +urllib3==2.3.0 wcwidth==0.2.13 From 09e768ce76ed980f7e3f9bdf6e1890dd52413000 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:30:05 -0600 Subject: [PATCH 03/11] chore(deps): update attrs --- sleuth/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleuth/requirements.txt b/sleuth/requirements.txt index 633f1766..b1ad9242 100644 --- a/sleuth/requirements.txt +++ b/sleuth/requirements.txt @@ -1,4 +1,4 @@ -attrs==23.2.0 +attrs==24.3.0 boto3==1.35.97 botocore==1.35.97 certifi==2024.12.14 From 97cc9d61e0fe6b902b01acc66c821c5436b971e7 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:30:44 -0600 Subject: [PATCH 04/11] ci: testing env vars --- .github/workflows/pytest.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 7ce5fdf8..9265eaad 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -23,6 +23,4 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r sleuth/requirements.txt - pytest + env From d51d9a9cc93a1bddcf99bb4848257ae114ed61c9 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:40:13 -0600 Subject: [PATCH 05/11] chore: testing env vars --- .github/workflows/pytest.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 9265eaad..1ad1f932 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -7,14 +7,13 @@ on: pull_request: branches: - main - jobs: pytest: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] - + environment: ${{ vars.AWS_REGION }} steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} From d527dcd7cfcfafc8c06046bf236bdc33885c77f6 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:46:06 -0600 Subject: [PATCH 06/11] ci: testing env vars --- .github/workflows/pytest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1ad1f932..f1145a4c 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -13,7 +13,8 @@ jobs: strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] - environment: ${{ vars.AWS_REGION }} + env: + REGION: ${{ vars.AWS_REGION }} steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} From f8b16f21462a3d69022e8c6947d29ab6afd43703 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:48:32 -0600 Subject: [PATCH 07/11] ci: testing env vars --- .github/workflows/pytest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f1145a4c..d5f1f305 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,7 +14,8 @@ jobs: matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] env: - REGION: ${{ vars.AWS_REGION }} + AWS_REGION: ${{ vars.AWS_REGION }} + AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }} steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} From 6d0db49c5e9cd61e2573b57866f18d98c96dd23d Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:50:19 -0600 Subject: [PATCH 08/11] feat: add pytest back --- .github/workflows/pytest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index d5f1f305..c19f101e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -24,4 +24,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - env + python -m pip install --upgrade pip + pip install -r sleuth/requirements.txt + pytest From 40ab8b168f073730d97a834286e00aca168a6e06 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:57:52 -0600 Subject: [PATCH 09/11] ci: ignore warnings --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..1ceab942 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = -p no:warnings From b9730fc771d42f3e02f7fe64536e8062e4d792eb Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:23:47 -0600 Subject: [PATCH 10/11] chore: removed unused packages --- sleuth/requirements.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sleuth/requirements.txt b/sleuth/requirements.txt index b1ad9242..c0d1c17b 100644 --- a/sleuth/requirements.txt +++ b/sleuth/requirements.txt @@ -1,25 +1,20 @@ -attrs==24.3.0 boto3==1.35.97 botocore==1.35.97 certifi==2024.12.14 -chardet==5.2.0 charset-normalizer==3.4.1 freezegun==1.5.1 idna==3.10 iniconfig==2.0.0 jmespath==1.0.1 -more-itertools==9.1.0 -packaging==23.2 +packaging==24.2 pluggy==1.5.0 -pyparsing==3.2.1 pytest==8.3.4 pytest-freezegun==0.4.2 python-dateutil==2.9.0.post0 -python-json-logger==2.0.7 +python-json-logger==3.2.1 requests==2.32.3 s3transfer==0.10.4 setuptools==75.8.0 six==1.17.0 tabulate==0.9.0 urllib3==2.3.0 -wcwidth==0.2.13 From 6e75527e739c1b9c4b91fd3c731859cd07c94224 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:25:09 -0600 Subject: [PATCH 11/11] fix: removing Python 3.9 from matrix --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c19f101e..35bb50ba 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13"] env: AWS_REGION: ${{ vars.AWS_REGION }} AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}