ensure-pip: use dummy package for testing
This currently uses zuul-client to test installation. Unfortunately for the testing the recent release dropped support for older pythons we still need to test with. To avoid this, make a dummy package that we include in zuul-jobs that does nothing, but will also install anywhere. Change-Id: Ia1beed2b21f39db4e2ab75258425d7897238ecf6
This commit is contained in:
parent
9429c2f601
commit
db519e0e41
@ -28,13 +28,13 @@
|
||||
|
||||
- name: Sanity check pip wheel generation
|
||||
shell: |
|
||||
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul-client
|
||||
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul-jobs/tools/dummy-package
|
||||
# This should run anywhere without too much logic ...
|
||||
run_pip=$(command -v pip3 || command -v pip2 || command -v pip)
|
||||
# Preinstall pbr to work around very old distutils lacking SNI support
|
||||
$run_pip install pbr
|
||||
$run_pip wheel --no-deps .
|
||||
ls zuul_client-*.whl || exit 1
|
||||
ls dummy_package*.whl || exit 1
|
||||
|
||||
- name: Test virtualenv
|
||||
# NOTE(ianw) 2022-02-03 : not supported on 9-stream, see inline comments
|
||||
|
@ -28,13 +28,13 @@
|
||||
|
||||
- name: Sanity check pip wheel generation
|
||||
shell: |
|
||||
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul-client
|
||||
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul-jobs/tools/dummy-package
|
||||
# This should run anywhere without too much logic ...
|
||||
run_pip=$(command -v pip3 || command -v pip2 || command -v pip)
|
||||
# Preinstall pbr to work around very old distutils lacking SNI support
|
||||
$run_pip install pbr
|
||||
$run_pip wheel --no-deps .
|
||||
ls zuul_client-*.whl || exit 1
|
||||
ls dummy_package*.whl || exit 1
|
||||
|
||||
- name: Test virtualenv
|
||||
# NOTE(ianw) 2022-02-03 : not supported on 9-stream, see inline comments
|
||||
|
1
tools/dummy-package/README.rst
Normal file
1
tools/dummy-package/README.rst
Normal file
@ -0,0 +1 @@
|
||||
This is a dummy package to testing building wheels
|
2
tools/dummy-package/dummy_package/__init__.py
Normal file
2
tools/dummy-package/dummy_package/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
def console():
|
||||
print("DUMMY PACKAGE")
|
32
tools/dummy-package/setup.cfg
Normal file
32
tools/dummy-package/setup.cfg
Normal file
@ -0,0 +1,32 @@
|
||||
[metadata]
|
||||
name = dummy-package
|
||||
version = 0.0.1
|
||||
summary = Dummy Package
|
||||
description-file =
|
||||
README.rst
|
||||
author = OpenStack Infrastructure Team
|
||||
author-email = openstack-infra@lists.openstack.org
|
||||
home-page = http://docs.opendev.org/infra/system-config/
|
||||
classifier =
|
||||
Intended Audience :: Information Technology
|
||||
Intended Audience :: System Administrators
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 2
|
||||
Programming Language :: Python :: 2.7
|
||||
Programming Language :: Python :: 2.6
|
||||
Programming Language :: Python :: 3.6
|
||||
Programming Language :: Python :: 3.7
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
Programming Language :: Python :: 3.10
|
||||
Programming Language :: Python :: 3.11
|
||||
|
||||
[files]
|
||||
packages =
|
||||
dummy_package
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
dummy-package = dummy_package:console
|
3
tools/dummy-package/setup.py
Normal file
3
tools/dummy-package/setup.py
Normal file
@ -0,0 +1,3 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup()
|
@ -1,9 +1,6 @@
|
||||
- job:
|
||||
name: zuul-jobs-test-ensure-pip
|
||||
description: Test the ensure-pip role
|
||||
# dummy project for wheel build test
|
||||
required-projects:
|
||||
- zuul/zuul-client
|
||||
files:
|
||||
- roles/ensure-pip/.*
|
||||
- roles/ensure-virtualenv/.*
|
||||
|
Loading…
Reference in New Issue
Block a user