diff --git a/.github/workflows/test-cde.yml b/.github/workflows/test-cde.yml index 9a836721..6fdf96cf 100644 --- a/.github/workflows/test-cde.yml +++ b/.github/workflows/test-cde.yml @@ -24,10 +24,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install wheel setuptools pip install nbsphinx==0.3.5 nbsphinx-link m2r ipython ipykernel sphinx-rtd-theme pip install future==0.17.1 pip install unittest2==1.1.0 - pip install playsound pip install -r requirements/development.txt pip install . cde data download diff --git a/chemdataextractor/eval/evaluation.py b/chemdataextractor/eval/evaluation.py index f9b811f6..738adfdc 100644 --- a/chemdataextractor/eval/evaluation.py +++ b/chemdataextractor/eval/evaluation.py @@ -26,7 +26,7 @@ import sys import os import webbrowser -from playsound import playsound +# from playsound import playsound import pickle import pkg_resources import os @@ -155,7 +155,7 @@ def eval(self): print(" Updated: {}".format(record.updated)) if self.play_sound: sound_file = pkg_resources.resource_filename('chemdataextractor', 'eval/sound.mp3') - playsound(sound_file) + # playsound(sound_file) if not doc_opened and self.show_website: webbrowser.open(doc[0].metadata.html_url) @@ -272,7 +272,7 @@ def eval(self): if self.limits_reached: if self.play_sound: sound_end_file = pkg_resources.resource_filename('chemdataextractor', 'eval/sound_end.mp3') - playsound(sound_end_file) + # playsound(sound_end_file) break print("") f.close() diff --git a/chemdataextractor/relex/snowball.py b/chemdataextractor/relex/snowball.py index 9bff86c7..a3f3f1fb 100644 --- a/chemdataextractor/relex/snowball.py +++ b/chemdataextractor/relex/snowball.py @@ -30,7 +30,7 @@ import logging from os.path import basename -from playsound import playsound +# from playsound import playsound import pkg_resources log = logging.getLogger(__name__) @@ -250,7 +250,7 @@ def train_from_sentence(self, s): if self.play_sound: sound_file = pkg_resources.resource_filename('chemdataextractor', 'eval/sound.mp3') - playsound(sound_file) + # playsound(sound_file) res = six.moves.input("...: ").replace(' ', '') if res: chosen_candidate_idx = res.split(',') diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..593aa4f5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel<0.33.0,>0.32.0"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 5ab12c9c..fa9c29af 100644 --- a/setup.py +++ b/setup.py @@ -47,15 +47,14 @@ 'numpy<1.20; python_version >= "3.7.0"', "protobuf==3.*", # 'scipy', - "yaspin", - "deprecation", - "allennlp==0.9.0", - "tokenizers", - "scikit-learn==0.22.1", - "overrides==3.1.0", - "boto3==1.15.18", - "unittest2", - "playsound", + 'yaspin', + 'deprecation', + 'allennlp==0.9.0', + 'tokenizers', + 'scikit-learn==0.22.1', + 'overrides==3.1.0', + 'boto3==1.15.18', + 'unittest2', ], classifiers=[ "Intended Audience :: Developers",