Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-cde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions chemdataextractor/eval/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions chemdataextractor/relex/snowball.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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(',')
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel<0.33.0,>0.32.0"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ha!

build-backend = "setuptools.build_meta"
17 changes: 8 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove playsound here when it seems like you've been adding it in everywhere else?

'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",
Expand Down