File tree 13 files changed +26
-50
lines changed
13 files changed +26
-50
lines changed Original file line number Diff line number Diff line change 13
13
14
14
requirements :
15
15
host :
16
- - python>=3.9
16
+ - python>=3.10
17
17
- setuptools
18
18
- setuptools_scm
19
19
run :
Original file line number Diff line number Diff line change 15
15
fail-fast : false
16
16
matrix :
17
17
os : ["ubuntu-latest", "macos-14", "windows-latest"]
18
- python-version : ["3.9", "3.11"]
19
- exclude :
20
- - os : " macos-14"
21
- python-version : " 3.9" # not available for macos-14
18
+ python-version : ["3.10", "3.12"]
22
19
steps :
23
20
- uses : actions/checkout@v4
24
21
- name : Set up Python ${{ matrix.python-version }}
32
29
run : |
33
30
pytest -ra --cov=. --cov-report term-missing
34
31
- name : Upload coverage
35
- if : ${{ runner.os == 'Linux' && matrix.python-version == 3.9 }}
32
+ if : ${{ runner.os == 'Linux' && matrix.python-version == 3.10 }}
36
33
run : |
37
34
bash <(curl -s https://codecov.io/bash)
38
35
49
46
- name : Set up Python
50
47
uses : actions/setup-python@v5
51
48
with :
52
- python-version : " 3.9 "
49
+ python-version : " 3.10 "
53
50
- name : Install dependencies
54
51
run : |
55
52
pip install .[test]
79
76
with :
80
77
miniconda-version : " latest"
81
78
activate-environment : test
82
- python-version : " 3.9 "
79
+ python-version : " 3.10 "
83
80
- name : Fetch all history for all tags and branches
84
81
run : git fetch --prune --unshallow
85
82
- name : Install dependencies
Original file line number Diff line number Diff line change 20
20
- name : Set up Python
21
21
uses : actions/setup-python@v5
22
22
with :
23
- python-version : " 3.9 "
23
+ python-version : " 3.10 "
24
24
- name : Install dependencies
25
25
env :
26
26
ALLOW_LATEST_GPYTORCH_LINOP : true
Original file line number Diff line number Diff line change 20
20
- name : Set up Python
21
21
uses : actions/setup-python@v5
22
22
with :
23
- python-version : " 3.9 "
23
+ python-version : " 3.10 "
24
24
- name : Install dependencies
25
25
run : |
26
26
# pin dependencies to match Meta-internal versions
40
40
- name : Set up Python
41
41
uses : actions/setup-python@v5
42
42
with :
43
- python-version : " 3.9 "
43
+ python-version : " 3.10 "
44
44
- name : Install dependencies
45
45
run : |
46
46
pip install flake8 flake8-docstrings
Original file line number Diff line number Diff line change 15
15
fail-fast : false
16
16
matrix :
17
17
os : ["ubuntu-latest", "macos-14", "windows-latest"]
18
- python-version : ["3.9", "3.11"]
19
- exclude :
20
- - os : " macos-14"
21
- python-version : " 3.9" # not available for macos-14
18
+ python-version : ["3.10", "3.12"]
22
19
steps :
23
20
- uses : actions/checkout@v4
24
21
- name : Set up Python ${{ matrix.python-version }}
37
34
run : |
38
35
pytest -ra --cov=. --cov-report term-missing
39
36
- name : Upload coverage
40
- if : ${{ runner.os == 'Linux' && matrix.python-version == 3.9 }}
37
+ if : ${{ runner.os == 'Linux' && matrix.python-version == 3.10 }}
41
38
run : |
42
39
bash <(curl -s https://codecov.io/bash)
43
40
53
50
- name : Set up Python
54
51
uses : actions/setup-python@v5
55
52
with :
56
- python-version : 3.9
53
+ python-version : 3.10
57
54
- name : Install dependencies
58
55
env :
59
56
ALLOW_LATEST_GPYTORCH_LINOP : true
99
96
with :
100
97
miniconda-version : " latest"
101
98
activate-environment : test
102
- python-version : " 3.9 "
99
+ python-version : " 3.10 "
103
100
- name : Fetch all history for all tags and branches
104
101
run : git fetch --prune --unshallow
105
102
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ jobs:
43
43
- name : Set up Python
44
44
uses : actions/setup-python@v5
45
45
with :
46
- python-version : " 3.9 "
46
+ python-version : " 3.10 "
47
47
- name : Fetch all history for all tags and branches
48
48
# We need to do this so setuptools_scm knows how to set the BoTorch version.
49
49
run : git fetch --prune --unshallow
50
50
- if : ${{ !inputs.use_stable_pytorch_gpytorch }}
51
51
name : Install latest PyTorch & GPyTorch
52
52
run : |
53
- pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
53
+ pip install torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
54
54
pip install git+https://github.com/cornellius-gp/linear_operator.git
55
55
pip install git+https://github.com/cornellius-gp/gpytorch.git
56
56
- if : ${{ inputs.use_stable_pytorch_gpytorch }}
Original file line number Diff line number Diff line change 29
29
- name : Set up Python
30
30
uses : actions/setup-python@v5
31
31
with :
32
- python-version : 3.9
32
+ python-version : 3.10
33
33
- name : Fetch all history for all tags and branches
34
34
run : git fetch --prune --unshallow
35
35
- if : ${{ !inputs.publish_versioned_website }}
Original file line number Diff line number Diff line change 16
16
fail-fast : false
17
17
matrix :
18
18
os : ["ubuntu-latest", "macos-14", "windows-latest"]
19
- python-version : ["3.9", "3.11"]
20
- exclude :
21
- - os : " macos-14"
22
- python-version : " 3.9" # not available for macos-14
19
+ python-version : ["3.10", "3.12"]
23
20
steps :
24
21
- uses : actions/checkout@v4
25
22
- name : Set up Python ${{ matrix.python-version }}
38
35
run : |
39
36
pytest -ra --cov=. --cov-report term-missing
40
37
- name : Upload coverage
41
- if : ${{ runner.os == 'Linux' && matrix.python-version == 3.9 }}
38
+ if : ${{ runner.os == 'Linux' && matrix.python-version == 3.10 }}
42
39
run : |
43
40
bash <(curl -s https://codecov.io/bash)
44
41
49
46
fail-fast : false
50
47
matrix :
51
48
os : ["ubuntu-latest", "macos-14", "windows-latest"]
52
- python-version : ["3.9", "3.11"]
53
- exclude :
54
- - os : " macos-14"
55
- python-version : " 3.9" # not available for macos-14
49
+ python-version : ["3.10", "3.12"]
56
50
steps :
57
51
- uses : actions/checkout@v4
58
52
- uses : conda-incubator/setup-miniconda@v3
Original file line number Diff line number Diff line change 12
12
fail-fast : false
13
13
matrix :
14
14
os : ["ubuntu-latest", "macos-14", "windows-latest"]
15
- python-version : ["3.9", "3.11"]
16
- exclude :
17
- - os : " macos-14"
18
- python-version : " 3.9" # not available for macos-14
15
+ python-version : ["3.10", "3.12"]
19
16
steps :
20
17
- uses : actions/checkout@v4
21
18
- name : Set up Python ${{ matrix.python-version }}
37
34
fail-fast : false
38
35
matrix :
39
36
os : ["ubuntu-latest", "macos-14", "windows-latest"]
40
- python-version : ["3.9", "3.11"]
41
- exclude :
42
- - os : " macos-14"
43
- python-version : " 3.9" # not available for macos-14
37
+ python-version : ["3.10", "3.12"]
44
38
steps :
45
39
- uses : actions/checkout@v4
46
40
- uses : conda-incubator/setup-miniconda@v3
70
64
fail-fast : false
71
65
matrix :
72
66
os : ["ubuntu-latest", "macos-14"]
73
- python-version : ["3.9", "3.11"]
74
- exclude :
75
- - os : " macos-14"
76
- python-version : " 3.9" # not available for macos-14
67
+ python-version : ["3.10", "3.12"]
77
68
steps :
78
69
- uses : actions/checkout@v4
79
70
- name : Set up Python ${{ matrix.python-version }}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ every `__init__` function contains an `Args:` block. We use the
50
50
51
51
#### Type Hints
52
52
53
- BoTorch is fully typed using python 3.9 +
53
+ BoTorch is fully typed using python 3.10 +
54
54
[ type hints] ( https://www.python.org/dev/peps/pep-0484/ ) . We expect any
55
55
contributions to also use proper type annotations. While we currently do not
56
56
enforce full consistency of these in our continuous integration test, you should
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Optimization simply use Ax.
55
55
## Installation
56
56
57
57
** Installation Requirements**
58
- - Python >= 3.9
58
+ - Python >= 3.10
59
59
- PyTorch >= 1.13.1
60
60
- gpytorch == 1.11
61
61
- linear_operator == 0.5.1
Original file line number Diff line number Diff line change 11
11
12
12
# Minimum required python version
13
13
REQUIRED_MAJOR = 3
14
- REQUIRED_MINOR = 9
14
+ REQUIRED_MINOR = 10
15
15
16
16
# Requirements for testing, formatting, and tutorials
17
17
TEST_REQUIRES = ["pytest" , "pytest-cov" ]
@@ -98,7 +98,7 @@ def read_deps_from_file(filname):
98
98
],
99
99
long_description = long_description ,
100
100
long_description_content_type = "text/markdown" ,
101
- python_requires = ">=3.9 " ,
101
+ python_requires = f ">={ REQUIRED_MAJOR } . { REQUIRED_MINOR } " ,
102
102
packages = find_packages (exclude = ["test" , "test.*" ]),
103
103
install_requires = install_requires ,
104
104
extras_require = {
Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ def forward(self, X):
22
22
23
23
class TestDecoupledAcquisitionFunction (BotorchTestCase ):
24
24
def test_decoupled_acquisition_function (self ):
25
- msg = (
26
- "Can't instantiate abstract class DecoupledAcquisitionFunction"
27
- " with abstract method forward"
28
- )
25
+ msg = "Can't instantiate abstract class DecoupledAcquisitionFunction"
29
26
with self .assertRaisesRegex (TypeError , msg ):
30
27
DecoupledAcquisitionFunction ()
31
28
# test raises error if model is not ModelList
You can’t perform that action at this time.
0 commit comments