Skip to content

Commit f01a0f3

Browse files
committed
Cleanup Python 2.7 support
OpenStack is dropping the py2.7 support in ussuri cycle. Make a few cleanups: - Remove python 2.7 stanza from setup.py - Add python-requires to setup.cfg so that pypi and pip know about support Python version - Remove ancient sections from setup.cfg - Remove version_info setting from conf.py, openstackdocstheme does this automatically nowadays. Change-Id: I5b9c159752c932f874015f20822862c70562c2bd
1 parent 9754a67 commit f01a0f3

3 files changed

Lines changed: 1 addition & 25 deletions

File tree

doc/source/conf.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import pbr.version
16-
1715
# -- General configuration ----------------------------------------------------
1816

1917
# If your documentation needs a minimal Sphinx version, state it here.
@@ -55,17 +53,6 @@
5553
project = u'OpenStack Command Line Client'
5654
copyright = u'2012-2013 OpenStack Foundation'
5755

58-
# The version info for the project you're documenting, acts as replacement for
59-
# |version| and |release|, also used in various other places throughout the
60-
# built documents.
61-
#
62-
version_info = pbr.version.VersionInfo('python-openstackclient')
63-
#
64-
# The short X.Y version.
65-
version = version_info.version_string()
66-
# The full version, including alpha/beta/rc tags.
67-
release = version_info.release_string()
68-
6956
# The language for content autogenerated by Sphinx. Refer to documentation
7057
# for a list of supported languages.
7158
#language = None

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description-file =
66
author = OpenStack
77
author-email = openstack-discuss@lists.openstack.org
88
home-page = https://docs.openstack.org/python-openstackclient/latest/
9+
python-requires = >=3.6
910
classifier =
1011
Environment :: OpenStack
1112
Intended Audience :: Information Technology
@@ -715,9 +716,6 @@ openstack.volume.v3 =
715716
volume_transfer_request_list = openstackclient.volume.v2.volume_transfer_request:ListTransferRequest
716717
volume_transfer_request_show = openstackclient.volume.v2.volume_transfer_request:ShowTransferRequest
717718

718-
[upload_sphinx]
719-
upload-dir = doc/build/html
720-
721719
[extract_messages]
722720
keywords = _ gettext ngettext l_ lazy_gettext
723721
mapping_file = babel.cfg

setup.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
1716
import setuptools
1817

19-
# In python < 2.7.4, a lazy loading of package `pbr` will break
20-
# setuptools if some other modules registered functions in `atexit`.
21-
# solution from: http://bugs.python.org/issue15881#msg170215
22-
try:
23-
import multiprocessing # noqa
24-
except ImportError:
25-
pass
26-
2718
setuptools.setup(
2819
setup_requires=['pbr>=2.0.0'],
2920
pbr=True)

0 commit comments

Comments
 (0)