diff --git a/conda/README.md b/conda/README.md index 1ff6ddb645b173..b04e5a32133168 100644 --- a/conda/README.md +++ b/conda/README.md @@ -35,13 +35,13 @@ conda config --set anaconda_upload no Build `spark-nlp` from the latest PyPI tar: ```bash -conda build . --python=3.7 && conda build . --python=3.8 && conda build . --python=3.9 +conda build conda/ ``` Example of uploading Conda package to Anaconda Cloud: ```bash -anaconda upload /anaconda3/conda-bld/noarch/spark-nlp-version-py37_0.tar.bz2 +anaconda upload /anaconda3/conda-bld/noarch/spark-nlp-version-py_0.tar.bz2 ``` ## Install diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml deleted file mode 100644 index 293f77e58aa60b..00000000000000 --- a/conda/conda_build_config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -python: - - 3.7 - - 3.8 - - 3.9 diff --git a/conda/meta.yaml b/conda/meta.yaml index 3bf52ab98dc2cf..4ccecd03892a1e 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,30 +1,36 @@ -package: - name: "spark-nlp" - version: 4.4.4 +{% set name = "spark-nlp" %} +{% set version = "4.4.0" %} -app: - entry: spark-nlp - summary: Natural Language Understanding Library for Apache Spark. +package: + name: {{ name|lower }} + version: {{ version }} source: - fn: spark-nlp-4.4.4.tar.gz - url: https://files.pythonhosted.org/packages/f9/e4/5eb83ed1c68be9fca636f6c62f9e55da3f2e511818e2a8feb852d6986064/spark-nlp-4.4.4.tar.gz - sha256: d9e2f017ab7cf6e82e775c38862f1a4ee32bbb0af6619e0b9051e6737711b5b6 + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/spark-nlp-{{ version }}.tar.gz + sha256: e76fdd82b966ca169ba8a1fdcfe2e684fc63abaf88de841d2eb881cacb5e0105 + build: - noarch: generic + noarch: python + script: {{ PYTHON }} -m pip install . -vv number: 0 - script: "python -m pip install . --no-deps -vv" requirements: - build: - - python + host: + - python >=3.7,<3.11 + - pip run: - - python + - python >=3.7,<3.11 + +test: + imports: + - sparknlp + commands: + - pip check + requires: + - pip about: - home: https://github.com/JohnSnowLabs/spark-nlp/ - license: Apache License 2.0 - license_family: APACHE - license_url: https://github.com/JohnSnowLabs/spark-nlp/blob/master/LICENSE - description: John Snow Labs Spark-NLP is a natural language processing library built on top of Apache Spark ML. It provides simple, performant & accurate NLP annotations for machine learning pipelines, that scale easily in a distributed environment. - summary: Natural Language Understanding Library for Apache Spark. + home: https://github.com/JohnSnowLabs/spark-nlp + summary: John Snow Labs Spark NLP is a natural language processing library built on top of Apache Spark ML. It provides simple, performant & accurate NLP annotations for machine learning pipelines, that scale easily in a distributed environment. + license: Apache-2.0 + license_file: LICENSE