With setuptools release 61.0.0 docs build started to fail: error: Multiple top-level packages discovered in a flat-layout: ['specs', 'attic', 'superseded']. This bug is mentioned in setuptools issue 3197 [0], and the suggested workaround is to disable auto-discovery by adding 'py_modules=[]' in setup.py. Also use recent python versions because the old ones are no longer available. These 2 unrelated changes need to be merged together in order to unblock the gate. [0] https://github.com/pypa/setuptools/issues/3197 Change-Id: Iddc30b9521b61d9083c2b1f6e8a6707196ea0a57
23 lines
731 B
Python
23 lines
731 B
Python
#!/usr/bin/env 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'],
|
|
pbr=True,
|
|
py_modules=[])
|