From e540771ac93963990f21d3ba37f84e92d34e857f Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Wed, 29 Nov 2023 14:45:07 +0100
Subject: [PATCH 1/3] feature(package): update supported python versions
---
setup.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index cd447e4..af8ae9f 100644
--- a/setup.py
+++ b/setup.py
@@ -23,9 +23,11 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
- "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
"Topic :: Security"
]
From 79ed930db5211e2fffdb33a9db650993bf2e9b66 Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Wed, 29 Nov 2023 14:45:37 +0100
Subject: [PATCH 2/3] chore(ci): setup python test job
---
.github/workflows/python.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 .github/workflows/python.yml
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
new file mode 100644
index 0000000..19658f7
--- /dev/null
+++ b/.github/workflows/python.yml
@@ -0,0 +1,25 @@
+name: Python package CI
+
+on: [ push, pull_request ]
+
+jobs:
+ test:
+
+ runs-on: ubuntu-20.04
+ strategy:
+ matrix:
+ python-version: [ "3.9", "3.10", "3.11", "3.12" ]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install setuptools wheel
+ - name: Build dist
+ run: |
+ python setup.py sdist bdist_wheel
From de02b86ca484d3629a5c446064993a2c9ae9e95d Mon Sep 17 00:00:00 2001
From: piotr-roslaniec <39299780+piotr-roslaniec@users.noreply.github.com>
Date: Thu, 30 Nov 2023 16:25:38 +0100
Subject: [PATCH 3/3] Apply suggestions from code review
Co-authored-by: Derek Pierre
---
.github/workflows/python.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 19658f7..1c7cc8b 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
- python-version: [ "3.9", "3.10", "3.11", "3.12" ]
+ python-version: [ "3.9", "3.12" ]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies