Repository: scossin/iamsystem_python (language: python)

Issue:
Update to version 0.6.1



Discussion / hints:

Fix patch:
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index cccf40e..5df9241 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -17,7 +17,7 @@ build:
 
 # Build documentation in the docs/ directory with Sphinx
 sphinx:
-   configuration: docs/source/conf.py
+  configuration: docs/source/conf.py
 
 # If using Sphinx, optionally build your docs in additional formats such as PDF
 # formats:
@@ -25,6 +25,8 @@ sphinx:
 
 # Optionally declare the Python requirements required to build your docs
 python:
-   install:
-   - requirements: requirements-dev.txt
-   - requirements: docs/requirements-doc.txt
+  install:
+    - method: pip
+      path: .
+      extra_requirements:
+        - doc
diff --git a/docs/requirements-doc.txt b/docs/requirements-doc.txt
deleted file mode 100644
index 71dae2b..0000000
--- a/docs/requirements-doc.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-docutils==0.16
-sphinx==5.3.0
-sphinx_rtd_theme==1.1.1
diff --git a/pyproject.toml b/pyproject.toml
index 3b755f9..780522b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,15 +20,26 @@ classifiers = [
 ]
 keywords = ["NLP", "semantic annotation", "entity linking"]
 dependencies = [
-    "anyascii>=0.3.2",
-    "typing_extensions>=4.7.0",
-    "spellwise>=0.8.0",
-    "pysimstring~=1.2.1",
+    "anyascii",
+    "pysimstring",
+    "spellwise",
+    "typing_extensions",
 ]
 
 [project.optional-dependencies]
-tests = ['nltk>=3.8.0', 'spacy>=3.2.0']
-doc = ["sphinx"]
+dev = [
+    "black",
+    "flake8",
+    "pre-commit",
+]
+doc = [
+    "sphinx",
+    "sphinx-rtd-theme",
+]
+tests = [
+    "nltk",
+    "spacy",
+]
 
 [project.urls]
 "Homepage" = "https://github.com/scossin/iamsystem_python"
diff --git a/requirements-dev.txt b/requirements-dev.txt
deleted file mode 100644
index 85b59ad..0000000
--- a/requirements-dev.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-anyascii>=0.3.2
-typing_extensions>=4.7.0; python_version>="3.12"
-typing_extensions~=4.4.0; python_version<"3.12"
-spellwise>=0.8.0
-nltk>=3.8.0
-spacy>=3.2.0
-pysimstring~=1.2.1
-black
-flake8
-pre-commit
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index 91bc7ef..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-anyascii>=0.3.2
-typing_extensions>=4.7.0; python_version>="3.12"
-typing_extensions~=4.4.0; python_version<"3.12"
-spellwise>=0.8.0
-pysimstring~=1.2.1


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c9ad6a2..4f4451b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -29,7 +29,7 @@ jobs:
       run: |
         python -m pip install --upgrade pip
         python -m pip install flake8
-        pip install -r requirements-dev.txt
+        pip install '.[dev,tests]'
     - name: Lint with flake8
       run: |
         # stop the build if there are Python syntax errors or undefined names