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

6.1.0 package contains older code? #350

Closed
bgardner8008 opened this issue Mar 17, 2021 · 5 comments
Closed

6.1.0 package contains older code? #350

bgardner8008 opened this issue Mar 17, 2021 · 5 comments

Comments

@bgardner8008
Copy link

I was trying to debug the reconnection issue and installed package directly from github, tag v6.1.0. Then my app got exceptions that my on_message handler was missing positional argument. In commit 6314fae notify was changed to pass the frame object rather than separate headers and body, and my code was expecting two arguments. But wait, my code is already running using stomp.py==6.1.0 in requirements. I downloaded stomp.py-6.1.0-py3-none-any.whl and looked at the code and it is missing this change, so it appears the code in the 6.1.0 package is older than tag v6.1.0.

@stadelmanma
Copy link

@jasonrbriggs and @bgardner8008 I can also confirm this behavior. However, the changes on https://github.com/jasonrbriggs/stomp.py/blob/v6.1.0/stomp/transport.py#L244 break backwards compatibility with 6.0.0 for the listener functions at least, I didn't do a full diff.

I wonder if that tag actually contains newer code than intended and what is on PyPI is correct?

@bgardner8008
Copy link
Author

Right, I'm not sure it's "older", but it is different. My assumption was that the package on PyPI is from an earlier commit, and doesn't include PR #309 so as not to break backward compatibility. But I didn't try to figure out which commit, and I currently lack the motivation to track it down further. In my own work I've stopped using my fork with added debugging and rolled back to using the 6.1.0 package from PyPI, whatever commit that is from.

@jasonrbriggs
Copy link
Owner

Don't quite know how that happened, but I've released the latest version (6.1.1) and re-tagged -- and double-checked pypi is exactly the same as the tagged code.

@bgardner8008
Copy link
Author

Thanks. If/when I get back to my stomp project I will update to 6.1.1.

@jasonrbriggs
Copy link
Owner

@bgardner8008 Perhaps hold off updating to 6.1.1. It was pointed out here that 6.1.1 (actually 6.1.0) has an incompatible api change, so I'm going to yank 6.1.0 and 6.1.1 and re-release 7.0.0 to reflect that. It's only a version number diff in the end but at least it makes it clear the api has changed.

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

3 participants