Skip to content

Commit b03a4b1

Browse files
rtveitchGitHub Enterprise
authored and
GitHub Enterprise
committed
Update minimum Python version and dependencies
* Update supported Python versions * Update dependencies to be in alignment * Remove explicit dependency on requests library as it is a transitive dependency of ibm-cloud-sdk-core
1 parent 3a57340 commit b03a4b1

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
requests==2.21.0
21
ibm-cloud-sdk-core>=0.4.2,<=0.5.0

setup.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
#!/usr/bin/env python
22
import os
33
import re
4-
import sys
54

65
from setuptools import setup, find_packages
7-
# IbmCos Config sdk python version check
8-
_valid = sys.version_info[:2] == (2, 7) or sys.version_info >= (3,4)
9-
if not _valid:
10-
sys.exit("Sorry, IBM COS Config SDK only supports versions 2.7, 3.4, 3.5, 3.6, 3.7 of python.")
11-
126

137
ROOT = os.path.dirname(__file__)
148
VERSION_RE = re.compile(r'''__version__ = ['"]([a-z0-9._-]+)['"]''')
159

16-
requirements = [
17-
'requests',
18-
'ibm-cloud-sdk-core>=0.4.2,<=0.5.0',
19-
]
20-
2110

2211
def get_version():
2312
'''
@@ -39,19 +28,21 @@ def get_version():
3928
scripts=[],
4029
packages=find_packages(exclude=['tests*']),
4130
include_package_data=True,
42-
install_requires=requirements,
31+
python_requires='~=3.5',
32+
install_requires=[
33+
'ibm-cloud-sdk-core>=0.4.2,<=0.5.0',
34+
],
4335
license="Apache License 2.0",
4436
classifiers=[
4537
'Development Status :: 5 - Production/Stable',
4638
'Intended Audience :: Developers',
4739
'Natural Language :: English',
4840
'License :: OSI Approved :: Apache Software License',
4941
'Programming Language :: Python',
50-
'Programming Language :: Python :: 2.7',
5142
'Programming Language :: Python :: 3',
52-
'Programming Language :: Python :: 3.4',
5343
'Programming Language :: Python :: 3.5',
5444
'Programming Language :: Python :: 3.6',
5545
'Programming Language :: Python :: 3.7',
46+
'Programming Language :: Python :: 3.8',
5647
],
5748
)

0 commit comments

Comments
 (0)