Alex Willmer
d71fb672e8
Begin v0.3.4.dev0
2022-06-02 12:52:01 +01:00
Alex Willmer
c0d3deeac5
Prepare v0.3.3
2022-06-02 12:52:01 +01:00
Felix Stupp
b1e67cc7df
tests/ansible/README: Replace reference with actual link
...
- working for GitHub and similar Markdown engines
2022-06-02 10:48:23 +01:00
Alex Willmer
89c0cc94d1
Merge pull request #923 from moreati/issue915
...
Fix [DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
2022-04-24 15:05:59 +01:00
Alex Willmer
25ea6dde02
ansible_mitogen: Allow mitogen_fetch to bypass slurp module
...
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 #915
2022-04-24 13:52:49 +01:00
Alex Willmer
0ff9c6e579
ansible_mitogen: Replace fetch action plug from upstream
...
From
be0cdc0ea2/lib/ansible/plugins/action/fetch.py
2022-04-24 13:25:15 +01:00
Alex Willmer
11a61acb32
Merge pull request #922 from moreati/functools.wraps
...
mitogen.utils: Preserve docstring of functions decorated @with_router
2022-04-23 20:26:00 +01:00
Alex Willmer
e101cc4f44
mitogen.utils: Preserve docstring of functions decorated @with_router
...
Co-authored-by: Rezart Qelibari <gast-kontakt+mitogen@astzweig.de>
Replaces #837
Fixes #836
2022-04-23 18:24:41 +01:00
Alex Willmer
a743e831c6
Merge pull request #921 from moreati/import-cleanups
...
Cleanup imports in mitogen, ansible_mitogen, & tests
2022-04-23 16:36:28 +01:00
Alex Willmer
31b3a4eb4a
ansible_mitogen: Standardise __future__ imports to match Ansible
...
Some modules additionally enable unicode_literals (which Ansible doesn't do).
I've chosen not to change that, for now.
2022-04-23 11:17:25 +01:00
Alex Willmer
3dbb0e28ce
tests: List leaked file descriptors
2022-04-23 10:01:07 +01:00
Alex Willmer
109feec6d5
Fix lints found by flake8
2022-04-23 10:01:07 +01:00
Alex Willmer
18c89de5a9
Remove unused module imports
2022-04-23 10:01:06 +01:00
Alex Willmer
566d75d82f
Merge pull request #920 from moreati/unittest-deprecations
...
Add Ansible podman connection support
2022-04-22 21:44:49 +01:00
Alex Willmer
db9e52ce8e
tests: Run containers on macOS with podman, instead of Docker
2022-04-22 18:08:54 +01:00
Alex Willmer
96e20a09d6
ansible_mitogen: Add podman connection plugin
2022-04-22 18:07:27 +01:00
Alex Willmer
0417d4d73a
Replace os.system() with subprocess.check_call()
...
Non-zero return codes should raise an exception, not pass silently.
2022-04-21 20:19:51 +01:00
Alex Willmer
1287d58a54
Use with open(): ... to ensure file objects get closed
2022-04-21 20:14:24 +01:00
Alex Willmer
65809a6f0f
mitogen: Handle Python 3.10 threading depreactions
2022-04-21 19:55:45 +01:00
Alex Willmer
caa20be43e
tests: Use TestCase.assertEqual()
...
assertEquals() is deperecated in unittest
2022-04-21 19:23:43 +01:00
Alex Willmer
c4f1cc150d
Merge pull request #918 from moreati/python3.10
...
Python 3.10 support
2022-04-20 20:10:39 +01:00
Alex Willmer
a8317c2393
tests: Remove unittest2, use stdlib unittest
...
unittest2 is incomplatible with Python 3.10
2022-04-20 17:54:12 +01:00
Alex Willmer
2a95d039ab
Python 3.10 support
2022-04-20 17:54:12 +01:00
Alex Willmer
af03b9a9b3
Merge pull request #917 from moreati/cleanups
...
Test and build improvements
2022-04-20 17:45:10 +01:00
Alex Willmer
104865e866
build: Remove declared support for Python<2.7
...
Master and the 0.3.x branch have never supported these versions, but we didn't
update the metadata.
2022-04-20 16:13:48 +01:00
Alex Willmer
ccca77bcc0
tests: Fix old Ansible dependencies installed by Tox
2022-04-20 16:12:03 +01:00
Alex Willmer
63543b3b83
tests: Skip heavy & sudo Ansible tests by default
...
We don't wish to modify someone's local OS, or rely on them having sudo (with
or without password).
2022-04-20 14:15:08 +01:00
Alex Willmer
c87976af40
tests: Fix lingering Python 2 isms
2022-04-20 14:11:56 +01:00
Alex Willmer
c9318a26f6
tests: Suppress pip version warnings
2022-04-20 14:10:40 +01:00
Alex Willmer
491458673b
tests: Manage ANSIBLE_STRATEGY with Tox
2022-04-20 14:06:10 +01:00
Alex Willmer
5805e30232
tests: Remove unused imports
2022-04-20 13:44:42 +01:00
Alex Willmer
a167f164e4
tests.parent_test: Don't assume interpreter is in /usr/bin
2022-04-20 12:13:51 +01:00
Alex Willmer
7c4982ebee
Merge pull request #913 from willmerae/issue-906-minimal
...
master.ParentEnumerationMethod: Require matching pkg.__name__
2022-03-29 18:27:08 +01:00
Alex Willmer
d2ca8a9423
master.ParentEnumerationMethod: Require matching pkg.__name__
...
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
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 #906
2022-03-29 13:19:55 +01:00
Alex Willmer
47699e15aa
master.SysModulesMethod: log rejection reasons
2022-03-29 13:19:55 +01:00
Alex Willmer
0fa0a93f55
master.PkgutilMethod: log rejection reasons
2022-03-29 13:19:55 +01:00
Alex Willmer
60c4ae5599
Add notes on imports and importlib
2022-03-28 15:43:05 +01:00
Alex Willmer
5b8f7dd1be
Start v0.3.3 development
2022-03-28 15:38:31 +01:00
Alex Willmer
e8c3fe7881
Fix Trove classifier, bump version
...
fixes #891
(cherry picked from commit 1a84184838
)
2022-03-28 14:04:22 +01:00
Alex Willmer
5b505f524a
Merge pull request #884 from moreati/macos-11-again
...
Drop macOS 10.14 tests, explicitly test on macOS 11
2021-12-18 21:36:11 +00:00
Alex Willmer
d424895344
ci: Drop Mac1014 jobs
...
The VM Image has been retired by Azure Pipelines.
2021-12-15 12:08:26 +00:00
Alex Willmer
77c306199c
ci: Explicitly test on macOS-11 VM Image
...
As of writing this macOS-latest isn't quite yet upgraded, but warnings about
it are spewing out.
2021-12-15 12:07:00 +00:00
Alex Willmer
86b1fb0f49
Merge pull request #883 from Rosa-Luxemburgstiftung-Berlin/pr-ansible2.12
...
support for ansible 2.12
2021-12-15 11:45:32 +00:00
Klaus Zerwes
f1fde91984
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit ffb58cd557
.
2021-12-12 22:13:03 +01:00
Klaus Zerwes
2b4f04c554
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit 478f286efb
.
2021-12-12 22:12:01 +01:00
Klaus Zerwes
b8dd348b1e
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit f82bd3d714
.
2021-12-12 22:11:38 +01:00
Klaus Zerwes
81f075340b
use conditionals in list form
2021-12-12 21:57:11 +01:00
Klaus Zerwes
ffb58cd557
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 19c28b2b1a
.
2021-12-12 20:39:50 +01:00
Klaus Zerwes
f82bd3d714
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 7bc2102d2b
.
2021-12-12 20:39:06 +01:00
Klaus Zerwes
478f286efb
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 2d3970552e
.
2021-12-12 20:34:52 +01:00