Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ regression. Currently only the single variable IV estimators are polished.

### Running

- Python 3.9+
- Python 3.10+
- NumPy (1.22+)
- SciPy (1.8+)
- pandas (1.4+)
- statsmodels (0.12+)
- statsmodels (0.13.1+)
- formulaic (1.0.0+)
- xarray (0.16+, optional)
- Cython (3.0.10+, optional)
Expand Down
37 changes: 15 additions & 22 deletions ci/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,42 @@ jobs:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
python39_minimums:
python.version: '3.9'
python310_minimums:
python.version: '3.10'
NUMPY: 1.22.3
SCIPY: 1.8.0
PANDAS: 1.3.0
STATSMODELS: 0.12.0
STATSMODELS: 0.13.1
XARRAY: 0.21.0
FORMULAIC: 0.6.5
FORMULAIC: 1.0.2
test.install: true
python39_mid:
python.version: '3.9'
python310_mid:
python.version: '3.10'
NUMPY: 1.23.0
SCIPY: 1.9.0
PANDAS: 1.4.0
STATSMODELS: 0.13.0
STATSMODELS: 0.13.1
XARRAY: 2022.6.0
XXHASH: true
FORMULAIC: 0.6.5
test.install: true
python39_recent:
python.version: '3.9'
NUMPY: 1.24.0
SCIPY: 1.10.0
PANDAS: 1.5.0
STATSMODELS: 0.13.0
XARRAY: 2022.12.0
FORMULAIC: 0.6.5
FORMULAIC: 1.0.2
test.install: true
python310_no_cython:
python.version: '3.10'
LM_NO_BINARY: 1
python310_recent:
python.version: '3.10'
NUMPY: 1.24.0
SCIPY: 1.12.0
PANDAS: 2.0.0
STATSMODELS: 0.14.0
XARRAY: 2023.4.0
FORMULAIC: 1.1.0
test.install: true
python310_latest:
python.version: '3.10'
FORMULAIC: 1.0.1
FORMULAIC: 1.2.0
XXHASH: true
PYARROW: true
python310_no_cython:
python.version: '3.10'
LM_NO_BINARY: 1
python311_latest:
python.version: '3.11'
XXHASH: true
Expand All @@ -71,7 +64,7 @@ jobs:
python.version: '3.13'
XXHASH: true
PYARROW: true
python312_copy_on_write:
python313_copy_on_write:
python.version: '3.12'
XXHASH: true
LM_TEST_COPY_ON_WRITE: 1
Expand Down
4 changes: 1 addition & 3 deletions ci/azure_template_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
python39_win_latest:
python.version: '3.9'
python310_win_latest:
python.version: '3.10'
python311_win_latest:
Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
python -m pip install -r requirements-dev.txt
jupyter kernelspec list
displayName: 'Install complete dependencies'
condition: ne(variables['python.version'], '3.9')
condition: ne(variables['python.version'], '3.10')

- script: |
python -m pip list
Expand Down
3 changes: 2 additions & 1 deletion doc/source/changes.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Change Log
==========

.. include:: changes/6.0.rst
.. include:: changes/7.0.rst

=============
Past Releases
Expand All @@ -10,6 +10,7 @@ Past Releases
.. toctree::
:maxdepth: 1

changes/6.0
changes/5.0
changes/4.0
changes/3.0-2.0-1.0
2 changes: 1 addition & 1 deletion doc/source/changes/6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version 6.0
* Small doc fixes
* Support Python 3.13

Version 6.0
Version 6.1
-----------

* Increased minimums:
Expand Down
11 changes: 11 additions & 0 deletions doc/source/changes/7.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Version 7.0
-----------

* Increased minimums:

- Python: 3.10
- formulaic: 1.0.0
- NumPy: 1.22.3
- SciPy: 1.8.0
- pandas: 1.4.0
- statsmodels: 0.13.0
3 changes: 2 additions & 1 deletion linearmodels/asset_pricing/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from __future__ import annotations

from typing import Any, Callable, cast
from collections.abc import Callable
from typing import Any, cast

from formulaic import model_matrix
from formulaic.materializers.types import NAAction
Expand Down
3 changes: 2 additions & 1 deletion linearmodels/iv/covariance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from __future__ import annotations

from typing import Any, Callable, Union, cast
from collections.abc import Callable
from typing import Any, Union, cast

from mypy_extensions import VarArg
from numpy import (
Expand Down
3 changes: 2 additions & 1 deletion linearmodels/iv/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from __future__ import annotations

from typing import Any, Callable, TypeVar, Union, cast
from collections.abc import Callable
from typing import Any, TypeVar, Union, cast
import warnings

from numpy import (
Expand Down
3 changes: 2 additions & 1 deletion linearmodels/shared/utility.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from collections.abc import (
Callable,
ItemsView,
Iterable,
Iterator,
Expand All @@ -10,7 +11,7 @@
Sequence,
ValuesView,
)
from typing import Any, Callable, Protocol, TypeVar, cast
from typing import Any, Protocol, TypeVar, cast

import numpy as np
import pandas
Expand Down
3 changes: 1 addition & 2 deletions linearmodels/tests/iv/test_absorbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from itertools import product
import struct
from typing import Optional

import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
Expand Down Expand Up @@ -597,7 +596,7 @@ def test_instrments():


def assert_results_equal(
o_res: OLSResults, a_res: AbsorbingLSResults, k: Optional[int] = None
o_res: OLSResults, a_res: AbsorbingLSResults, k: int | None = None
) -> None:
if k is None:
k = a_res.params.shape[0]
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[project]
license = "NCSA"

[flake8]
max-line-length = 99
ignore = E203,W503,BLK100
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,18 @@ def run_setup(binary: bool = True) -> None:
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: University of Illinois/NCSA Open Source License",
"Programming Language :: Python :: 3.13",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
],
ext_modules=extensions,
python_requires=">=3.9",
python_requires=">=3.10",
distclass=BinaryDistribution,
)

Expand Down
Loading