From a21683502ad9820eaef759a2be6e6a400f7a1940 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Tue, 5 Apr 2022 21:15:39 +0530 Subject: [PATCH] Fix setup.py and setup.cfg deprecations This project cannot be "installed" as a python package, so specify there are no "py_modules" to install; alongside, hyphenated metadata headers are deprecated in setup.cfg, replace them. Change-Id: I0713f3c871180ea235c12f888e43a7a823341f0c Signed-off-by: Goutham Pacha Ravi --- setup.cfg | 7 ++++--- setup.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 02ab478..4e6ff95 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,16 +1,17 @@ [metadata] name = manila-image-elements summary = Image elements for Manila -description-file = README.rst +description_file = README.rst license = Apache Software License +python_requires = >=3.6 classifiers = Intended Audience :: Information Technology Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux author = OpenStack -author-email = openstack-discuss@lists.openstack.org -home-page = http://docs.openstack.org/manila/latest/ +author_email = openstack-discuss@lists.openstack.org +home_page = http://docs.openstack.org/manila/latest/ [files] scripts = diff --git a/setup.py b/setup.py index cd35c3c..31d6ada 100644 --- a/setup.py +++ b/setup.py @@ -17,4 +17,5 @@ import setuptools setuptools.setup( setup_requires=['pbr>=2.0.0'], + py_modules=[], pbr=True)