From e4ba196c3416e062ff5497a7d6e148ef874c422f Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 26 Nov 2018 12:26:56 -0500 Subject: [PATCH] Update and fix dependencies. The way the dependencies are specified is too specific, and is causing a bunch of conflicts elsewhere. Let's update setup.py to do things the right way, then update requirements-dev.txt with `pip freeze > requirements-dev.txt`. --- .travis.yml | 2 +- requirements-dev.txt | 24 +++++++++++++++++------- setup.py | 12 ++++++++---- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index ea36ead..dec568c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ cache: pip python: 3.5 install: - - pip install -r requirements-dev.txt + - pip install .[test] script: - python -m pytest tests/ diff --git a/requirements-dev.txt b/requirements-dev.txt index 6ff2e3e..7dfaede 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,17 @@ -sortedcontainers>=1.5.9 -requests==2.13.0 -six==1.10.0 -websocket-client==0.40.0 -pymongo==3.5.1 -pytest>=3.3.0 -python-dateutil>=2.7.3 \ No newline at end of file +atomicwrites==1.2.1 +attrs==18.2.0 +cbpro==1.1.4 +certifi==2018.10.15 +chardet==3.0.4 +idna==2.7 +more-itertools==4.3.0 +pluggy==0.8.0 +py==1.7.0 +pymongo==3.7.2 +pytest==4.0.1 +python-dateutil==2.7.5 +requests==2.20.1 +six==1.11.0 +sortedcontainers==2.1.0 +urllib3==1.24.1 +websocket-client==0.54.0 diff --git a/setup.py b/setup.py index 38e457c..ea04785 100644 --- a/setup.py +++ b/setup.py @@ -4,14 +4,15 @@ install_requires = [ 'sortedcontainers>=1.5.9', - 'requests==2.13.0', - 'six==1.10.0', - 'websocket-client==0.40.0', - 'pymongo==3.5.1' + 'requests>=2.13.0', + 'six>=1.10.0', + 'websocket-client>=0.40.0', + 'pymongo>=3.5.1', ] tests_require = [ 'pytest', + 'python-dateutil>=2.7.5', ] with open("README.md", "r") as fh: @@ -27,6 +28,9 @@ packages=find_packages(), install_requires=install_requires, tests_require=tests_require, + extras_require={ + 'test': tests_require, + }, description='The unofficial Python client for the Coinbase Pro API', long_description=long_description, long_description_content_type="text/markdown",