Skip to content

Commit 7767ecd

Browse files
authored
Merge pull request statsmodels#9092 from bashtage/backport-0.14.1
Backport 0.14.1
2 parents f0f0a51 + a78a176 commit 7767ecd

File tree

82 files changed

+1834
-628
lines changed

Some content is hidden

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

82 files changed

+1834
-628
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
# Initializes the CodeQL tools for scanning.
3333
- name: Initialize CodeQL

.github/workflows/generate-documentation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
python-version: ["3.10"]
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
3131
- name: Checkout statsmodels.github.io without token
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 1
3535
repository: statsmodels/statsmodels.github.io
3636
path: statsmodels.github.io
3737
if: ${{ github.event_name == 'pull_request' }}
3838
- name: Checkout statsmodels.github.io with token
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040
with:
4141
fetch-depth: 1
4242
repository: statsmodels/statsmodels.github.io
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install graphviz
5353
uses: ts-graphviz/setup-graphviz@v1
5454
- name: Set up Python ${{ matrix.python-version }}
55-
uses: actions/setup-python@v4
55+
uses: actions/setup-python@v5
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
cache: "pip"

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ examples/executed
1818

1919
#setuptools-scm generated version file
2020
statsmodels/_version.py
21-
# generated c source and built extensions
21+
# Generated c source and built extensions
22+
# and Byte-compiled / optimized / DLL files
2223
*.c
2324
*.so
24-
*.pyd
25+
*.py[cod]
26+
__pycache__/
27+
2528

2629
# repository directories for bzr-git
2730
.bzr
@@ -104,3 +107,6 @@ statsmodels/tsa/statespace/_smoothers/_classical.pyx
104107
# Temporary copies for packaging
105108
statsmodels/setup.cfg
106109
statsmodels/LICENSE.txt
110+
111+
# Dataset downloads
112+
statsmodels/datasets/tests/*.zip

INSTALL.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ patsy >= 0.5.2
2121

2222
patsy.readthedocs.org
2323

24-
cython >= 0.29.26
24+
cython >= 0.29.33 and < 4.0.0
2525

2626
https://cython.org/
2727

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ variables:
1616
VML_NUM_THREADS: 1
1717
OPENBLAS_NUM_THREADS: 1
1818
PYTHONHASHSEED: 0 # Ensure tests are correctly gathered by xdist
19-
SETUPTOOLS_USE_DISTUTILS: "stdlib"
2019
USE_MATPLOTLIB: true
2120

2221
jobs:

docs/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The current minimum dependencies are:
134134

135135
Cython is required to build from a git checkout but not to run or install from PyPI:
136136

137-
* `Cython <https://cython.org/>`__ >= 0.29.26 is required to build the code from
137+
* `Cython <https://cython.org/>`__ >= 0.29.33 is required to build the code from
138138
github but not from a source distribution.
139139

140140
Given the long release cycle, statsmodels follows a loose time-based policy for

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
# These are strictly build requirements. Runtime requirements are listed in
33
# INSTALL_REQUIRES in setup.py
44
requires = [
5-
"setuptools>=59.2.0",
6-
"cython>=0.29.26,<3", # Sync with CYTHON_MIN_VER in setup
5+
"setuptools>=69.0.2; python_version>='3.12'",
6+
"setuptools>=63.4.3",
7+
"cython>=0.29.33,<4", # Sync with CYTHON_MIN_VER in setup
78
# Workaround for oldest supported numpy using 1.21.6, but SciPy 1.9.2+ requiring 1.22.3+
89
"oldest-supported-numpy; python_version!='3.10' or platform_system!='Windows' or platform_python_implementation=='PyPy'",
910
"numpy>=1.22.3,<2; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
1011
"numpy<2; python_version>='3.12'",
1112
"scipy>=1.4",
12-
"setuptools_scm[toml]>=7,<8"
13+
"setuptools_scm[toml]>=8,<9"
1314
]
1415
build-backend = "setuptools.build_meta"
1516

requirements-dev.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# build
2-
cython>=0.29.28,<3.0.0
3-
setuptools_scm[toml]~=7.0
2+
cython>=0.29.33,<4.0.0
3+
setuptools_scm[toml]~=8.0
44
oldest-supported-numpy>=2022.4.18
55

66
# run
@@ -14,6 +14,7 @@ joblib
1414
pytest>=7.3.0
1515
pytest-randomly
1616
pytest-xdist
17+
pytest-cov
1718

1819
# Pin on Win32
1920
pywinpty; os_name == "nt"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ numpy >=1.18,<2 # released December 2019
44
scipy>=1.4,!=1.9.2 # released December 2019
55
scipy>=1.4,!=1.9.2; sys_platform == "win32" # Blocked 1.9.2 due to Windows issues
66
pandas>=1.0,!=2.1.0 # released January 2020, 2.1.0 blocked due to bug
7-
patsy>=0.5.2 # released January 2018
7+
patsy>=0.5.4 # released January 2018
88
packaging>=21.3 # released Nov 2021

setup.cfg

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ filterwarnings =
2323
ignore:The --strict option is deprecated:pytest.PytestDeprecationWarning:
2424
error:genfromdta:FutureWarning
2525
error:StataReader:FutureWarning
26-
error:Estimation of VARMA:statsmodels.tools.sm_exceptions.EstimationWarning
2726
error:Care should be used:UserWarning
2827
error::statsmodels.tools.sm_exceptions.HypothesisTestWarning
2928
error::statsmodels.tools.sm_exceptions.SpecificationWarning
@@ -79,6 +78,21 @@ filterwarnings =
7978
error:A value is trying to be set on a copy::
8079
error:Conversion of an array with ndim:DeprecationWarning:
8180
error:Series.__getitem__ treating keys:FutureWarning:
81+
error:'Y' is deprecated, please use 'YE' instead:FutureWarning
82+
error:'A' is deprecated, please use 'YE' instead:FutureWarning
83+
error:'H' is deprecated and will:FutureWarning
84+
error:'M' is deprecated, please use:FutureWarning
85+
error:'Q' is deprecated, please use 'QE' instead:FutureWarning
86+
error:'Q-DEC' is deprecated, please use 'QE-DEC' instead:FutureWarning
87+
error:'Q-JAN' is deprecated, please use 'QE-JAN' instead:FutureWarning
88+
error:'BQ-MAR' is deprecated, please use 'BQE-MAR' instead:FutureWarning
89+
error:'AS-MAR' is deprecated and will be removed in a future version:FutureWarning
90+
error:Downcasting object dtype arrays on:FutureWarning
91+
error:The previous implementation of stack is deprecated:FutureWarning
92+
error:Series.__setitem__ treating keys as positions is deprecated:FutureWarning
93+
error:The provided callable:FutureWarning
94+
error:divide by zero encountered in log1p:RuntimeWarning
95+
8296
markers =
8397
example: mark a test that runs example code
8498
matplotlib: mark a test that requires matplotlib

0 commit comments

Comments
 (0)