Skip to content

Commit 0f10f23

Browse files
yucufacebook-github-bot
authored andcommitted
Bump PyTorch and Python version (#1298)
Summary: Pull Request resolved: #1298 Differential Revision: D58695682
1 parent b249dd8 commit 0f10f23

File tree

8 files changed

+14
-24
lines changed

8 files changed

+14
-24
lines changed

.conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ build:
1313

1414
requirements:
1515
host:
16-
- python>=3.6
16+
- python>=3.8
1717
run:
18-
- numpy
19-
- pytorch>=1.6
18+
- numpy<2.0
19+
- pytorch>=1.13
2020
- matplotlib-base
2121

2222
test:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
1414
with:
1515
runner: linux.12xlarge
16-
docker-image: cimg/python:3.9
16+
docker-image: cimg/python:3.11
1717
repository: pytorch/captum
1818
script: |
1919
sudo chmod -R 777 .

.github/workflows/test-conda-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
tests:
1616
strategy:
1717
matrix:
18-
python_version: ["3.7", "3.8", "3.9", "3.10"]
18+
python_version: ["3.8", "3.9", "3.10", "3.11"]
1919
fail-fast: false
2020
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2121
with:

.github/workflows/test-pip-cpu-with-mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
1818
with:
1919
runner: linux.12xlarge
20-
docker-image: cimg/python:3.6
20+
docker-image: cimg/python:3.11
2121
repository: pytorch/captum
2222
script: |
2323
sudo chmod -R 777 .

.github/workflows/test-pip-cpu.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,8 @@ jobs:
1212
tests:
1313
strategy:
1414
matrix:
15-
pytorch_args: ["-v 1.6", "-v 1.7", "-v 1.8", "-v 1.9", "-v 1.10", "-v 1.11", "-v 1.12", "-v 1.13"]
16-
docker_img: ["cimg/python:3.6", "cimg/python:3.7"]
17-
include:
18-
- pytorch_args: "-v 2.0"
19-
docker_img: "cimg/python:3.8"
20-
exclude:
21-
- pytorch_args: "-v 1.11"
22-
docker_img: "cimg/python:3.6"
23-
- pytorch_args: "-v 1.12"
24-
docker_img: "cimg/python:3.6"
25-
- pytorch_args: "-v 1.13"
26-
docker_img: "cimg/python:3.6"
15+
pytorch_args: ["-v 1.13", "-v 2.0.0", "-v 2.1.0", "-v 2.2.0", "-v 2.3.0"]
16+
docker_img: ["cimg/python:3.8", "cimg/python:3.9", "cimg/python:3.10", "cimg/python:3.11"]
2717
fail-fast: false
2818
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2919
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Captum can also be used by application engineers who are using trained models in
4747
## Installation
4848

4949
**Installation Requirements**
50-
- Python >= 3.6
51-
- PyTorch >= 1.6
50+
- Python >= 3.8
51+
- PyTorch >= 1.13
5252

5353

5454
##### Installing the latest release

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: captum
22
channels:
33
- pytorch
44
dependencies:
5-
- numpy
6-
- pytorch>=1.6
5+
- numpy<2.0
6+
- pytorch>=1.13

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ def get_package_files(root, subdirs):
146146
],
147147
long_description=long_description,
148148
long_description_content_type="text/markdown",
149-
python_requires=">=3.6",
150-
install_requires=["matplotlib", "numpy", "torch>=1.6", "tqdm"],
149+
python_requires=">=3.8",
150+
install_requires=["matplotlib", "numpy<2.0", "torch>=1.13", "tqdm"],
151151
packages=find_packages(exclude=("tests", "tests.*")),
152152
extras_require={
153153
"dev": DEV_REQUIRES,

0 commit comments

Comments
 (0)