From f6c8ee30034fc459873ea20f5e04ff599c792128 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Fri, 15 Sep 2023 22:05:38 +0100 Subject: [PATCH] Add downloader --- README.md | 2 +- setup.py | 8 ++++---- src/faststylometry/__init__.py | 2 +- src/faststylometry/examples.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0be920c..51bf870 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ Wood, T.A., Fast Stylometry [Computer software], Version 1.0.2, accessed at [htt ``` @unpublished{faststylometry, AUTHOR = {Wood, T.A.}, - TITLE = {Fast Stylometry (Computer software), Version 1.0.3}, + TITLE = {Fast Stylometry (Computer software), Version 1.0.4}, YEAR = {2023}, Note = {To appear}, } diff --git a/setup.py b/setup.py index e2d8b2b..c2cb924 100644 --- a/setup.py +++ b/setup.py @@ -67,10 +67,10 @@ ], python_requires=">=3.6", install_requires=[ - 'numpy==1.24.3', - 'pandas==2.1.0', - 'scikit-learn==1.3.0', - 'wget==3.2', + 'numpy<=1.24.3,>=1.18', + 'pandas<=2.1.0,>=1.5.3', + 'scikit-learn<=1.3.0,>=1.2.0', + 'wget>=3.0,<4.0', ], extras_require={ "dev": ["check-manifest"], diff --git a/src/faststylometry/__init__.py b/src/faststylometry/__init__.py index c614e30..4466a72 100644 --- a/src/faststylometry/__init__.py +++ b/src/faststylometry/__init__.py @@ -27,7 +27,7 @@ ''' -__version__ = "1.0.3" +__version__ = "1.0.4" from faststylometry.corpus import Corpus diff --git a/src/faststylometry/examples.py b/src/faststylometry/examples.py index 962dc3c..23f9832 100644 --- a/src/faststylometry/examples.py +++ b/src/faststylometry/examples.py @@ -56,10 +56,10 @@ def download_examples(): os.makedirs(data_path) if os.path.exists("data/train") and len(os.listdir("data/train")) > 0: - print("data/train is not empty. Exiting the downloader.") # + print("data/train is not empty. If you want to download the example corpus, please delete or rename this folder.") # return if os.path.exists("data/test") and len(os.listdir("data/test")) > 0: - print("data/test is not empty. Exiting the downloader.") # + print("data/test is not empty. If you want to download the example corpus, please delete or rename this folder.") # return url = 'https://raw.githubusercontent.com/fastdatascience/faststylometry/main/data/train_test.zip'