Revert "Cleanup setup.py config"

This reverts commit 7166e396d1.

Reason for revert: unbreak tripleo-quickstart

Change-Id: I91a21138a20331e2123f878ac8fb51a6552e2cef
Disable setuptools auto discovery

Jobs are broken due to a release of setuptools 61.0 introducing
non-backwards compatible breaking changes [1]

Setting py_modules to an empty string here will disable autodiscovery
and should permit jobs to run as before.

[1] https://github.com/pypa/setuptools/issues/3197

Signed-off-by: Neil Hanlon <neil@shrug.pw>
Change-Id: Ie0215582fe630f1897a85c1e88fd578d100bc3cf
This commit is contained in:
Marc Gariépy 2022-03-31 21:02:22 +00:00 committed by Marc Gariepy
parent 7166e396d1
commit 88cb4d60fb
3 changed files with 44 additions and 1 deletions

22
setup.cfg Normal file
View File

@ -0,0 +1,22 @@
[metadata]
name = ansible-role-python_venv_build
summary = Ansible role to manage the building of python venvs
description-file =
README.rst
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/ansible-role-python_venv_build/latest/
classifier =
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
[files]
data_files =
usr/local/share/ansible/roles/python_venv_build/defaults = defaults/*
usr/local/share/ansible/roles/python_venv_build/meta = meta/*
usr/local/share/ansible/roles/python_venv_build/tasks = tasks/*
usr/local/share/ansible/roles/python_venv_build/templates = templates/*
usr/local/share/ansible/roles/python_venv_build/handlers = handlers/*
usr/local/share/ansible/roles/python_venv_build/vars = vars/*

21
setup.py Normal file
View File

@ -0,0 +1,21 @@
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import setuptools
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
py_modules=[],
pbr=True)

View File

@ -6,7 +6,7 @@ ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = False
usedevelop = True
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =