Skip to content

Commit c1b92c8

Browse files
committed
MAINT: Add AzureCi and prepare for 0.10 release
Add Azure CI run Prepare for 0.10 release by restructuring Remove useless files
1 parent b56ca89 commit c1b92c8

9 files changed

+300
-176
lines changed

.travis.yml

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

README.md

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

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 auto --durations=25 ${COVERAGE_OPTS} pandas_datareader/tests
69+
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --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)