Skip to content

Commit

Permalink
Merge pull request #445 from bashtage/update-reqs
Browse files Browse the repository at this point in the history
MAINT: Update requirements
  • Loading branch information
bashtage authored Feb 5, 2021
2 parents 592058e + 752c68e commit 1ff7c98
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 29 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ cov_est.cov.long_run
These requirements reflect the testing environment. It is possible
that arch will work with older versions.

- Python (3.6+)
- NumPy (1.14+)
- SciPy (1.0.1+)
- Python (3.7+)
- NumPy (1.16+)
- SciPy (1.2+)
- Pandas (0.23+)
- statsmodels (0.9+)
- matplotlib (2.0+), optional
- property-cached (1.6.3+), optional
- statsmodels (0.11+)
- matplotlib (2.2+), optional
- property-cached (1.6.4+), optional

### Optional Requirements

Expand Down
12 changes: 2 additions & 10 deletions arch/univariate/recursions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@
import numpy as np

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

__all__ = ['harch_recursion', 'arch_recursion', 'garch_recursion', 'egarch_recursion',
'midas_recursion', 'figarch_recursion', 'figarch_weights', 'aparch_recursion']

cdef extern from 'math.h':
double log(double x)
double exp(double x)
double sqrt(double x)
double fabs(double x)

cdef extern from 'float.h':
double DBL_MAX

cdef double LNSIGMA_MAX = log(DBL_MAX)

np.import_array()
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
requires = [
"setuptools",
"wheel",
"numpy==1.14.6; python_version=='3.6'",
"numpy==1.14.6; python_version=='3.7'",
"numpy==1.6.6; python_version<='3.7'",
"numpy==1.17.5; python_version=='3.8'",
"numpy; python_version>='3.9'",
"numpy==1.19.5; python_version=='3.9'",
"numpy; python_version>='3.10'",
"Cython>=0.29.14"]

[tool.black]
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38']
exclude = '''
(
\.egg
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Performance
cython>=0.29.14
cython>=0.29.21
numba>=0.49,!=0.50.*

# Graphics
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy>=1.14
scipy>=1.0.1
numpy>=1.16
scipy>=1.2.3
pandas>=0.23
statsmodels>=0.9
property_cached>=1.6.3
statsmodels>=0.11
property_cached>=1.6.4
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def build_extensions(self) -> None:
INSTALL_REQUIREMENTS = SETUP_REQUIREMENTS.copy()
INSTALL_REQUIREMENTS.update(
{
"scipy": "1.0.1",
"scipy": "1.2.3",
"pandas": "0.23",
"statsmodels": "0.9",
"property_cached": "1.6.3",
"statsmodels": "0.10",
"property_cached": "1.6.4",
}
)

Expand Down Expand Up @@ -177,9 +177,9 @@ def run_setup(binary: bool = True) -> None:
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
Expand Down

0 comments on commit 1ff7c98

Please sign in to comment.