From 505288c63b8dd42e4bec168cf7fad66815070079 Mon Sep 17 00:00:00 2001 From: Baptiste Pasquier Date: Mon, 18 Mar 2024 14:21:55 +0100 Subject: [PATCH 1/4] update pandas --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f4d4026..b9612f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ spacy = ">=3.0.5" pillow = ">=8.2.1" thinc = ">=8.0.4" stop-words = ">=2018.7.23" -pandas = "^1.3" +pandas = ">=1.3,<3.0" pyarrow = ">=4.0.0" fastparquet = ">=0.4.1" dask = {version = ">=2021.5.0", extras = ["complete"], optional = true} From 918f92820a92786fa044b4debbb21c2effc982bf Mon Sep 17 00:00:00 2001 From: Baptiste Pasquier Date: Mon, 18 Mar 2024 14:22:04 +0100 Subject: [PATCH 2/4] update ruff --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b9612f8..821bb1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,7 @@ torch = {version = "^1.9.0", optional = true} isort = ">=5.8.0" pyupgrade = ">=2.12.0" black = ">=20.8b1" -ruff = "^0.1.5" +ruff = ">=0.1.5,<0.4.0" mypy = ">=0.812" bandit = ">=1.7.0" safety = ">=1.10.3" From fedd221724cbc4fb42db1f29f1c6b10919ce1d78 Mon Sep 17 00:00:00 2001 From: Baptiste Pasquier Date: Mon, 18 Mar 2024 14:27:51 +0100 Subject: [PATCH 3/4] allow python 3.11 --- .github/workflows/ci.yml | 2 +- README.md | 2 +- docs/source/index.rst | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32722f7..0c0d50b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] if: ${{ !contains(github.event.pull_request.labels.*.name, 'draft') }} steps: diff --git a/README.md b/README.md index 3b73860..d4ebabd 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Cannot find what you were looking for? Feel free to open an [issue]((https://git ### Supported Python Versions - Main version supported : `3.8` -- Other supported versions : `3.9`, `3.10` +- Other supported versions : `3.9`, `3.10`, `3.11` We strongly advise you to do the remaining steps in a virtual environnement. diff --git a/docs/source/index.rst b/docs/source/index.rst index c64664e..05334dd 100755 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -11,7 +11,7 @@ The NLPretext library aimed to be a meta-library to be used to help you get star # Installation -Beware, this package has been tested on Python `3.8`, `3.9` & `3.10` and will probably not be working under python **2.7** as **Python2.7** EOL is scheduled for December 2019. +Beware, this package has been tested on Python `3.8`, `3.9`, `3.10` & `3.11` and will probably not be working under python **2.7** as **Python2.7** EOL is scheduled for December 2019. To install this library you should first clone the repository: diff --git a/pyproject.toml b/pyproject.toml index 821bb1d..0a195e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ classifiers = [ # Update me "nlpretext" = "nlpretext.cli.__main__:app" [tool.poetry.dependencies] -python = ">=3.8,<3.11" +python = ">=3.8,<3.12" typer = {extras = ["all"], version = ">=0.3.2"} rich = ">=10.1" chardet = ">=3.0.4" From acba079ed4b2ce0841a63542dae6c76071e23580 Mon Sep 17 00:00:00 2001 From: Baptiste Pasquier Date: Mon, 18 Mar 2024 14:28:37 +0100 Subject: [PATCH 4/4] run black --- tests/test_preprocessor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_preprocessor.py b/tests/test_preprocessor.py index bd9a83f..5da73f0 100644 --- a/tests/test_preprocessor.py +++ b/tests/test_preprocessor.py @@ -58,7 +58,10 @@ @pytest.mark.parametrize( "text, expected_result", [ - ("ACV water + cinnamon + turmeric + cucumber + lemon. 👍🏻", [":thumbs_up_light_skin_tone:"]), + ( + "ACV water + cinnamon + turmeric + cucumber + lemon. 👍🏻", + [":thumbs_up_light_skin_tone:"], + ), ("This is a text without emojis", []), ], )