Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplejson dependency is pinned to version 3.3.1 #84

Closed
MDziwny opened this issue Oct 21, 2019 · 8 comments
Closed

simplejson dependency is pinned to version 3.3.1 #84

MDziwny opened this issue Oct 21, 2019 · 8 comments

Comments

@MDziwny
Copy link

MDziwny commented Oct 21, 2019

I'm using the version 3.4.0 of heroku3 and 1 of the requirement is simplejson which is pinned to version simplejson==3.3.1.

It's problematic because it conflicts with other packages using a higher version number, in my case simplejson>=3.16.0.

Would it be possible to use simplejson>=3.3.1,<4 ?

@martyzz1
Copy link
Owner

martyzz1 commented Oct 22, 2019 via email

@MDziwny
Copy link
Author

MDziwny commented Oct 22, 2019

I wanted to do it but I've noticed that this package is not anymore declared in the requirements declared in setup.py:

https://github.com/martyzz1/heroku3.py/blob/601a1f5fcae64a62ae6e17eb9befb899f8aba95b/setup.py#L17L20

@martyzz1
Copy link
Owner

martyzz1 commented Oct 23, 2019

ah, apologies... This was already done

#73

Are you using the latest version? e.g. install from Master branch?

@MDziwny
Copy link
Author

MDziwny commented Oct 23, 2019

No, I'm installing it through pypi https://pypi.org/project/heroku3/

pip install heroku3==heroku3==3.4.0

@martyzz1
Copy link
Owner

you could use

   pip install git+https://github.com/martyzz1/heroku3.py

@MDziwny
Copy link
Author

MDziwny commented Oct 24, 2019

Yes, it's ok in a dev environment but we're using this tool in a lot of scripts, which are sometime included in a docker image, and it's not nice to depend on a git repository (caching is not working fine, more prone to changes, ...)

@martyzz1
Copy link
Owner

martyzz1 commented Oct 24, 2019

I completely understand, and at some point when I have time to test out all the various PR's I merged recently, I will make a new release to pypi...
In the meantime, I'd suggest you use the github link directly, but pin it to a commit that you are happy with. I run many production projects, and not all the libraries we use are on pypi, and pinning to a commit in a branch on github works perfectly fine.

    pip install git+https://github.com/martyzz1/heroku3.py@bd3e24a

https://stackoverflow.com/questions/13685920/install-specific-git-commit-with-pip

@martyzz1
Copy link
Owner

martyzz1 commented Nov 4, 2019

going to close this for now...

@martyzz1 martyzz1 closed this as completed Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants