Skip to content

Commit

Permalink
Draft: Chore: conda recipe update (#13764)
Browse files Browse the repository at this point in the history
* update conda recipe

* rm python build configs

* update conda build instructions

* update python version reqs

* update recipe import test

---------

Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
  • Loading branch information
luca-martial and maziyarpanahi authored Jul 3, 2023
1 parent ea4b566 commit b962451
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
4 changes: 2 additions & 2 deletions conda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions conda/conda_build_config.yaml

This file was deleted.

46 changes: 26 additions & 20 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b962451

Please sign in to comment.