Skip to content

Commit 54a8920

Browse files
authored
Merge pull request #574 from addisonlynch/remove_req_deps
CLN: Remove unused requests dependencies
2 parents 4ea2f10 + ff7e42d commit 54a8920

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Up to date remote data access for pandas, works for multiple versions of pandas.
55

66
.. image:: https://img.shields.io/pypi/v/pandas-datareader.svg
77
:target: https://pypi.python.org/pypi/pandas-datareader/
8-
8+
99
.. image:: https://travis-ci.org/pydata/pandas-datareader.svg?branch=master
1010
:target: https://travis-ci.org/pydata/pandas-datareader
1111

@@ -72,8 +72,6 @@ Using pandas datareader requires the following packages:
7272
* pandas>=0.19.2
7373
* lxml
7474
* requests>=2.3.0
75-
* requests-file
76-
* requests-ftp
7775
* wrapt
7876

7977
Building the documentation additionally requires:

docs/source/whatsnew/v0.7.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ Bug Fixes
7676
- Fixed Yahoo! time offset (:issue:`487`).
7777
- Fix Yahoo! quote reader (:issue: `540`)
7878
- Remove import of deprecated `tm.get_data_path` (:issue: `566`)
79+
- Removed unused requests-file and requests-ftp dependencies

pandas_datareader/_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import requests
44
from pandas import to_datetime
55
from pandas_datareader.compat import is_number
6-
from requests_file import FileAdapter
7-
from requests_ftp import FTPAdapter
86

97

108
class SymbolWarning(UserWarning):
@@ -42,7 +40,5 @@ def _sanitize_dates(start, end):
4240
def _init_session(session, retry_count=3):
4341
if session is None:
4442
session = requests.Session()
45-
session.mount('file://', FileAdapter())
46-
session.mount('ftp://', FTPAdapter())
4743
# do not set requests max_retries here to support arbitrary pause
4844
return session

requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ lxml
22
pandas>=0.19.2
33
pytest>=3
44
requests>=2.3.0
5-
requests-file
6-
requests-ftp
75
wrapt
86
# Documentation Only
97
matplotlib
108
ipython
119
sphinx
1210
sphinx_rtd_theme
13-
requests-cache
11+
requests-cache

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def readme():
1414

1515

1616
INSTALL_REQUIRES = (
17-
['pandas>=0.19.2', 'requests>=2.3.0', 'requests-file', 'requests-ftp', 'wrapt', 'lxml']
17+
['pandas>=0.19.2', 'requests>=2.3.0', 'wrapt', 'lxml']
1818
)
1919

2020
setup(

0 commit comments

Comments
 (0)