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

Commit 73941c6

Browse files
authored
Revert "Attempting to fix version conflict in CI (#1520)" (#1618)
1 parent 0ca3f79 commit 73941c6

File tree

4 files changed

+26
-37
lines changed

4 files changed

+26
-37
lines changed
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
channels:
22
- defaults
3-
- conda-forge
43
dependencies:
54
- flake8>=3.7.9
65
- codecov
76
- pip
8-
- nltk
9-
- requests
10-
- pytest
11-
- pytest-cov
12-
- sacremoses
13-
- spacy>=3.0
14-
- sphinx
15-
- tqdm
16-
- certifi
17-
- future
18-
- expecttest
197
- pip:
8+
- dataclasses
9+
- nltk
10+
- requests
2011
- revtok
12+
- pytest
13+
- pytest-cov
2114
- pytest-pythonpath
15+
- sacremoses
16+
- spacy
17+
- sphinx
2218
- sphinx-rtd-theme
19+
- tqdm
20+
- expecttest
2321
- 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
2422
- 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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
channels:
22
- defaults
3-
- conda-forge
43
dependencies:
54
- flake8>=3.7.9
65
- codecov
76
- pip
8-
- nltk
9-
- requests
10-
- pytest
11-
- pytest-cov
12-
- sacremoses
13-
- spacy>=3.0
14-
- sphinx
15-
- tqdm
16-
- certifi
17-
- future
18-
- expecttest
197
- pip:
8+
- dataclasses
9+
- nltk
10+
- requests
2011
- revtok
12+
- pytest
13+
- pytest-cov
2114
- pytest-pythonpath
15+
- sacremoses
16+
- spacy
17+
- sphinx
2218
- sphinx-rtd-theme
19+
- tqdm
20+
- certifi
21+
- future
22+
- expecttest
2323
- 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
2424
- 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:
@@ -48,6 +39,7 @@ test:
4839

4940
requires:
5041
- pytest
42+
- cpuonly
5143

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

0 commit comments

Comments
 (0)