Repository: netromdk/vermin

Issue:
pathlib module missing in checks
**Describe the bug**
The pathlib module is available since python 3.4 and is not in the checks

**To Reproduce**
Code using the pathlib module not having a minimum version of 3.4

**Expected behavior**
The minimum version should then be python 3.4 and no python 2 support

**Environment (please complete the following information):**
Vermin 0.4.4


Discussion:
coveralls: 
[![Coverage Status](https://coveralls.io/builds/17970201/badge)](https://coveralls.io/builds/17970201)

Coverage decreased (-0.4%) to 94.631% when pulling **1598d1fcf288080ba827c4736cf995330f9f3256 on Darkheir:pathlib_import** into **653670b33ca9a54c95bd1ae06c56ce7474197a82 on netromdk:master**.

Darkheir: Hum the check is failing on python 3.3 because its support has been dropped in wheel
```
wheel requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' but the running Python is 3.3.6
```
netromdk: Thanks for adding this, @Darkheir!

If you wish to provide further, I see that there were things added/changed to `pathlib` in versions 3.5, 3.6, and 3.7 wrt. functions and parameters.

Patch:
diff --git a/.travis.yml b/.travis.yml
index ef67b64..2726025 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,8 @@ python:
 install:
 - pip install -U pip virtualenv
 script:
-- if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then make setup-venv setup-coverage test-coverage; else make test; fi
-- if [[ $TRAVIS_PYTHON_VERSION > 3.2 ]]; then make setup-misc; source .venv/bin/activate; make check; fi
-- if [[ $TRAVIS_PYTHON_VERSION > 3.2 && $TRAVIS_PYTHON_VERSION < 3.7 ]]; then make setup-bandit; source .venv/bin/activate; make security-check; fi
+- if [[ $TRAVIS_PYTHON_VERSION != 3.2 && $TRAVIS_PYTHON_VERSION != 3.3 ]]; then make setup-venv setup-coverage test-coverage; else make test; fi
+- if [[ $TRAVIS_PYTHON_VERSION > 3.3 ]]; then make setup-misc; source .venv/bin/activate; make check; fi
+- if [[ $TRAVIS_PYTHON_VERSION > 3.3 && $TRAVIS_PYTHON_VERSION < 3.7 ]]; then make setup-bandit; source .venv/bin/activate; make security-check; fi
 after_success:
-- if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then make coveralls; fi
+- if [[ $TRAVIS_PYTHON_VERSION != 3.2 && $TRAVIS_PYTHON_VERSION != 3.3 ]]; then make coveralls; fi
diff --git a/vermin/rules.py b/vermin/rules.py
index 947d5b9..d54363e 100644
--- a/vermin/rules.py
+++ b/vermin/rules.py
@@ -75,6 +75,7 @@ MOD_REQS = {
   "numbers": (2.6, 3.0),
   "optparse": (2.3, 3.0),
   "ossaudiodev": (2.3, 3.0),
+  "pathlib": (None, 3.4),
   "pickletools": (2.3, 3.0),
   "pkgutil": (2.3, 3.0),
   "platform": (2.3, 3.0),


Test patch:
diff --git a/tests/module.py b/tests/module.py
index b8316fa..9900459 100644
--- a/tests/module.py
+++ b/tests/module.py
@@ -349,3 +349,6 @@ class VerminModuleTests(VerminTest):
 
   def test_venv(self):
     self.assertOnlyIn(3.3, detect("import venv"))
+
+  def test_pathlib(self):
+    self.assertOnlyIn(3.4, detect("import pathlib"))