-
Notifications
You must be signed in to change notification settings - Fork 162
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
Support Various Prometheus Client Versions #129
Conversation
Legend, thanks a lot! I'll bump the version (and restore older Python version support perhaps) and tag it for release. |
@rycus86 do you have a way I can add both versions of the client to the test matrix? |
Do you mean test with both versions of |
Right, it looks like you have a build matrix in Actions for testing different Python versions. I was just suggesting we could add a matrix for testing multiple versions of other dependencies, if you want. |
Yes, we could but I don't think it's necessary (do you know other packages that do similar things?), but can reconsider later if this becomes a regular problem. PS: love the branch name 👍 |
I just wanted to chime in here, sorry about the hassle! The rename was not meant as a breaking change, and I plan to revert back to the old name in prometheus/client_python#796. It looks like with your fix will be fine. If you see breaking changes in prometheus_client in the future feel free to open an issue and I will try to resolve it as quickly as I can! |
Note that reverting the name change is a breaking change again for everyone pinning prometheus-flask-exporter 0.20 and not pinning prometheus-client at the same time. |
Which is resolved in 0.20.1 :/ |
Maybe I'm misunderstanding you, but 0.20.1 still doesn't seem to pin the prometheus-client version either in https://github.com/rycus86/prometheus_flask_exporter/blob/0.20.1/requirements.txt or https://github.com/rycus86/prometheus_flask_exporter/blob/0.20.1/setup.py Compare i.e. with https://github.com/pallets/flask/blob/main/setup.py where the accepted versions are declared Running Though to be fair |
@Starkteetje the fix in 0.20.1 does not require pinning. It is designed to work with either version-range of prometheus-client. If prometheus-client reverts the incompatibility, then 0.20.1 should still work. |
I see. That makes sense, especially in light of the change maybe being reverted. |
I don't think I want to start adding requirements on versions of dependencies here, I don't want this library to prescribe what versions it can work with. As long as we can reasonably make it work with different/multiple versions, we should be OK? |
No worries, and thanks for looking into it! ❤️ I didn't even realize this library is on your radar. 😄 |
closes #128
closes #127
also see #125
also see #126