Skip to content

Commit b152973

Browse files
authored
Merge pull request #525 from bashtage/remove-property-cached
MAINT: Remove dependence on property-cached
2 parents c5f5340 + 85c808f commit b152973

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

doc/source/changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Future Version 5.0
1212

1313
* Switched variable ordering by default. Importing ``linearmodels.__future__.ordering``
1414
is a no-op, and has no effect.
15-
15+
* Removed dependence on property-cached in favor of :meth:`functools.cached_property`.
1616

1717

1818
Version 4.31

linearmodels/asset_pricing/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from linearmodels.compat.statsmodels import Summary
77

88
import datetime as dt
9+
from functools import cached_property
910
from typing import cast
1011

1112
import numpy as np
1213
import pandas as pd
13-
from property_cached import cached_property
1414
from scipy import stats
1515
from statsmodels.iolib.summary import SimpleTable, fmt_2cols, fmt_params
1616

linearmodels/iv/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from linearmodels.compat.statsmodels import Summary
77

88
import datetime as dt
9+
from functools import cached_property
910
from typing import Any, Sequence, Union
1011

1112
from numpy import (
@@ -23,7 +24,6 @@
2324
)
2425
from numpy.linalg import inv
2526
from pandas import DataFrame, Series, concat, to_numeric
26-
from property_cached import cached_property
2727
import scipy.stats as stats
2828
from statsmodels.iolib.summary import SimpleTable, fmt_2cols, fmt_params
2929
from statsmodels.iolib.table import default_txt_fmt

linearmodels/panel/covariance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from __future__ import annotations
22

3+
from functools import cached_property
34
from typing import Any, Type, Union
45

56
import numpy as np
67
from numpy.linalg import inv
78
from pandas import DataFrame, MultiIndex
8-
from property_cached import cached_property
99

1010
from linearmodels.iv.covariance import (
1111
CLUSTER_ERR,

linearmodels/panel/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from linearmodels.compat.statsmodels import Summary
44

55
import datetime as dt
6+
from functools import cached_property
67
from typing import Any, Mapping, Union
78

89
from formulaic.utils.context import capture_context
910
import numpy as np
1011
from pandas import DataFrame, Series, concat
11-
from property_cached import cached_property
1212
from scipy import stats
1313
from statsmodels.iolib.summary import SimpleTable, fmt_2cols, fmt_params
1414

linearmodels/system/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from linearmodels.compat.statsmodels import Summary
44

55
import datetime as dt
6+
from functools import cached_property
67
from typing import Any, Dict, Tuple, Union
78

89
import numpy as np
910
from pandas import DataFrame, Series, concat
10-
from property_cached import cached_property
1111
from scipy import stats
1212
from statsmodels.iolib.summary import SimpleTable, fmt_2cols
1313

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ numpy>=1.16
22
pandas>=0.24
33
scipy>=1.2
44
statsmodels>=0.11
5-
property_cached>=1.6.3
65
mypy_extensions>=0.4
76
Cython>=0.29.21
87
pyhdfe>=0.1

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
if ".png" in filename:
4545
additional_files.append(filename)
4646

47+
additional_files.extend(glob.glob("./linearmodels/**/*.pyx", recursive=True))
48+
additional_files.extend(glob.glob("./linearmodels/**/*.pyi", recursive=True))
49+
additional_files.extend(glob.glob("./linearmodels/**/*.pyd", recursive=True))
50+
additional_files.extend(glob.glob("./linearmodels/**/*.so", recursive=True))
4751

4852
class BinaryDistribution(Distribution):
4953
def is_pure(self) -> bool:

0 commit comments

Comments
 (0)