Installing OSA in editable mode no longer produce egg-info and wheels,
which results in existance of stale egg-info which returns an old
version for openstack-ansible package.
As we do `cd ${OSA_CLONE_DIR}` this is appended to PATH, making
`importlib` to respect stale egg-info rather then actually installed
version from venv.
On top of that we add a simple pyproject.toml to define the build
backend of pbr to detect package versioning correctly during
installation, as otherwise behavior may be unexpected [1] due to
deprecation.
[1] https://github.com/pypa/pip/issues/11457
Closes-Bug: #2137630
Change-Id: I33c4cd030985a360570202b78e9d6f23f72edbb0
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
21 lines
697 B
Python
21 lines
697 B
Python
# 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>=6.1.1'],
|
|
pbr=True)
|