Squashed & adapted changes from
-{% set version = "0.13.1" %}
-# waiting for https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/1890
-{% set pytorch_maj_min = "1.10" %}
+{% set version = "0.14.1" %}
{% set spacy_model = "en_core_web_sm" %}
package:
@@ -9,7 +7,7 @@ package:
source:
url: https://github.com/pytorch/text/archive/refs/tags/v{{ version }}.tar.gz
- sha256: 1f7de1fd8c6303ea13ef2aed48a6df67df5f92d1c4a6918253be7decd93753be
+ sha256: fd1ef3da7d9c20408c740f7dc7d02ad52a6048b46368355a1a7326d3bc4f2e63
patches:
# don't build pytorch/text/tree/main/third_party; pull in from conda-forge
- patches/0001-do-not-build-third_party-libs-in-setup.py.patch
@@ -28,19 +26,19 @@ requirements:
build:
- {{ compiler('cxx') }}
- sysroot_linux-64 2.17 # [linux64]
+ - cmake
+ - ninja
host:
- python
- pip
- numpy
- - pytorch {{ pytorch_maj_min }}.*
+ - pytorch
# from pytorch/text/tree/main/third_party
- double-conversion
- re2
- sentencepiece
run:
- python
- # due to lack of ABI, we need the same version at runtime
- - pytorch {{ pytorch_maj_min }}.*
- nltk
- requests
- revtok ==0.0.3.1
@@ -48,8 +46,10 @@ requirements:
- sentencepiece
- spacy
- tqdm
+
test:
requires:
+ - pip
- pytest
- expecttest
- parameterized
@@ -63,13 +63,14 @@ test:
- torchtext.nn
- torchtext.vocab
commands:
+ - pip check
# set up cache status file
- python -c "from test.common.cache_utils import generate_data_cache; generate_data_cache()"
# then run test suite
- pytest test/ -v
about:
- home: https://github.com/pytorch/text
+ home: https://pytorch.org/text
license: BSD-3-Clause
license_file: LICENSE
summary: Data loaders and abstractions for text and NLP
@@ -78,3 +79,4 @@ about:
extra:
recipe-maintainers:
- h-vetinari
+ - giswqs
