Skip to content

Commit

Permalink
Update forte requirements (#104)
Browse files Browse the repository at this point in the history
* Fix update_all_version.sh

* Add texar to gpt2 install requirements

* Fix black issue

* Add requests to vadar

* Add sentencepiece to huggingface

Co-authored-by: Suqi Sun <[email protected]>
  • Loading branch information
mylibrar and Suqi Sun authored Apr 27, 2022
1 parent c2890ac commit 54db962
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion scripts/FORTE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.2.0
2 changes: 1 addition & 1 deletion scripts/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.2
0.0.3
4 changes: 2 additions & 2 deletions scripts/update_all_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ echo "Updating versions to "${version}", depends on Forte "${forte_version}

for f in src/*/setup.py; do
echo "Processing $f"
sed -r -i"" "s/version=\"[0-9A-Za-z\.]+\",/version=\"${version}\",/1" $f
sed -r -i"" "s/forte==[0-9A-Za-z\.]+\",/forte==${forte_version}\",/1" $f
sed -r -i "" "s/version=\"[0-9A-Za-z\.]+\",/version=\"${version}\",/1" $f
sed -r -i "" "s/forte==[0-9A-Za-z\.]+\",/forte==${forte_version}\",/1" $f
done
4 changes: 2 additions & 2 deletions src/allennlp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.allennlp",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/allennlp",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"more-itertools>=8.0.0",
"allennlp==1.2.0",
"allennlp-models==1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/elastic/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.elastic",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/elastic",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"elasticsearch>=7.5.1, <8.0.0; python_version<'3.9.0'",
"elasticsearch>=7.14.0, <8.0.0; python_version>='3.9.0'",
],
Expand Down
4 changes: 2 additions & 2 deletions src/faiss/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.faiss",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/faiss",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"faiss-cpu>=1.6.1",
],
classifiers=[
Expand Down
6 changes: 2 additions & 4 deletions src/gpt2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.gpt2",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/gpt2",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -27,9 +27,7 @@
namespace_packages=["fortex"],
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
],
install_requires=["forte==0.2.0", "texar-pytorch>=0.1.4"],
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
Expand Down
5 changes: 3 additions & 2 deletions src/huggingface/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.huggingface",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/huggingface",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,10 +28,11 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"more-itertools>=8.0.0",
"transformers == 4.2.2",
"numpy == 1.19.5",
"sentencepiece>=0.1.96",
],
classifiers=[
"Intended Audience :: Developers",
Expand Down
4 changes: 2 additions & 2 deletions src/nltk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.nltk",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/nltk",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"more-itertools>=8.0.0",
"nltk==3.4.5",
],
Expand Down
4 changes: 2 additions & 2 deletions src/spacy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setuptools.setup(
name="forte.spacy",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/spacy",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -30,7 +30,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
f"spacy{supported_spacey_version}",
"scispacy==0.3.0",
],
Expand Down
4 changes: 2 additions & 2 deletions src/stanza/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.stanza",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/stanza",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"stanza==1.0.1",
],
classifiers=[
Expand Down
4 changes: 2 additions & 2 deletions src/tweepy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.tweepy",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/tweepy",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -28,7 +28,7 @@
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"forte==0.2.0",
"tweepy==4.0",
],
classifiers=[
Expand Down
7 changes: 2 additions & 5 deletions src/vader/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="forte.vader",
version="0.0.2",
version="0.0.3",
url="https://github.com/asyml/forte-wrappers/tree/main/src/vader",
description="Provide Forte implementations of a fantastic collection of "
"NLP tools.",
Expand All @@ -27,10 +27,7 @@
namespace_packages=["fortex"],
include_package_data=True,
platforms="any",
install_requires=[
"forte==0.1.2",
"vaderSentiment==3.2.1",
],
install_requires=["forte==0.2.0", "vaderSentiment==3.2.1", "requests"],
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
Expand Down

0 comments on commit 54db962

Please sign in to comment.