From 303f7f30dc6f4e8abac62cddbf1991ec31262a05 Mon Sep 17 00:00:00 2001 From: Franz-Benjamin Mocnik Date: Sun, 5 Dec 2021 04:01:30 +0100 Subject: [PATCH] setup improved dependencies for testing are now only installed on request --- README.md | 7 ++++++- setup.py | 8 ++++++-- version-history.md | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 56963da..0f9daea 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,12 @@ Please note that suppressing the messages means that you have to ensure on your ## Tests -You can test the package by running +You can test the package by installing the corresponding dependencies +```bash +pip install OSMPythonTools [test] +# or: pip3 install OSMPythonTools [test] +``` +and then running ```bash pytest --verbose ``` diff --git a/setup.py b/setup.py index 158ecf7..6ddf138 100644 --- a/setup.py +++ b/setup.py @@ -19,11 +19,15 @@ 'matplotlib', 'numpy', 'pandas', - 'pytest', - 'pytest-sugar', 'ujson', 'xarray', ], + extras_require={ + 'test': [ + 'pytest', + 'pytest-sugar', + ], + }, version=pkgVersion, author='Franz-Benjamin Mocnik', author_email='mail@mocnik-science.net', diff --git a/version-history.md b/version-history.md index c3639ea..2aa9dbb 100644 --- a/version-history.md +++ b/version-history.md @@ -9,6 +9,7 @@ Observe that some of the following versions include breaking changes: * [feature] access to history * [feature] caching strategies introduced * [feature] caching strategy `CachingStrategyPickle` +* [improvement] dependencies for testing are now only installed on request * [improvement; breaking change] timestamps are now returned as objects * [bug] metadata did not work for Api queries * [minor bug] version was not returned as an integer