-
Notifications
You must be signed in to change notification settings - Fork 253
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
Making a 21.3 release #483
Comments
FYI pyparsing 3.0.5 breaks requirements with extras, see pyparsing/pyparsing#329, so you might wanna hold off making a new release or exclude 3.0.5. |
Is there a branch where this pyparsing update work is being done? I'm looking at the master branch, and this code in requirements.py is a likely issue (the internal
Though, since this code uses a numeric index instead of the results names, it does not fail. But it also should not be necessary. Please consider dropping both parse actions, and just using the results from |
It appears the intention with MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
MARKER_EXPR.addParseAction(lambda t: Marker(t.marker)) for it to be called after No idea what's going on with |
Yes. Using the results name that you have assigned is the preferred way to access the parsed contents. |
#485 should get requirements with extras working again. |
Will this fix address the case reported here? pyparsing/pyparsing#329 |
It does, yes. |
At the rate that pyparsing is making releases, I wouldn't want to rush out our own release if we are going to get broken again. Do people know if pyparsing is done making rapid changes and thus #485 is the last thing to merge in? |
It's a fair question, Brett. The issue has not been so much the frequency of pyparsing releases, it was the fact that releases that should have been minor bugfixes ended up breaking the published API, and so breaking packaging. The biggest challenge for me in all this was my inability to run packaging tests in my own environment using to-be-released pyparsing code. I have tried following the packaging project's readme for devs, but
I tried extracting the parser code to test it in isolation, but there are too many tendrils leading back into other packaging .py files. If I could get help in getting my testing environment for packaging working, I would be able to do further pyparsing work without disrupting your running code. |
I'm confused, are the two underscored attributes part of the published API? You said they were internal to pyparsing.
Were you attempting to run the tests on Python 3.11? |
They aren't part of the published API, as implied by the leading '_' in their names. I was running Python 3.10 when I got those errors, on my Windows development system. |
I've just now configured a Ubuntu VM, and I am able to run the full I am very mindful of the important role that |
In that case whatever other changes broke the published API did not impact packaging.
You probably have an old version of py installed from pytest which does not support 3.10. |
Thanks for your patience during this past week's turmoil. With the |
Thanks, @ptmcg , for all the info! It sounds like everything should be good, so if we get the various PRs merged we should be able to cut a release when someone has time. |
I think if we update the pyparsing requirement to skip 3.0.5 we can do a release as someone is available to (unless I'm missing something?). |
#490 updates the changelog. Assuming CI passes then this should make things in a proper state to do a release. |
And thanks to @henryiii for beating me to the PR to skip pyparsing 3.0.5! |
Quick fix for a typo in that CHANGELOG update^ #491 |
I'll pick this up over the weekend, but if someone else with the upload bit on PyPI wants to get to it before me, please do feel free to. :)
Don't forget to update the changelog!
The text was updated successfully, but these errors were encountered: