@@ -30,9 +30,11 @@ classifiers = [
3030]
3131
3232dependencies = [
33+ # following pandas
34+ " numpy>=1.23.5; python_version<'3.12'" ,
35+ " numpy>=1.26.0; python_version>='3.12'" ,
36+ " pandas >=1.3.0,<3.0" ,
3337 " matplotlib >=1.4.0" ,
34- " numpy >=1.9.1" ,
35- " pandas >=1.2.0,<3.0" ,
3638 " scipy >=0.14.0" ,
3739 " seaborn >=0.6.0" ,
3840 " statsmodels >=0.6.1" ,
@@ -49,8 +51,6 @@ documentation = 'https://alphalens.ml4trading.io'
4951requires = [
5052 ' setuptools>=54.0.0' ,
5153 " setuptools_scm[toml]>=6.2" ,
52- ' wheel>=0.31.0' ,
53- ' oldest-supported-numpy; python_version>="3.8"' ,
5454]
5555
5656build-backend = ' setuptools.build_meta'
@@ -98,12 +98,12 @@ version_scheme = 'guess-next-dev'
9898local_scheme = ' dirty-tag'
9999
100100
101- [tool .pytest ]
101+ [tool .pytest .ini_options ]
102+ pythonpath = [' src' ]
102103minversion = " 6.0"
103104testpaths = ' tests'
104105addopts = ' -v'
105106
106-
107107[tool .cibuildwheel ]
108108test-extras = " test"
109109test-command = " pytest -n 2 {package}/tests"
@@ -122,18 +122,29 @@ skip = "*musllinux*"
122122
123123[tool .black ]
124124line-length = 88
125- target-version = [' py38 ' , ' py39 ' , ' py310 ' ]
125+ target-version = [' py39 ' , ' py310 ' , ' py311 ' , ' py312 ' ]
126126include = ' \.pyi?$'
127127extend-exclude = '''
128128\(
129129 docs/source/conf.py
130130\)
131131'''
132132
133+
133134[tool .tox ]
134135legacy_tox_ini = """
135136[tox]
136- envlist = py39-pandas12, py{39,310,311}-pandas{13,14,15}, py{39,310,311,312}-pandas{15,20,21,22}
137+
138+ envlist =
139+ py39-pandas{13,14,15}-numpy1
140+ py310-pandas{13,14,15,20,21,22}-numpy1
141+ py311-pandas{13,14,15,20,21,22}-numpy1
142+ py312-pandas{13,14,15,20,21,22}-numpy1
143+ py39-pandas222-numpy2
144+ py310-pandas222-numpy2
145+ py311-pandas222-numpy2
146+ py312-pandas222-numpy2
147+
137148isolated_build = True
138149skip_missing_interpreters = True
139150minversion = 3.23.0
@@ -153,13 +164,16 @@ setenv =
153164changedir = tmp
154165extras = test
155166deps =
156- pandas12: pandas>=1.2.0,<1.3
157167 pandas13: pandas>=1.3.0,<1.4
158168 pandas14: pandas>=1.4.0,<1.5
159169 pandas15: pandas>=1.5.0,<1.6
160170 pandas20: pandas>=2.0,<2.1
161171 pandas21: pandas>=2.1,<2.2
162172 pandas22: pandas>=2.2,<2.3
173+ pandas222: pandas>=2.2.2,<2.3
174+ numpy1: numpy>=1.23.5,<2.0
175+ numpy2: numpy>=2.0,<2.1
176+
163177
164178commands =
165179 pytest -n 2 --cov={toxinidir}/src --cov-report term --cov-report=xml --cov-report=html:htmlcov {toxinidir}/tests
0 commit comments