Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 30ef7e4

Browse files
committed
Revert "Attempting to fix version conflict in CI (#1520)"
This reverts commit a6ae594.
1 parent ebabe82 commit 30ef7e4

File tree

4 files changed

+36
-47
lines changed

4 files changed

+36
-47
lines changed
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
channels:
22
- defaults
3-
- conda-forge
43
dependencies:
54
- codecov
65
- pip
7-
- nltk
8-
- requests
9-
- pytest
10-
- pytest-cov
11-
- sacremoses
12-
- spacy>=3.0
13-
- sphinx
14-
- tqdm
15-
- certifi
16-
- future
17-
- expecttest
186
- pip:
19-
- revtok
20-
- pytest-pythonpath
21-
- sphinx-rtd-theme
22-
- https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
23-
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0
7+
- dataclasses
8+
- nltk
9+
- requests
10+
- revtok
11+
- pytest
12+
- pytest-cov
13+
- pytest-pythonpath
14+
- sacremoses
15+
- spacy
16+
- sphinx
17+
- sphinx-rtd-theme
18+
- tqdm
19+
- expecttest
20+
- https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
21+
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
channels:
22
- defaults
3-
- conda-forge
43
dependencies:
54
- codecov
65
- pip
7-
- nltk
8-
- requests
9-
- pytest
10-
- pytest-cov
11-
- sacremoses
12-
- spacy>=3.0
13-
- sphinx
14-
- tqdm
15-
- certifi
16-
- future
17-
- expecttest
186
- pip:
19-
- revtok
20-
- pytest-pythonpath
21-
- sphinx-rtd-theme
22-
- https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
23-
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0
7+
- dataclasses
8+
- nltk
9+
- requests
10+
- revtok
11+
- pytest
12+
- pytest-cov
13+
- pytest-pythonpath
14+
- sacremoses
15+
- spacy
16+
- sphinx
17+
- sphinx-rtd-theme
18+
- tqdm
19+
- certifi
20+
- future
21+
- expecttest
22+
- https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
23+
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0

packaging/pkg_helpers.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,9 @@ setup_conda_pytorch_constraint() {
197197

198198
# Translate CUDA_VERSION into CUDA_CUDATOOLKIT_CONSTRAINT
199199
setup_conda_cudatoolkit_constraint() {
200-
export CONDA_BUILD_VARIANT="cuda"
200+
export CONDA_CPUONLY_FEATURE=""
201201
if [[ "$(uname)" == Darwin ]]; then
202202
export CONDA_CUDATOOLKIT_CONSTRAINT=""
203-
export CONDA_BUILD_VARIANT="cpu"
204203
else
205204
case "$CU_VERSION" in
206205
cu100)
@@ -211,7 +210,7 @@ setup_conda_cudatoolkit_constraint() {
211210
;;
212211
cpu)
213212
export CONDA_CUDATOOLKIT_CONSTRAINT=""
214-
export CONDA_BUILD_VARIANT="cpu"
213+
export CONDA_CPUONLY_FEATURE="- cpuonly"
215214
;;
216215
*)
217216
echo "Unrecognized CU_VERSION=$CU_VERSION"

packaging/torchtext/meta.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% set build_variant = environ.get('CONDA_BUILD_VARIANT', 'cpu') %}
21
package:
32
name: torchtext
43
version: "{{ environ.get('BUILD_VERSION') }}"
@@ -15,23 +14,15 @@ requirements:
1514
host:
1615
- python
1716
- setuptools
17+
- cpuonly
1818
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
1919

2020
run:
2121
- python
2222
- requests
2323
- tqdm
24-
- pytorch-mutex 1.0 {{ build_variant }} # [not osx ]
2524
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
2625

27-
{% if build_variant == 'cpu' %}
28-
run_constrained:
29-
- cpuonly
30-
{% elif not osx %}
31-
run_constrained:
32-
- cpuonly <0
33-
{% endif %}
34-
3526
build:
3627
string: py{{py}}
3728
script_env:
@@ -49,6 +40,7 @@ test:
4940

5041
requires:
5142
- pytest
43+
- cpuonly
5244

5345
about:
5446
home: https://github.com/pytorch/text

0 commit comments

Comments
 (0)