Skip to content

Commit 18a9dee

Browse files
committed
Version bump
1 parent d809345 commit 18a9dee

File tree

10 files changed

+21
-20
lines changed

10 files changed

+21
-20
lines changed

.conda/meta.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ build:
1717

1818
requirements:
1919
host:
20-
- python>=3.8
20+
- python>=3.10
2121

2222
run:
23-
- python>=3.8
24-
- pytorch>=1.11
23+
- python>=3.10
24+
- jaxtyping
25+
- mpmath>=0.19,<=1.3
26+
- pytorch>=2.0
2527
- scipy
26-
- jaxtyping==0.2.19
2728

2829
test:
2930
imports:

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: "3.8"
25+
python-version: "3.10"
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
@@ -44,7 +44,7 @@ jobs:
4444
- uses: conda-incubator/setup-miniconda@v2
4545
with:
4646
auto-update-conda: false
47-
python-version: "3.8"
47+
python-version: "3.10"
4848
- name: Install dependencies
4949
run: |
5050
conda install -y anaconda-client conda-build

.github/workflows/run_linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: "3.8"
17+
python-version: "3.10"
1818
- name: Install dependencies
1919
run: |
2020
pip install flake8==5.0.4 flake8-print==5.0.0 pre-commit

.github/workflows/run_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: "3.8"
20+
python-version: "3.10"
2121
- name: Install dependencies
2222
run: |
2323
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then

.github/workflows/run_type_checked_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
2828
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
2929
else
30-
pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html
30+
pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
3131
pip install "numpy<2"
3232
fi
3333
pip install -e ".[test]"

.readthedocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ version: 2
88
build:
99
os: "ubuntu-22.04"
1010
tools:
11-
python: "3.8"
11+
python: "3.10"
1212
jobs:
13-
pre_install: # Lock version of torch at 1.11
14-
- pip install torch==1.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
13+
pre_install: # Lock version of torch at 2.0
14+
- pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
1515
pre_build:
1616
- python -m setuptools_scm # Get correct version number
1717

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ We use [standard sphinx docstrings](https://sphinx-rtd-tutorial.readthedocs.io/e
3636

3737
### Type Hints
3838

39-
LinearOperator aims to be fully typed using Python 3.8+
39+
LinearOperator aims to be fully typed using Python 3.10+
4040
[type hints](https://www.python.org/dev/peps/pep-0484/).
4141
We expect any contributions to also use proper type annotations.
4242
We are using [jaxtyping](https://github.com/google/jaxtyping) to help us be declarative about the dimension sizes used

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Documentation](https://readthedocs.org/projects/linear-operator/badge/?version=latest)](https://linear-operator.readthedocs.io/en/latest/?badge=latest)
55
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
66

7-
[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
7+
[![Python Version](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
88
[![Conda](https://img.shields.io/conda/v/gpytorch/linear_operator.svg)](https://anaconda.org/gpytorch/linear_operator)
99
[![PyPI](https://img.shields.io/pypi/v/linear_operator.svg)](https://pypi.org/project/linear_operator)
1010

@@ -359,7 +359,7 @@ See the documentation for a [full list of supported composition and decoration o
359359

360360
## Installation
361361

362-
LinearOperator requires Python >= 3.8.
362+
LinearOperator requires Python >= 3.10.
363363

364364
### Standard Installation (Most Recent Stable Version)
365365
We recommend installing via `pip` or Anaconda:
@@ -371,7 +371,7 @@ conda install linear_operator -c gpytorch
371371
```
372372

373373
The installation requires the following packages:
374-
- PyTorch >= 1.11
374+
- PyTorch >= 2.0
375375
- Scipy
376376

377377
You can customize your PyTorch installation (i.e. CUDA version, CPU only option)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ def _process(annotation, config):
220220
# @jpchen's hack to get rtd builder to install latest pytorch
221221
# See similar line in the install section of .travis.yml
222222
if "READTHEDOCS" in os.environ:
223-
os.system("pip install torch==1.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html")
223+
os.system("pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html")

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import find_packages, setup
99

1010
REQUIRED_MAJOR = 3
11-
REQUIRED_MINOR = 8
11+
REQUIRED_MINOR = 10
1212

1313
# Check for python version
1414
if sys.version_info < (REQUIRED_MAJOR, REQUIRED_MINOR):
@@ -24,7 +24,7 @@
2424

2525
readme = open("README.md").read()
2626

27-
torch_min = "1.11"
27+
torch_min = "2.0"
2828
install_requires = [">=".join(["torch", torch_min])]
2929

3030
# if recent dev version of PyTorch is installed, no need to install stable
@@ -77,7 +77,7 @@ def find_version(*file_paths):
7777
"Programming Language :: Python :: 3",
7878
],
7979
packages=find_packages(exclude=["test", "test.*"]),
80-
python_requires=">=3.8",
80+
python_requires=f">={REQUIRED_MAJOR}.{REQUIRED_MINOR}",
8181
install_requires=install_requires,
8282
extras_require={
8383
"dev": ["pre-commit", "setuptools_scm", "ufmt", "twine"],

0 commit comments

Comments
 (0)