danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.83k stars 732 forks source link

Absolute dependencies does not play well with other packages #209

Open littledot opened 6 years ago

littledot commented 6 years ago

The current list of dependencies are all absolute.

    'bintrees==2.0.7',
    'requests==2.13.0',
    'six==1.10.0',
    'websocket-client==0.40.0',
    'pymongo==3.5.1'

This makes it difficult to work with other packages that uses higher versions of the same dependency. For example, if a package uses requests-2.14.0, pip refuses to install.

Can we use flexible dependencies instead?

alekna commented 6 years ago

Can you use virtualenv instead?

madeddie commented 6 years ago

I use virtualenv but I also use 2 libraries in that venv, krakenex and gdax. krakenex has requests [required: <3,>=2.18.2 as dependency. So more flexible dependencies would be nice, especially if there's not reason to lock to a specific version.

carlomazzaferro commented 6 years ago

I agree, this is a pain.

For instance, I need six>=01.10 because of some other dependency. Further, I need a newer version of requests, to work with yet another library. I'm pretty sure this can be changed at no cost.

sfkiwi commented 6 years ago

Any progress on this. I'm running Pipenv for virtual environement but I have another package that also requires pymongo >= 3.6.0 and can't have them both in the same virtualenv.

yiwensong commented 6 years ago

hi everyone, I have the same concern. It's been quite a while since the maintainers of this repo have merged any PRs (or even commented on them), so I forked this repo as a temporary solution (or permanent, depending if the maintainers of this one ever come back). Feel free to take a look:

https://github.com/yiwensong/coinbasepro-python https://pypi.org/project/cbpro2/