Repository: Zuzu-Typ/PyGLM (language: python)

Issue:
Python 3.6 EOL
Python 3.6 has hit its end of life. No longer need to support it


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 7368b42..a3b52b5 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -6,6 +6,7 @@ on:
     
 env:
   CIBW_BUILD: cp3*
+  CIBW_SKIP: cp36-*
   CIBW_TEST_REQUIRES: pytest
   CIBW_TEST_COMMAND: pytest {project}/test/PyGLM_test.py -v
 
@@ -21,19 +22,22 @@ jobs:
       CIBW_ARCHS: ${{matrix.arch}}
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
 
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         name: Install Python
         with:
-          python-version: '3.10'
+          python-version: '3.11'
+
+      - name: Install cibuildwheel
+        run: python -m pip install cibuildwheel==2.11.2
 
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.2.2
+        run: python -m cibuildwheel --output-dir wheelhouse
 
-      - uses: actions/upload-artifact@v2
+      - uses: actions/upload-artifact@v3
         with:
           path: ./wheelhouse/*.whl
           
@@ -48,19 +52,22 @@ jobs:
       CIBW_ARCHS: ${{matrix.arch}}
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
 
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         name: Install Python
         with:
-          python-version: '3.10'
+          python-version: '3.11'
+
+      - name: Install cibuildwheel
+        run: python -m pip install cibuildwheel==2.11.2
 
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.2.2
+        run: python -m cibuildwheel --output-dir wheelhouse
 
-      - uses: actions/upload-artifact@v2
+      - uses: actions/upload-artifact@v3
         with:
           path: ./wheelhouse/*.whl
           
@@ -69,13 +76,11 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        distro: [manylinux2010, manylinux_2_24]
-        arch: [x86_64, i686]
+        distro: [manylinux_2_24, manylinux_2_28]
+        arch: [x86_64, aarch64, s390x]
         include:
           - distro: manylinux_2_24
-            arch: aarch64
-          - distro: manylinux_2_24
-            arch: s390x
+            arch: i686
         
     env:
       CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.distro }}
@@ -86,23 +91,26 @@ jobs:
       CIBW_ARCHS: ${{matrix.arch}}
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
 
       - name: Set up QEMU
         if: ${{ matrix.arch != 'x86_64' && matrix.arch != 'i686' }}
-        uses: docker/setup-qemu-action@v1
+        uses: docker/setup-qemu-action@v2
 
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         name: Install Python
         with:
-          python-version: '3.10'
+          python-version: '3.11'
+
+      - name: Install cibuildwheel
+        run: python -m pip install cibuildwheel==2.11.2
 
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.2.2
+        run: python -m cibuildwheel --output-dir wheelhouse
 
-      - uses: actions/upload-artifact@v2
+      - uses: actions/upload-artifact@v3
         with:
           path: ./wheelhouse/*.whl
           
@@ -122,23 +130,26 @@ jobs:
       CIBW_ARCHS: ${{matrix.arch}}
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
 
       - name: Set up QEMU
         if: ${{ matrix.arch != 'x86_64' && matrix.arch != 'i686' }}
-        uses: docker/setup-qemu-action@v1
+        uses: docker/setup-qemu-action@v2
 
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         name: Install Python
         with:
-          python-version: '3.10'
+          python-version: '3.11'
+
+      - name: Install cibuildwheel
+        run: python -m pip install cibuildwheel==2.11.2
 
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.2.2
+        run: python -m cibuildwheel --output-dir wheelhouse
 
-      - uses: actions/upload-artifact@v2
+      - uses: actions/upload-artifact@v3
         with:
           path: ./wheelhouse/*.whl
 
@@ -146,19 +157,19 @@ jobs:
     name: Build source distribution
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
 
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         name: Install Python
         with:
-          python-version: '3.10'
+          python-version: '3.11'
 
       - name: Build sdist
         run: python setup.py sdist
 
-      - uses: actions/upload-artifact@v2
+      - uses: actions/upload-artifact@v3
         with:
           path: dist/*.tar.gz
 
@@ -169,12 +180,12 @@ jobs:
     #if: github.event_name == 'release' && github.event.action == 'published'
     
     steps:
-      - uses: actions/download-artifact@v2
+      - uses: actions/download-artifact@v3
         with:
           name: artifact
           path: dist
 
-      - uses: pypa/gh-action-pypi-publish@v1.4.2
+      - uses: pypa/gh-action-pypi-publish@v1.5.1
         with:
           user: __token__
           password: ${{ secrets.pypi_password }}
diff --git a/version.h b/version.h
index 881179f..28616d8 100644
--- a/version.h
+++ b/version.h
@@ -1,1 +1,1 @@
-#define PyGLM_VERSION "2.5.7"
\ No newline at end of file
+#define PyGLM_VERSION "2.5.8"
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/deploy-test-pypi.yml b/.github/workflows/deploy-test-pypi.yml
index 949b111..cf23d15 100644
--- a/.github/workflows/deploy-test-pypi.yml
+++ b/.github/workflows/deploy-test-pypi.yml
@@ -1,9 +1,10 @@
 name: Build and upload to Test-PyPI
 
 on: workflow_dispatch
-
+    
 env:
   CIBW_BUILD: cp3*
+  CIBW_SKIP: cp36-*
   CIBW_TEST_REQUIRES: pytest
   CIBW_TEST_COMMAND: pytest {project}/test/PyGLM_test.py -v
 
@@ -73,13 +74,11 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        distro: [manylinux2010, manylinux_2_24]
-        arch: [x86_64, i686]
+        distro: [manylinux_2_24, manylinux_2_28]
+        arch: [x86_64, aarch64, s390x]
         include:
           - distro: manylinux_2_24
-            arch: aarch64
-          - distro: manylinux_2_24
-            arch: s390x
+            arch: i686
         
     env:
       CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.distro }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bdc2ddd..5f3d9d7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -13,23 +13,23 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
 
     # Steps represent a sequence of tasks that will be executed as part of the job
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
             submodules: recursive
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
-      - name: Build PyGLM
-        run: python setup.py install
-      - name: Install pytest
+      - name: Install pip and pytest
         run: |
           python -m pip install pip --upgrade
           pip install pytest
+      - name: Build PyGLM
+        run: pip install -e .
       - name: Test with pytest
         run: pytest test/PyGLM_test.py -v