Skip to content

Commit 52dd944

Browse files
authored
Merge branch 'main' into patch-1
2 parents 291087b + fdade48 commit 52dd944

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+637
-427
lines changed

.travis.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# pandas-datareader
2+
3+
Up to date remote data access for pandas, works for multiple versions of
4+
pandas.
5+
6+
[![image](https://img.shields.io/pypi/v/pandas-datareader.svg)](https://pypi.python.org/pypi/pandas-datareader/)
7+
[![image](https://codecov.io/gh/pydata/pandas-datareader/branch/master/graph/badge.svg)](https://codecov.io/gh/pydata/pandas-datareader)
8+
[![image](https://readthedocs.org/projects/pandas-datareader/badge/?version=latest)](https://pandas-datareader.readthedocs.io/en/latest/)
9+
[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
10+
[![License](https://img.shields.io/pypi/l/pandas-datareader)](https://pypi.org/project/pandas-datareader/)
11+
12+
## Installation
13+
14+
Install using `pip`
15+
16+
``` shell
17+
pip install pandas-datareader
18+
```
19+
20+
## Usage
21+
22+
``` python
23+
import pandas_datareader as pdr
24+
pdr.get_data_fred('GS10')
25+
```
26+
27+
## Documentation
28+
29+
[Stable documentation](https://pydata.github.io/pandas-datareader/) is available on
30+
[github.io](https://pydata.github.io/pandas-datareader/). A second copy of the stable
31+
documentation is hosted on [read the docs](https://pandas-datareader.readthedocs.io/)
32+
for more details.
33+
34+
[Development documentation](https://pydata.github.io/pandas-datareader/devel/) is available
35+
for the latest changes in master.
36+
37+
### Requirements
38+
39+
Using pandas datareader requires the following packages:
40+
41+
- pandas>=1.0
42+
- lxml
43+
- requests>=2.19.0
44+
45+
Building the documentation additionally requires:
46+
47+
- matplotlib
48+
- ipython
49+
- requests_cache
50+
- sphinx
51+
- pydata_sphinx_theme
52+
53+
Development and testing additionally requires:
54+
55+
- black
56+
- coverage
57+
- codecov
58+
- coveralls
59+
- flake8
60+
- pytest
61+
- pytest-cov
62+
- wrapt
63+
64+
### Install latest development version
65+
66+
``` shell
67+
python -m pip install git+https://github.com/pydata/pandas-datareader.git
68+
```
69+
70+
or
71+
72+
``` shell
73+
git clone https://github.com/pydata/pandas-datareader.git
74+
cd pandas-datareader
75+
python setup.py install
76+
```

README.rst

Lines changed: 0 additions & 94 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#passing-parameters
2+
schedules:
3+
- cron: "27 3 * * 0"
4+
# 3:27am UTC every Sunday
5+
displayName: Weekly build
6+
branches:
7+
include:
8+
- main
9+
always: true
10+
11+
trigger:
12+
- main
13+
14+
variables:
15+
PYTHONHASHSEED: 12345678
16+
SETUPTOOLS_USE_DISTUTILS: "stdlib"
17+
coverage: true
18+
RANDOMGEN_CYTHON_COVERAGE: true
19+
20+
jobs:
21+
22+
- template: ci/azure/azure_template_posix.yml
23+
parameters:
24+
name: Linux
25+
vmImage: ubuntu-20.04
26+
27+
- template: ci/azure/azure_template_windows.yml
28+
parameters:
29+
name: Windows
30+
vmImage: windows-2019

ci/azure/azure_template_posix.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Python package
2+
# Create and test a Python package on multiple Python versions.
3+
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5+
6+
parameters:
7+
# defaults for any parameters that are not specified
8+
name: ''
9+
vmImage: ''
10+
coverage: true
11+
12+
jobs:
13+
14+
- job: ${{ parameters.name }}Test
15+
pool:
16+
vmImage: ${{ parameters.vmImage }}
17+
strategy:
18+
matrix:
19+
${{ if eq(parameters.name, 'Linux') }}:
20+
python36_legacy:
21+
python.version: '3.6'
22+
PANDAS: 1.0.5
23+
python37_legacy:
24+
python.version: '3.7'
25+
PANDAS: 1.1.5
26+
python38_recent:
27+
python.version: '3.8'
28+
PANDAS: 1.2.5
29+
python39_latest:
30+
python.version: '3.9'
31+
32+
# maxParallel: 10
33+
34+
steps:
35+
- task: UsePythonVersion@0
36+
inputs:
37+
versionSpec: '$(python.version)'
38+
displayName: 'Use Python $(python.version)'
39+
40+
- script: |
41+
python -m pip install pip setuptools -U
42+
python -m pip install -r requirements.txt
43+
python -m pip install -r requirements-dev.txt
44+
45+
if [[ -n ${PANDAS} ]]; then
46+
python -m pip install pandas==${PANDAS}
47+
fi;
48+
displayName: 'Install dependencies'
49+
50+
- script: |
51+
python -m pip install -e . -v --no-build-isolation
52+
displayName: 'Install'
53+
54+
- script: python -m pip list
55+
displayName: 'List Configuration (PyPI)'
56+
57+
- script: |
58+
black --check pandas_datareader
59+
isort --check pandas_datareader
60+
flake8 pandas_datareader
61+
displayName: 'Check style and formatting'
62+
63+
- script: |
64+
echo "Testing editable install"
65+
if [[ ${COVERAGE} == "true" ]]; then
66+
export COVERAGE_OPTS="--cov-config .coveragerc --cov=pandas_datareader --cov-report xml:coverage.xml --cov-report term"
67+
fi
68+
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n 2 --durations=25 ${COVERAGE_OPTS} pandas_datareader/tests
69+
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n 2 --durations=25 ${COVERAGE_OPTS} pandas_datareader/tests
70+
displayName: 'Run tests'
71+
72+
- task: PublishTestResults@2
73+
inputs:
74+
testResultsFiles: '**/test-results.xml'
75+
testRunTitle: 'Python $(python.version)'
76+
condition: succeededOrFailed()
77+
78+
- task: PublishCodeCoverageResults@1
79+
inputs:
80+
codeCoverageTool: Cobertura
81+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
82+
condition: eq(variables['coverage'], 'true')
83+
84+
- bash: bash <(curl -s https://codecov.io/bash)
85+
displayName: 'CodeCov upload'
86+
condition: eq(variables['coverage'], 'true')

0 commit comments

Comments
 (0)