Skip to content

Commit

Permalink
Bump to add 3.12 (#444)
Browse files Browse the repository at this point in the history
* Bump to add 3.12

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Upgrade pytest for all versions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Chris-Sigopt and pre-commit-ci[bot] authored Apr 10, 2024
1 parent e3b6db1 commit e6cc9b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
test-suite:
- cli
- client
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pre-commit>=2.5.2,<3
pylint==2.9.6
pymongo==3.12.3
pyspark
pytest==7.2.1
pytest>=7.2.1
scikit-learn>=0.23.2
setuptools>=47.3.1
twine>=3.2.0,<4.0.0
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from setuptools import find_packages, setup


if sys.version_info < (3, 6):
if sys.version_info[0] == 3 and sys.version_info[1] < 7:
warnings.warn(
(
"Python versions lower than 3.6 are no longer supported. Please upgrade to"
" Python 3.6 or newer or use an older version of the sigopt-python client."
"Python versions lower than 3.7 are no longer supported. Please upgrade to"
" Python 3.7 or newer or use an older version of the sigopt-python client."
),
DeprecationWarning,
)
Expand Down
6 changes: 4 additions & 2 deletions test/runs/test_set_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright © 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
import warnings

import mock
import pytest

Expand All @@ -16,7 +18,7 @@ def test_set_project_with_global_run():

def test_set_project_without_run():
with mock.patch("sigopt.get_run_id", mock.Mock(return_value=None)):
with pytest.warns(None) as warnings:
with warnings.catch_warnings():
warnings.simplefilter("error")
set_project("test-123")
assert len(warnings) == 0
assert _global_factory.project == "test-123"

0 comments on commit e6cc9b8

Please sign in to comment.