Skip to content

Commit e2faa5f

Browse files
authored
Merge pull request #1374 from john-sandall/feat/python312-support
Update package for Python 3.12
2 parents f2f15f4 + f0812bc commit e2faa5f

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest]
13-
python-version: ['3.10']
13+
python-version: ['3.10', '3.11', '3.12']
1414

1515
steps:
1616
- uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ conda activate tpotenv
7777

7878
### Packages Used
7979

80-
python version <3.12
80+
python version >=3.10, <3.13
8181
numpy
8282
scipy
8383
scikit-learn

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We recommend using conda environments for installing TPOT, though it would work
99
[More information on making anaconda environments found here.](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
1010

1111
```
12-
conda create --name tpotenv python=3.10
12+
conda create --name tpotenv python=3.12
1313
conda activate tpotenv
1414
```
1515

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ flake8==6.0.0
22
tox==4.4.12
33
pytest==7.3.0
44
pytest-cov==4.0.0
5-
mypy==1.2.0
5+
mypy==1.2.0
6+
setuptools

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def calculate_version():
1313

1414
setup(
1515
name='TPOT',
16-
python_requires='>=3.10, <3.12', #for configspace compatibility
16+
python_requires='>=3.10, <3.13',
1717
version=package_version,
1818
author='Pedro Ribeiro',
1919
packages=find_packages(),
@@ -60,6 +60,8 @@ def calculate_version():
6060
'Intended Audience :: Science/Research',
6161
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
6262
'Programming Language :: Python :: 3.10',
63+
'Programming Language :: Python :: 3.11',
64+
'Programming Language :: Python :: 3.12',
6365
'Topic :: Scientific/Engineering :: Artificial Intelligence'
6466
],
6567
keywords=['pipeline optimization', 'hyperparameter optimization', 'data science', 'machine learning', 'genetic programming', 'evolutionary computation'],

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
minversion = 3.28.0
33
# flake8 and mypy outputs severla errors, so we disable them for now
44
# envlist = py310, flake8, mypy
5-
envlist = py310
5+
envlist = py310, py311, py312
66
isolated_build = true
77

88
[gh-actions]
99
python =
1010
3.10: py310
11+
3.11: py311
12+
3.12: py312
1113
# 3.10: py310, flake8, mypy
1214

1315
[testenv]

tpot/config/tests/test_get_configspace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
import tpot
3+
import sys
34
from sklearn.datasets import load_iris
45
import random
56
import sklearn
@@ -24,6 +25,7 @@ def test_loop_through_all_hyperparameters():
2425
estnode = estnode_gen.generate()
2526
est = estnode.export_pipeline()
2627

28+
@pytest.mark.skipif(sys.platform == 'darwin', reason="sklearnex dependency not available on macOS")
2729
def test_loop_through_groupnames():
2830

2931
n_classes=3

0 commit comments

Comments
 (0)