Repository: joaopfonseca/ml-research (language: python)

Issue:
Add support for Python 3.11



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 40e9e97..06c6803 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,7 +40,7 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python: [3.8, 3.9, "3.10"]
+        python: [3.8, 3.9, "3.10", 3.11]
     name: ${{ matrix.os }} Python ${{ matrix.python }}
     runs-on: ${{ matrix.os }}
     steps:
diff --git a/README.md b/README.md
index 33178cf..d23bd85 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,8 @@ ______________________________________________________________________
 <a href="https://codecov.io/gh/joaopfonseca/ml-research"><img alt="Codecov" src="https://codecov.io/gh/joaopfonseca/ml-research/branch/master/graph/badge.svg?token=J2EBA4YTMN"></a>
 <a href="https://mlresearch.readthedocs.io/en/latest/?badge=latest"><img alt="Documentation Status" src="https://readthedocs.org/projects/mlresearch/badge/?version=latest"></a>
 <a href="https://github.com/psf/black"><img alt="Black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
-<a href="https://img.shields.io/badge/python-3.8%20|%203.9-blue"><img alt="Python Versions" src="https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10-blue"></a>
-<a href="https://doi.org/10.3390/RS13132619"><img alt="DOI" src="https://zenodo.org/badge/DOI/10.3390/RS13132619.svg"></a>
+<a href="https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11-blue"><img alt="Python Versions" src="https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11-blue"></a>
+<a href="https://doi.org/10.1155/2023/7941878"><img alt="DOI" src="https://zenodo.org/badge/DOI/10.1155/2023/7941878.svg"></a>
 </p>
 <table align="center">
   <tr>
@@ -88,7 +88,7 @@ project with minimal effort:
     conda activate mlresearch # Adapt this line accordingly if you're not running conda
 
     # Install project requirements and the research package. Dependecy group
-    # "all" will also install both dependency groups shown below.
+    # "all" will also install the dependency groups shown below.
     pip install .[optional,tests,docs] 
 
 ## Citing ML-Research
@@ -96,16 +96,11 @@ project with minimal effort:
 If you use ML-Research in a scientific publication, we would appreciate
 citations to the following paper:
 
-    @article{Fonseca2021,
-      doi = {10.3390/RS13132619},
-      url = {https://doi.org/10.3390/RS13132619},
-      keywords = {SMOTE,active learning,artificial data generation,land use/land cover classification,oversampling},
-      year = {2021},
-      month = {jul},
-      publisher = {Multidisciplinary Digital Publishing Institute},
-      volume = {13},
-      pages = {2619},
-      author = {Fonseca, Joao and Douzas, Georgios and Bacao, Fernando},
-      title = {{Increasing the Effectiveness of Active Learning: Introducing Artificial Data Generation in Active Learning for Land Use/Land Cover Classification}},
-      journal = {Remote Sensing}
+    @article{fonseca2023improving,
+      title={Improving Active Learning Performance through the Use of Data Augmentation},
+      author={Fonseca, Joao and Bacao, Fernando and others},
+      journal={International Journal of Intelligent Systems},
+      volume={2023},
+      year={2023},
+      publisher={Hindawi}
     }
diff --git a/setup.py b/setup.py
index 82ed91c..452890c 100644
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,10 @@ def get_long_description() -> str:
     "Operating System :: POSIX",
     "Operating System :: Unix",
     "Operating System :: MacOS",
-    "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",
 ]
 INSTALL_REQUIRES = (min_deps.tag_to_packages["install"],)
 EXTRAS_REQUIRE = {


Test patch:
diff --git a/mlresearch/utils/tests/test_load_datasets.py b/mlresearch/utils/tests/test_load_datasets.py
index b2ff82c..00492ae 100644
--- a/mlresearch/utils/tests/test_load_datasets.py
+++ b/mlresearch/utils/tests/test_load_datasets.py
@@ -27,7 +27,10 @@ def test_load_datasets():
         "sample_data_base.db"
     ]
     for file in files:
-        remove(file)
+        try:
+            remove(file)
+        except PermissionError:
+            pass
 
     exp_csv_datasets = [f"{name.upper()} DATA FILE" for name in DATASET_NAMES]
     exp_db_datasets = [name.upper() for name in DATASET_NAMES]