Skip to content

Commit 48967e8

Browse files
authored
Remove legacy conda-verify to fix Python 3.13 build failure (#3714)
Description: Removing conda-verify since it is a legacy tool and unmaintained. Check list: - [ ] New tests are added (if a new feature is added) - [ ] New doc strings: description and/or example code are in RST format - [ ] Documentation is updated (if required)
1 parent 69a95b2 commit 48967e8

4 files changed

Lines changed: 13 additions & 16 deletions

File tree

.github/workflows/binaries-nightly-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
uses: conda-incubator/setup-miniconda@v3
1717
with:
1818
miniconda-version: "latest"
19-
python-version: "3.10"
20-
channels: defaults,pytorch-nightly
19+
python-version: "3.13"
2120

2221
- name: Setup nightly version
2322
run: |
@@ -29,7 +28,7 @@ jobs:
2928
- name: Install dependencies
3029
shell: bash -l {0}
3130
run: |
32-
conda install -y pytorch torchvision cpuonly -c pytorch-nightly
31+
pip install torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu --pre
3332
pip install -r requirements-dev.txt
3433
3534
- name: Build and Publish Conda binaries

.github/workflows/install_docs_deps.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
uv pip uninstall pkg-resources setuptools
33
uv pip install setuptools pip wheel
44
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
5-
uv pip install -r requirements-dev.txt
6-
uv pip install -r docs/requirements.txt
5+
uv pip install -r requirements-dev.txt -r docs/requirements.txt
76
uv pip install git+https://github.com/pytorch-ignite/sphinxcontrib-versioning.git

.github/workflows/stable-release-pypi.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,23 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v6
1212

13-
- name: Setup Miniconda
14-
uses: conda-incubator/setup-miniconda@v3
13+
- name: Setup uv
14+
uses: astral-sh/setup-uv@v5
1515
with:
16-
miniconda-version: "latest"
17-
python-version: "3.10"
16+
version: "latest"
17+
python-version: "3.13"
18+
activate-environment: true
1819

1920
- name: Install dependencies
20-
shell: bash -l {0}
2121
run: |
22-
conda install -y pytorch torchvision cpuonly -c pytorch
23-
pip install -r requirements-dev.txt
22+
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
23+
uv pip install -r requirements-dev.txt
2424
2525
- name: Build and Publish PyPI binaries
26-
shell: bash -l {0}
2726
run: |
2827
# workaround to fix https://github.com/pytorch/ignite/issues/2373
29-
pip uninstall -y twine pkginfo
30-
pip install --upgrade --no-cache-dir hatch twine 'pkginfo>=1.8.2'
28+
uv pip uninstall -y twine pkginfo
29+
uv pip install --upgrade --no-cache-dir hatch twine 'pkginfo>=1.8.2'
3130
hatch build
3231
twine --version
3332
twine check dist/*

conda.recipe/build_and_upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ version=$(sed -nE 's/__version__ = "(.*)"/\1/p' ignite/__init__.py)
2525
sed -i "s/__version__ = \"\(.*\)\"/__version__ = \"$version\"/g" conda.recipe/meta.yaml
2626
cat conda.recipe/meta.yaml | grep version
2727

28-
conda install -y conda-build conda-verify anaconda-client conda-package-handling
28+
conda install -y conda-build anaconda-client conda-package-handling
2929
conda config --set anaconda_upload no
3030

3131
conda build --no-test --output-folder conda_build conda.recipe -c pytorch --package-format 1

0 commit comments

Comments
 (0)