Skip to content

Commit

Permalink
Merge pull request #650 from bashtage/update-setup-and-req
Browse files Browse the repository at this point in the history
MAINT: Bump minimum versions
  • Loading branch information
bashtage committed May 10, 2023
2 parents 8665365 + 3fcae5c commit b7c9ebe
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 239 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ branch = True
omit =
*/_version.py
*/compat/*
*/vendor/*
plugins = Cython.Coverage

[report]
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ cov_est.cov.long_run
These requirements reflect the testing environment. It is possible
that arch will work with older versions.

- Python (3.7+)
- NumPy (1.17+)
- SciPy (1.3+)
- Pandas (1.0+)
- statsmodels (0.11+)
- Python (3.8+)
- NumPy (1.19+)
- SciPy (1.5+)
- Pandas (1.1+)
- statsmodels (0.12+)
- matplotlib (3+), optional
- property-cached (1.6.4+), optional

Expand Down Expand Up @@ -263,7 +263,7 @@ conda install arch-py -c conda-forge
### Windows

Building extension using the community edition of Visual Studio is
simple when using Python 3.7 or later. Building is not necessary when numba
simple when using Python 3.8 or later. Building is not necessary when numba
is installed since just-in-time compiled code (numba) runs as fast as
ahead-of-time compiled extensions.

Expand Down
2 changes: 1 addition & 1 deletion arch/bootstrap/_samplers.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!python
#cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True, binding=True


import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion arch/covariance/kernel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from functools import cached_property
from typing import SupportsInt, cast

import numpy as np
Expand All @@ -9,7 +10,6 @@

from arch.typing import ArrayLike, Float64Array
from arch.utility.array import AbstractDocStringInheritor, ensure1d, ensure2d
from arch.vendor import cached_property

__all__ = [
"Bartlett",
Expand Down
2 changes: 1 addition & 1 deletion arch/unitroot/cointegration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from functools import cached_property
from typing import Sequence

import numpy as np
Expand Down Expand Up @@ -29,7 +30,6 @@
from arch.utility.array import ensure2d
from arch.utility.io import pval_format, str_format
from arch.utility.timeseries import add_trend
from arch.vendor import cached_property

__all__ = [
"engle_granger",
Expand Down
2 changes: 1 addition & 1 deletion arch/univariate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from abc import ABCMeta, abstractmethod
from copy import deepcopy
import datetime as dt
from functools import cached_property
from typing import Any, Callable, Sequence, cast
import warnings

Expand Down Expand Up @@ -44,7 +45,6 @@
starting_value_warning,
)
from arch.utility.testing import WaldTestStatistic
from arch.vendor import cached_property

try:
from matplotlib.figure import Figure
Expand Down
3 changes: 2 additions & 1 deletion arch/univariate/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
VolatilityUpdater,
)

from functools import cached_property

from arch.typing import Literal
from arch.univariate.volatility import (
APARCH,
Expand All @@ -69,7 +71,6 @@
ensure1d,
parse_dataframe,
)
from arch.vendor import cached_property

__all__ = ["HARX", "ConstantMean", "ZeroMean", "ARX", "arch_model", "LS", "ARCHInMean"]

Expand Down
8 changes: 5 additions & 3 deletions arch/univariate/recursions.pyx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!python
#cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True, binding=True


import numpy as np

cimport numpy as np
from libc.float cimport DBL_MAX
from libc.math cimport exp, fabs, lgamma, log, sqrt

DEF SQRT2_OV_PI = 0.79788456080286535587989211
cdef:
double SQRT2_OV_PI = 0.79788456080286535587989211


__all__ = [
"harch_recursion",
Expand All @@ -34,7 +36,7 @@ cdef double LNSIGMA_MAX = log(DBL_MAX)

np.import_array()

cdef inline void bounds_check(double* sigma2, double* var_bounds):
cdef inline void bounds_check(double* sigma2, const double* var_bounds):
if sigma2[0] < var_bounds[0]:
sigma2[0] = var_bounds[0]
elif sigma2[0] > var_bounds[1]:
Expand Down
2 changes: 1 addition & 1 deletion arch/utility/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

from abc import ABCMeta
import datetime as dt
from functools import cached_property
from typing import Any, Hashable, Literal, Sequence, overload

import numpy as np
from pandas import DataFrame, DatetimeIndex, Index, NaT, Series, Timestamp, to_datetime

from arch.typing import AnyPandas, ArrayLike, DateLike, NDArray
from arch.vendor import cached_property

__all__ = [
"ensure1d",
Expand Down
4 changes: 2 additions & 2 deletions arch/utility/testing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from scipy.stats import chi2
from functools import cached_property

from arch.vendor import cached_property
from scipy.stats import chi2

__all__ = ["WaldTestStatistic"]

Expand Down
14 changes: 0 additions & 14 deletions arch/vendor/__init__.py

This file was deleted.

189 changes: 0 additions & 189 deletions arch/vendor/property_cached.py

This file was deleted.

6 changes: 6 additions & 0 deletions doc/source/changes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Version 5
=========

Changes Since 5.5
=================
- Removed dependence on property-cached
- Bumped minimum NumPy, SciPy, pandas, statsmodels and Cython
- Added compatability with Cython 3

Release 5.5
===========
- NumPy 1.25 fixes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
"setuptools_scm[toml]>=7,<8",
"oldest-supported-numpy",
"numpy; python_version>='3.12'",
"Cython>=0.29.32"
"cython>=3.0.0b2"
]
build-backend = "setuptools.build_meta"

Expand Down
Loading

0 comments on commit b7c9ebe

Please sign in to comment.