Skip to content

Commit

Permalink
Merge pull request #395 from NREL/rtd
Browse files Browse the repository at this point in the history
Update ReadTheDocs configuration
  • Loading branch information
mdeceglie authored Nov 2, 2023
2 parents 8013982 + a0e6919 commit 121304e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.7"

python:
version: "3.7"
install:
- method: pip
path: .
Expand Down
1 change: 1 addition & 0 deletions docs/sphinx/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RdTools Change Log
==================
.. include:: changelog/pending.rst
.. include:: changelog/v2.1.6.rst
.. include:: changelog/v2.1.5.rst
.. include:: changelog/v2.1.4.rst
Expand Down
16 changes: 16 additions & 0 deletions docs/sphinx/source/changelog/pending.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*******
Pending
*******

Requirements
------------
* Limit pandas version to <2.1 (:pull:`395`)

Documentation
-------------
* Update ReadTheDocs configuration (:pull:`395`)

Contributors
------------
* Michael Deceglie (:ghuser:`mdeceglie`)
* Kevin Anderson (:ghuser:`kandersolar`)
2 changes: 1 addition & 1 deletion rdtools/test/interpolate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ def test_interpolate_warning(test_df, df_target_index, df_expected_result):
with pytest.warns(None) as record:
interpolate(test_df, df_target_index, pd.to_timedelta('15 minutes'),
warning_threshold=0.5)
if record:
if 'Fraction of excluded data' in ';'.join([str(x.message) for x in record.list]):
pytest.fail("normalize.interpolate raised a warning about "
"excluded data even though the threshold was high")
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
INSTALL_REQUIRES = [
'matplotlib >= 3.0.0',
'numpy >= 1.17.3',
'pandas >= 1.3.0',
# pandas restricted to <2.1 until
# https://github.com/pandas-dev/pandas/issues/55794
# is resolved
'pandas >= 1.3.0, <2.1',
'statsmodels >= 0.11.0',
'scipy >= 1.2.0',
'h5py >= 2.8.0',
Expand Down

0 comments on commit 121304e

Please sign in to comment.