Skip to content

Commit

Permalink
Merge pull request #276 from JohnSnowLabs/anaconda_release
Browse files Browse the repository at this point in the history
Anaconda release
  • Loading branch information
C-K-Loan authored Sep 6, 2024
2 parents b2bed65 + 67b0364 commit 4ae2153
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 14 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include VERSION
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.5rc19
1.1.12
34 changes: 34 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package:
name: nlu
version: {{ environ.get('CODE_VERSION', '') }}

app:
entry: nlu
summary: The power of 15000+ State-of-the-art pre-trained NLP models in 300 languages with 1 line of Python code.

source:
path: ../conda_src

build:
noarch: generic
number: 0
script: "python3 -m pip install . --no-deps -vv"

requirements:
build:
- python
run:
- python
- pyspark==3.0.1
- spark-nlp >=5.2.0
- numpy
- pyarrow >=0.16.0
- pandas >=1.3.5
- dataclasses
about:
home: https://nlu.johnsnowlabs.com/
license: Apache License 2.0
license_family: APACHE
license_url: https://github.com/JohnSnowLabs/nlu/blob/master/LICENSE
description: John Snow Labs' NLU is a Python library for applying state-of-the-art text mining, directly on any dataframe, with a single line of code. As a facade of the award-winning Spark NLP library, it comes with hundreds of pretrained models in tens of languages - all production-grade, scalable, and trainable.
summary: The The power of 15000+ State-of-the-art pre-trained NLP models in 300 languages with 1 line of Python code.
10 changes: 0 additions & 10 deletions nlu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
import pandas as pd
pd.DataFrame.iteritems = pd.DataFrame.items

def version():
version_path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(version_path, '../VERSION'), encoding="utf-8") as version_file:
return version_file.read().strip()

__version__ = version()

def version(): return __version__


warnings.filterwarnings("ignore")
logger = logging.getLogger('nlu')
logger.setLevel(logging.CRITICAL)
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import nlu

from codecs import open
from os import path

Expand All @@ -10,6 +8,10 @@
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

# Get a version from file
with open(path.join(here, 'VERSION')) as version_file:
version = f"{version_file.read().strip()}"

REQUIRED_PKGS = [
'spark-nlp>=5.0.2',
'numpy',
Expand All @@ -22,7 +24,7 @@

name='nlu',

version=nlu.version(),
version=version,

description='John Snow Labs NLU provides state of the art algorithms for NLP&NLU with 20000+ of pretrained models in 200+ languages. It enables swift and simple development and research with its powerful Pythonic and Keras inspired API. It is powerd by John Snow Labs powerful Spark NLP library.',

Expand Down

0 comments on commit 4ae2153

Please sign in to comment.