This PR enables Python 3.12 in Windows environment and does not restrict
Python version in the default environments on Windows and Linux. Note
that although `mlos-3.12.yml` exists, its usage is still commented out
in `linux.yml`, because Python 3.12 is still not available on GitHub CI.
Issue #832 opened to track it

P.S. Also, we now use a lighter `matplotlib-base` instead of
`matplotlib` proper

~To be merged after #802~

---------

Co-authored-by: Brian Kroth <bpkroth@microsoft.com>
This commit is contained in:
Sergiy Matusevych 2024-08-06 10:09:02 -07:00 коммит произвёл GitHub
Родитель 45528cfaa0
Коммит 2e1eae30e3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
11 изменённых файлов: 76 добавлений и 14 удалений

1
.github/workflows/linux.yml поставляемый
Просмотреть файл

@ -37,6 +37,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
env:
cache_cur_date: unset

Просмотреть файл

@ -1,7 +1,7 @@
name: mlos-3.10
channels:
- defaults
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
@ -15,7 +15,7 @@ dependencies:
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib
- matplotlib-base
- seaborn
- pandas
- pyarrow

Просмотреть файл

@ -1,7 +1,7 @@
name: mlos-3.11
channels:
- defaults
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
@ -15,7 +15,7 @@ dependencies:
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib
- matplotlib-base
- seaborn
- pandas
- pyarrow

48
conda-envs/mlos-3.12.yml Normal file
Просмотреть файл

@ -0,0 +1,48 @@
name: mlos-3.12
channels:
# Use conda-forge to allow other packages to install with python 3.12.
# See Also: https://github.com/microsoft/MLOS/issues/832
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- pip
- pylint
- black
- pycodestyle
- pydocstyle
- flake8
- build
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib-base
- seaborn
- pandas
- pyarrow
- swig
- libpq
- python=3.12
# See comments in mlos.yml.
#- gcc_linux-64
- pip:
- bump2version
- check-jsonschema
- isort
- docformatter
- licenseheaders
- mypy
- pandas-stubs
- types-beautifulsoup4
- types-colorama
- types-jsonschema
- types-pygments
- types-requests
- types-setuptools
# Workaround a pylance issue in vscode that prevents it finding the latest
# method of pip installing editable modules.
# https://github.com/microsoft/pylance-release/issues/3473
- "--config-settings editable_mode=compat --editable ../mlos_core[full-tests]"
- "--config-settings editable_mode=compat --editable ../mlos_bench[full-tests]"
- "--config-settings editable_mode=compat --editable ../mlos_viz[full-tests]"

Просмотреть файл

@ -1,7 +1,7 @@
name: mlos-3.8
channels:
- defaults
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
@ -15,7 +15,7 @@ dependencies:
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib
- matplotlib-base
- seaborn
- pandas
- pyarrow

Просмотреть файл

@ -1,7 +1,7 @@
name: mlos-3.9
channels:
- defaults
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
@ -15,7 +15,7 @@ dependencies:
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib
- matplotlib-base
- seaborn
- pandas
- pyarrow

Просмотреть файл

@ -22,8 +22,7 @@ dependencies:
- pyarrow
- swig
- libpq
# FIXME: https://github.com/microsoft/MLOS/issues/727
- python<3.12
- python
# Install an SMAC requirement pre-compiled from conda-forge.
# This also requires a more recent vs2015_runtime from conda-forge.
- pyrfr>=0.9.0

Просмотреть файл

@ -1,7 +1,7 @@
name: mlos
channels:
- defaults
- conda-forge
- defaults
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
@ -15,14 +15,13 @@ dependencies:
- jupyter
- ipykernel
- nb_conda_kernels
- matplotlib
- matplotlib-base
- seaborn
- pandas
- pyarrow
- swig
- libpq
# FIXME: https://github.com/microsoft/MLOS/issues/727
- python<3.12
- python
- pip:
- bump2version
- check-jsonschema

Просмотреть файл

@ -18,6 +18,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = { "text" = "MIT" }
requires-python = ">=3.8"

Просмотреть файл

@ -16,6 +16,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = { "text" = "MIT" }
requires-python = ">=3.8"

Просмотреть файл

@ -19,6 +19,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = { "text" = "MIT" }
requires-python = ">=3.8"