Skip to content

Commit bfcbc02

Browse files
Merge pull request #1584 from dvzrv/switch_to_prettytable
Replace the use of ptable with prettytable
2 parents 9a5f6c6 + bc42a74 commit bfcbc02

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ If you cannot install python 3.6+ for some reason, you will need to use a versio
167167

168168
Python Packages
169169
---------------
170-
* ptable >= 0.9.2
170+
* prettytable >= 2.0.0
171171
* click >= 7
172172
* requests >= 2.20.0
173173
* prompt_toolkit >= 2

SoftLayer/CLI/formatting.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111

1212
import click
1313

14-
# If both PTable and prettytable are installed, its impossible to use the new version
15-
try:
16-
from prettytable import prettytable
17-
except ImportError:
18-
import prettytable
14+
import prettytable
1915

2016
from SoftLayer.CLI import exceptions
2117
from SoftLayer import utils

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
python_requires='>=3.5',
3535
install_requires=[
36-
'ptable >= 0.9.2',
36+
'prettytable >= 2.0.0',
3737
'click >= 7',
3838
'requests >= 2.20.0',
3939
'prompt_toolkit >= 2',

tools/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ptable >= 0.9.2
1+
prettytable >= 2.0.0
22
click >= 7
33
requests >= 2.20.0
44
prompt_toolkit >= 2
55
pygments >= 2.0.0
6-
urllib3 >= 1.24
6+
urllib3 >= 1.24

tools/test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ pytest
44
pytest-cov
55
mock
66
sphinx
7-
ptable >= 0.9.2
7+
prettytable >= 2.0.0
88
click >= 7
99
requests >= 2.20.0
1010
prompt_toolkit >= 2
1111
pygments >= 2.0.0
12-
urllib3 >= 1.24
12+
urllib3 >= 1.24

0 commit comments

Comments
 (0)