Repository: DocNow/twarc (language: python)

Issue:
“python_requires” should be set with “>=3.6”, but twarc 2.12.0 set as ">=3.3".
Currently, the keyword argument **python_requires** of **setup()** is set as ">=3.3", but I found it is not compatible with **Python<3.6**. My local Python version is 3.5, and I encounter the following error when executing “pip install twarc==2.12.0”

```
Collecting twarc==2.12.0
  Downloading twarc-2.12.0-py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 630 kB/s 
Collecting tqdm>=4.62
  Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
     |████████████████████████████████| 78 kB 2.1 MB/s 
Collecting click<9,>=7
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     |████████████████████████████████| 82 kB 1.0 MB/s 
Collecting python-dateutil>=2.8
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 4.4 MB/s 
ERROR: Could not find a version that satisfies the requirement humanize>=3.9 (from twarc)
ERROR: No matching distribution found for humanize>=3.9
```

Dependencies of this distribution are listed as follows:

```
click>=7,<9
click-config-file>=0.6
click-plugins>=1
humanize>=3.9
python-dateutil>=2.8
requests_oauthlib>=1.3
tqdm>=4.62
```

I found that **humanize>=3.9** requires **Python>=3.6**, which results in installation failure of twarc in Python3.5.

Way to fix:
modify **setup()** in **setup.py**, amend **python_requires** keyword argument
```
setup(…
     python_requires='>=3.6'
     …)
```
Thanks for your attention.
Best regrads,
PyVCEchecker


Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index 1794c1d3..91d32459 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@
         classifiers=[
             "License :: OSI Approved :: MIT License",
         ],
-        python_requires=">=3.3",
+        python_requires=">=3.6",
         install_requires=dependencies,
         setup_requires=["pytest-runner"],
         tests_require=[


Test patch:
diff --git a/test_twarc2.py b/test_twarc2.py
index 429c0b5c..b2a8d3b3 100644
--- a/test_twarc2.py
+++ b/test_twarc2.py
@@ -110,10 +110,10 @@ def test_search_recent(sort_order):
         tweets = response_page["data"]
         found_tweets += len(tweets)
 
-        if pages == 3:
+        if pages == 2:
             break
 
-    assert 200 <= found_tweets <= 300
+    assert 100 <= found_tweets <= 200
 
 
 def test_counts_recent():