Skip to content

Commit eb1c36d

Browse files
authored
Add python 3.12 (#282)
1 parent 17a556c commit eb1c36d

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ matrix.os }}
3131
strategy:
3232
matrix:
33-
python-version: ['3.8', '3.9', '3.10', '3.11']
33+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
3434
os: [ubuntu-20.04, macos-latest]
3535
steps:
3636
- uses: actions/checkout@v1
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ${{ matrix.os }}
5050
strategy:
5151
matrix:
52-
python-version: ['3.8', '3.9', '3.10', '3.11']
52+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
5353
os: [ubuntu-20.04, macos-latest]
5454
steps:
5555
- uses: actions/checkout@v1

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
history = history_file.read()
1313

1414
install_requires = [
15-
'Keras>=2.4,<2.15',
15+
'Keras>=2.4',
1616
'featuretools>=0.6.1,<0.23',
1717
'iso639>=0.1.4,<0.2',
1818
'langdetect>=1.0.7,<2',
@@ -21,13 +21,13 @@
2121
'nltk>=3.3,<4',
2222
'numpy>=1.16.0,<2',
2323
'opencv-python>=3.4.0.12,<4.7',
24-
'pandas>=1,<2',
24+
'pandas>=1,<3',
2525
'python-louvain>=0.10,<0.14', # community
2626
'scikit-image>=0.15',
2727
'scikit-learn>=0.21',
2828
'scipy>=1.1.0,<2',
2929
'statsmodels>=0.9.0,<0.15',
30-
'tensorflow>=2,<2.15',
30+
'tensorflow>=2,<2.20',
3131
'xgboost>=0.72.1,<2',
3232
'protobuf<4',
3333
]
@@ -47,7 +47,7 @@
4747
# general
4848
'bumpversion>=0.5.3,<0.6',
4949
'pip>=9.0.1',
50-
'watchdog>=0.8.3,<0.11',
50+
'watchdog>=0.8.3,<5',
5151

5252
# docs
5353
'm2r>=0.2.0,<0.3',
@@ -103,6 +103,7 @@
103103
'Programming Language :: Python :: 3.9',
104104
'Programming Language :: Python :: 3.10',
105105
'Programming Language :: Python :: 3.11',
106+
'Programming Language :: Python :: 3.12',
106107
],
107108
description='Pipelines and primitives for machine learning and data science.',
108109
entry_points = {
@@ -126,7 +127,7 @@
126127
long_description_content_type='text/markdown',
127128
name='mlprimitives',
128129
packages=find_packages(include=['mlprimitives', 'mlprimitives.*']),
129-
python_requires='>=3.8,<3.12',
130+
python_requires='>=3.8,<3.13',
130131
setup_requires=setup_requires,
131132
test_suite='tests',
132133
tests_require=tests_require,

tests/custom/test_feature_extraction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FE(FeatureExtractor):
3535
fe.fit(X)
3636

3737
assert fe._features == ['b']
38-
assert fe._detect_features.not_called()
38+
fe._detect_features.assert_not_called()
3939

4040
def test_fit_auto_pandas(self):
4141
class FE(FeatureExtractor):
@@ -52,7 +52,7 @@ class FE(FeatureExtractor):
5252
fe.fit(X)
5353

5454
assert fe._features == ['a', 'b']
55-
assert fe._detect_features.called_once_with(X)
55+
fe._detect_features.assert_called_once_with(X)
5656
expected_calls = [
5757
((pd.Series(['a', 'b', 'c']), ), {}),
5858
((pd.Series(['d', 'e', 'f']), ), {})
@@ -74,7 +74,7 @@ class FE(FeatureExtractor):
7474
fe.fit(X)
7575

7676
assert fe._features == [0, 1]
77-
assert fe._detect_features.called_once_with(X)
77+
assert fe._detect_features.called
7878
expected_calls = [
7979
((pd.Series(['a', 'b', 'c']), ), {}),
8080
((pd.Series(['d', 'e', 'f']), ), {})

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
[tox]
2-
envlist = py3{8,9,10,11}, test-devel
2+
envlist = py3{8,9,10,11,12}, test-devel
33

44
[travis]
55
python =
66
3.8: py38, test-devel
77
3.9: py39
88
3.10: py310
99
3.11: py311
10+
3.12: py312
1011

1112
[gh-actions]
1213
python =
1314
3.8: py38, test-devel
1415
3.9: py39
1516
3.10: py310
1617
3.11: py311
18+
3.12: py312
1719

1820
[testenv]
1921
passenv = CI TRAVIS TRAVIS_*

0 commit comments

Comments
 (0)