Repository: qurator-spk/eynollah (language: python)

Issue:
Support numpy version 1.24.x
numpy version `1.24.0` had several deprecations expire which breaks our codebase. We need to update our code to adapt for the expirations.

See also here: https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations


Discussion / hints:
@vahidrezanezhad I believe the main code change required from us is relating to this 

> The deprecation for the aliases np.object, np.bool, np.float, np.complex, np.str, and np.int is expired (introduced in NumPy 1.20). Some of these will now give a FutureWarning in addition to raising an error since they will be mapped to the NumPy scalars in the future.

Fix patch:
diff --git a/.circleci/config.yml b/.circleci/config.yml
index a782d8f..d2b7057 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -47,5 +47,5 @@ workflows:
   version: 2
   build:
     jobs:
-      - build-python37
+      # - build-python37
       - build-python38
diff --git a/README.md b/README.md
index 003cc2d..47d81bc 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,9 @@
 * [OCR-D](https://github.com/qurator-spk/eynollah#use-as-ocr-d-processor) interface
 
 ## Installation
-Python versions `3.7-3.10` with Tensorflow versions `2.4-2.11` are currently supported. 
+Python versions `3.8-3.11` with Tensorflow versions >=`2.12` are currently supported. 
 
-For (limited) GPU support the [matching](https://www.tensorflow.org/install/source#gpu) CUDA toolkit needs to be installed.
+For (limited) GPU support the CUDA toolkit needs to be installed.
 
 You can either install via 
 
diff --git a/requirements.txt b/requirements.txt
index a19a191..530dac2 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,7 +2,7 @@
 ocrd >= 2.23.3
 numpy <1.24.0
 scikit-learn >= 0.23.2
-tensorflow >= 2.4.0, <2.12.0
+tensorflow >=2.12.0
 imutils >= 0.5.3
 matplotlib
 setuptools >= 50


Test patch:
diff --git a/.github/workflows/test-eynollah.yml b/.github/workflows/test-eynollah.yml
index e06cb35..30c9729 100644
--- a/.github/workflows/test-eynollah.yml
+++ b/.github/workflows/test-eynollah.yml
@@ -3,7 +3,7 @@
 
 name: Python package
 
-on: [push, pull_request]
+on: [push]
 
 jobs:
   build:
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ['3.7', '3.8']
+        python-version: ['3.8', '3.9', '3.10', '3.11']
 
     steps:
     - uses: actions/checkout@v2
@@ -33,4 +33,4 @@ jobs:
         pip install .
         pip install -r requirements-test.txt
     - name: Test with pytest
-      run: make test
\ No newline at end of file
+      run: make test