Constrain pexpect and ptyprocess (#73109)

The recent update of ptyprocess to 0.7.0 is incompatible with Python 2.6 and
is causing test failures.

* Add setup_pexpect role to expect test
pull/73113/head
Sam Doooran 3 years ago committed by GitHub
parent 3074ede8a3
commit 003a9e890d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,2 +1,3 @@
shippable/posix/group2
destructive
needs/target/setup_pexpect

@ -16,9 +16,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
- name: Install test requirements
pip:
name: pexpect
state: present
import_role:
name: setup_pexpect
- name: record the test_command file
set_fact: test_command_file={{output_dir | expanduser}}/test_command.py

@ -0,0 +1,2 @@
pexpect == 4.8.0
ptyprocess < 0.7.0 ; python_version < '2.7' # ptyprocess >= 0.7.0 not compatible with Python 2.6

@ -0,0 +1,2 @@
dependencies:
- setup_remote_tmp_dir

@ -1,4 +1,10 @@
- name: Copy constraints file
copy:
src: constraints.txt
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
- name: Install pexpect
pip:
name: pexpect
extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
state: present

Loading…
Cancel
Save