From 90ef627cc612fc3dfe9c8859d8500c6f4f25a306 Mon Sep 17 00:00:00 2001 From: Erik Berdonces Bonelo Date: Thu, 4 Feb 2021 12:56:09 +0100 Subject: [PATCH] Use ranges in setup.py versions Versions in setup.py shouldn't be pinned. https://packaging.python.org/discussions/install-requires-vs-requirements/?highlight=install_requires Removed also dev dependencies, as setup.py should only keep the ones used for production. For dev and testing you use the ones in requirements.txt. To understand `~=~ check here: https://pip.pypa.io/en/latest/user_guide/#understanding-your-error-message >~=3.1: version 3.1 or later, but not version 4.0 or later. ~=3.1.2: version 3.1.2 or later, but not version 3.2.0 or later. --- setup.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index a58a2f1..29cf0dd 100644 --- a/setup.py +++ b/setup.py @@ -46,15 +46,10 @@ setup( python_requires='>=3.0.0, <4', # deps installed by pip install_requires=[ - 'eventemitter==0.2.0', - 'asyncio==3.4.3', - 'websockets==7.0', - 'pylint==2.3.0', - 'pytest-asyncio==0.10.0', - 'six==1.12.0', - 'pyee==8.0.1', - 'aiohttp==3.4.4', - 'isort==4.3.21' + 'eventemitter~=0.2.0', + 'asyncio~=3.0', + 'websockets~=7.0', + 'aiohttp~=3.0', ], project_urls={ 'Bug Reports': 'https://github.com/bitfinexcom/bitfinex-api-py/issues',