Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .circleci/unittest/linux/scripts/environment.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
channels:
- defaults
- conda-forge
dependencies:
- flake8>=3.7.9
- codecov
- pip
- nltk
- requests
- pytest
- pytest-cov
- sacremoses
- spacy>=3.0
- sphinx
- tqdm
- certifi
- future
- expecttest
- pip:
- dataclasses
- nltk
- requests
- revtok
- pytest
- pytest-cov
- pytest-pythonpath
- sacremoses
- spacy
- sphinx
- sphinx-rtd-theme
- tqdm
- expecttest
- 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
- 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
24 changes: 12 additions & 12 deletions .circleci/unittest/windows/scripts/environment.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
channels:
- defaults
- conda-forge
dependencies:
- flake8>=3.7.9
- codecov
- pip
- nltk
- requests
- pytest
- pytest-cov
- sacremoses
- spacy>=3.0
- sphinx
- tqdm
- certifi
- future
- expecttest
- pip:
- dataclasses
- nltk
- requests
- revtok
- pytest
- pytest-cov
- pytest-pythonpath
- sacremoses
- spacy
- sphinx
- sphinx-rtd-theme
- tqdm
- certifi
- future
- expecttest
- 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
- 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
5 changes: 3 additions & 2 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ setup_conda_pytorch_constraint() {

# Translate CUDA_VERSION into CUDA_CUDATOOLKIT_CONSTRAINT
setup_conda_cudatoolkit_constraint() {
export CONDA_CPUONLY_FEATURE=""
export CONDA_BUILD_VARIANT="cuda"
if [[ "$(uname)" == Darwin ]]; then
export CONDA_CUDATOOLKIT_CONSTRAINT=""
export CONDA_BUILD_VARIANT="cpu"
else
case "$CU_VERSION" in
cu100)
Expand All @@ -210,7 +211,7 @@ setup_conda_cudatoolkit_constraint() {
;;
cpu)
export CONDA_CUDATOOLKIT_CONSTRAINT=""
export CONDA_CPUONLY_FEATURE="- cpuonly"
export CONDA_BUILD_VARIANT="cpu"
;;
*)
echo "Unrecognized CU_VERSION=$CU_VERSION"
Expand Down
12 changes: 10 additions & 2 deletions packaging/torchtext/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% set build_variant = environ.get('CONDA_BUILD_VARIANT', 'cpu') %}
package:
name: torchtext
version: "{{ environ.get('BUILD_VERSION') }}"
Expand All @@ -14,15 +15,23 @@ requirements:
host:
- python
- setuptools
- cpuonly
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}

run:
- python
- requests
- tqdm
- pytorch-mutex 1.0 {{ build_variant }} # [not osx ]
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}

{% if build_variant == 'cpu' %}
run_constrained:
- cpuonly
{% elif not osx %}
run_constrained:
- cpuonly <0
{% endif %}

build:
string: py{{py}}
script_env:
Expand All @@ -40,7 +49,6 @@ test:

requires:
- pytest
- cpuonly

about:
home: https://github.com/pytorch/text
Expand Down