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

grass.pydispatch: Apply code changes from upstream pydispatcher repo #4033

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Jul 11, 2024

Manual combination of latest changes of repo https://github.com/mcfletch/pydispatcher

Once black is applied, the actual diff isn't really big. Their repo layout seemed to have changed a big, but I went and copied the (relevant-only) files one by one. It isn't a very active project, but still.

This is the best approach I could think of that would make our vendored dependency get updated, considering they don't really have (newer) releases, and we have some more files that extend the original code like https://github.com/OSGeo/grass/blob/ff453d215a3244644ef207f2d5d065f680016da0/python/grass/pydispatch/signal.py

@echoix echoix added this to the 8.5.0 milestone Jul 11, 2024
@echoix echoix requested review from ninsbl and wenzeslaus July 11, 2024 04:03
@echoix
Copy link
Member Author

echoix commented Jul 11, 2024

This isn't exactly a style-only PR. Its more a normal PR.

@github-actions github-actions bot added Python Related code is in Python libraries labels Jul 11, 2024
@echoix echoix changed the title python(pydispatch): Apply code changes from upstream pydispatcher repo grass.pydispatch: Apply code changes from upstream pydispatcher repo Jul 11, 2024
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks safe as it is not touching any code which would be directly used by our code or where our code would rely on some implementation details.

This is (only) used in GUI though, so the only ultimate test when we try couple things there, e.g., the Data panel.

@wenzeslaus
Copy link
Member

we have some more files that extend the original code like ...python/grass/pydispatch/signal.py

BTW, the custom signal API is really the reason why we included pydispatch, so all usages of pydispatch elsewhere in the code should be through the signal API.

@echoix echoix merged commit c88fc0f into OSGeo:main Aug 1, 2024
26 of 28 checks passed
@echoix echoix deleted the pydispatch-upgrade-upstream branch August 1, 2024 02:04
Mahesh1998 pushed a commit to Mahesh1998/grass that referenced this pull request Sep 19, 2024
…SGeo#4033)

python(pydispatch): Apply code changes from upstream pydispatcher repo

Manual combination of latest changes of repo https://github.com/mcfletch/pydispatcher
@wenzeslaus wenzeslaus removed the request for review from ninsbl October 17, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants