Skip to content

Commit 4d69731

Browse files
committed
MAINT: Modernize setup
Move away from setup.py Bump requirements Update CI Rerun black, isort, flake8
1 parent 9cd961c commit 4d69731

32 files changed

+126
-2624
lines changed

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ include LICENSE.md
33
include requirements.txt
44
include requirements-dev.txt
55
include pandas_datareader/*.py
6-
76
include pandas_datareader/tests/*.py
87
include pandas_datareader/tests/data/*
9-
include versioneer.py
108
include pandas_datareader/_version.py

azure-pipelines.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ trigger:
1313

1414
variables:
1515
PYTHONHASHSEED: 12345678
16-
SETUPTOOLS_USE_DISTUTILS: "stdlib"
1716
coverage: true
18-
RANDOMGEN_CYTHON_COVERAGE: true
1917

2018
jobs:
2119

ci/azure/azure_template_posix.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
strategy:
1818
matrix:
1919
${{ 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:
20+
python38_legacy:
2721
python.version: '3.8'
28-
PANDAS: 1.2.5
29-
python39_latest:
22+
PANDAS: 1.5.3
23+
python39_legacy:
3024
python.version: '3.9'
31-
32-
# maxParallel: 10
25+
PANDAS: 1.5.3
26+
python310_recent:
27+
python.version: '3.9'
28+
PANDAS: 2.0.3
29+
python311_latest:
30+
python.version: '3.11'
31+
python312_latest:
32+
python.version: '3.12'
3333

3434
steps:
3535
- task: UsePythonVersion@0
@@ -41,14 +41,13 @@ jobs:
4141
python -m pip install pip setuptools -U
4242
python -m pip install -r requirements.txt
4343
python -m pip install -r requirements-dev.txt
44-
4544
if [[ -n ${PANDAS} ]]; then
4645
python -m pip install pandas==${PANDAS}
4746
fi;
4847
displayName: 'Install dependencies'
4948
5049
- script: |
51-
python -m pip install -e . -v --no-build-isolation
50+
python -m pip install -e . -vv
5251
displayName: 'Install'
5352
5453
- script: python -m pip list

ci/azure/azure_template_windows.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
strategy:
1818
matrix:
1919
${{ if eq(parameters.name, 'Linux') }}:
20-
python37_legacy:
21-
python.version: '3.7'
22-
PANDAS: 1.0.5
2320
python38_legacy:
2421
python.version: '3.8'
25-
PANDAS: 1.1.5
26-
python38_recent:
27-
python.version: '3.8'
28-
PANDAS: 1.2.5
29-
python39_latest:
22+
PANDAS: 1.5.3
23+
python39_legecy:
3024
python.version: '3.9'
31-
32-
# maxParallel: 10
25+
PANDAS: 1.5.3
26+
python310_recent:
27+
python.version: '3.10'
28+
PANDAS: 2.0.3
29+
python311_latest:
30+
python.version: '3.11'
31+
python312_latest:
32+
python.version: '3.12'
3333

3434
steps:
3535
- task: UsePythonVersion@0

ci/pypi-install.sh

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

pandas_datareader/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
from ._version import get_versions
4+
from ._version import __version__
55
from .data import (
66
DataReader,
77
Options,
@@ -33,9 +33,6 @@
3333

3434
PKG = os.path.dirname(__file__)
3535

36-
__version__ = get_versions()["version"]
37-
del get_versions
38-
3936
__all__ = [
4037
"__version__",
4138
"get_components_yahoo",

pandas_datareader/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def _sanitize_dates(start, end):
4646
try:
4747
start = to_datetime(start)
4848
end = to_datetime(end)
49-
except (TypeError, ValueError):
50-
raise ValueError("Invalid date format.")
49+
except (TypeError, ValueError) as exc:
50+
raise ValueError("Invalid date format.") from exc
5151
if start > end:
5252
raise ValueError("start must be an earlier date than end")
5353
return start, end

0 commit comments

Comments
 (0)