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

Release 0.3.3 #932

Merged
merged 39 commits into from
Jun 12, 2022
Merged

Release 0.3.3 #932

merged 39 commits into from
Jun 12, 2022

Conversation

moreati
Copy link
Member

@moreati moreati commented Jun 2, 2022

No description provided.

moreati and others added 30 commits March 28, 2022 14:04
Co-authored-by: Stefano Rivera <[email protected]>

When the requested module (e.g. ansible.module_utils.distro)
- is provided by another module *e.g. distro)
- that itself was a package (e.g. distro 1.7.0)

At runtime
- ansible/module_utils/distro/__init__.py executes
- if https://pypi.org/project/distro/ is present, it's loaded as
ansible.module_utils.distro
- otherwise ansible/module_utils/distro/_distro.py is loaded

ParentEnumerationMethod would wrongly use whatever was in
sys.modules['ansible.module_utils.distro]. Instead we should ascend to
the first parent that has fullname == sys.modules[fullname].__name__.
Then descend to the appropriate .py file on disk.

This bug didn't show up before because until distro 1.7.0 (Feb 2022) the
top-level distro module was a module (distro.py) not a package
(distro/__init__.py)

fixes mitogen-hq#906
master.ParentEnumerationMethod: Require matching pkg.__name__
We don't wish to modify someone's local OS, or rely on them having sudo (with
or without password).
Master and the 0.3.x branch have never supported these versions, but we didn't
update the metadata.
unittest2 is incomplatible with Python 3.10
assertEquals() is deperecated in unittest
Non-zero return codes should raise an exception, not pass silently.
Some modules additionally enable unicode_literals (which Ansible doesn't do).
I've chosen not to change that, for now.
moreati and others added 9 commits April 23, 2022 16:36
Cleanup imports in mitogen, ansible_mitogen, & tests
mitogen.utils: Preserve docstring of functions decorated @with_router
This reapplies an earlier change, when this plugin was first introduced to
Mitogen. The plugin was updated to fix

[DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.

I've elected to short-circuit the if statemtn logic, rather than
deleting/unindenting, to make the code delta much smaller. This should make it
easier to maintain/update.

Fixes mitogen-hq#915
Fix [DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
- working for GitHub and similar Markdown engines
@moreati moreati requested a review from dw June 3, 2022 08:09
Copy link
Member

@dw dw left a comment

Choose a reason for hiding this comment

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

Sorry about the delay

@moreati moreati merged commit 660d3e0 into mitogen-hq:stable Jun 12, 2022
@moreati moreati deleted the release-0.3.3 branch June 12, 2022 10:55
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

Successfully merging this pull request may close these issues.

4 participants