Skip to content

Commit ec28f17

Browse files
committed
Took requests dependency out of version! whoops!
1 parent e8fec8f commit ec28f17

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

plotly/version.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
__version__ = '1.0.12'
22

3-
import requests
3+
# import requests
4+
#
5+
# _plotly_pypi_url = "https://pypi.python.org/pypi/plotly"
46

5-
_plotly_pypi_url = "https://pypi.python.org/pypi/plotly"
67

7-
8-
def check_version():
9-
msg = ""
10-
succeded = True
11-
try:
12-
response = requests.get(_plotly_pypi_url)
13-
title = response.text.split('<title>')[1].split('</title>')[0]
14-
newest_version = title.split(' ')[1]
15-
msg += "Newest version: {}\n".format(newest_version)
16-
except:
17-
succeded = False
18-
msg += "Check {} for the newest version.\n".format(_plotly_pypi_url)
19-
msg += "Your version: {}\n\n".format(__version__)
20-
if succeded:
21-
if newest_version != __version__:
22-
msg += "Looks like you might be running an old version of our " \
23-
"Python API. Don't fret, just run:\n\n" \
24-
"pip install --upgrade plotly\n\n" \
25-
"to get our newest release.\n"
26-
return msg
8+
# def check_version():
9+
# msg = ""
10+
# succeded = True
11+
# try:
12+
# response = requests.get(_plotly_pypi_url)
13+
# title = response.text.split('<title>')[1].split('</title>')[0]
14+
# newest_version = title.split(' ')[1]
15+
# msg += "Newest version: {}\n".format(newest_version)
16+
# except:
17+
# succeded = False
18+
# msg += "Check {} for the newest version.\n".format(_plotly_pypi_url)
19+
# msg += "Your version: {}\n\n".format(__version__)
20+
# if succeded:
21+
# if newest_version != __version__:
22+
# msg += "Looks like you might be running an old version of our " \
23+
# "Python API. Don't fret, just run:\n\n" \
24+
# "pip install --upgrade plotly\n\n" \
25+
# "to get our newest release.\n"
26+
# return msg

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ def readme():
3434
'plotly/matplotlylib/mplexporter',
3535
'plotly/matplotlylib/mplexporter/renderers'],
3636
package_data={'plotly': ['graph_reference/*.json']},
37-
install_requires=['requests'],
37+
install_requires=[
38+
'requests',
39+
],
3840
zip_safe=False)

0 commit comments

Comments
 (0)