Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 346 #349

Merged
merged 11 commits into from
Dec 19, 2017
Merged
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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ data/WN18/wordnet-mlj12
tmp/
tests/test_results/fastqa_reader_test/
tests/test_results/dam_reader_test/

data/GloVe/glove.840B.300d.*
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ pyyaml
progressbar2
spacy==1.9
diskcache

pytest==3.3.0
pytest
pytest-runner
pytest-xdist
pytest-pep8
Expand Down
24 changes: 10 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,25 @@ def install_torch():


class Install(_install):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def run(self):
_install.do_egg_install(self)
spacy_download_en()
_install.run(self)


class Develop(_develop):
def __init__(self):
super().__init__()

def run(self):
spacy_download_en()
_develop.run(self)


with open('requirements.txt', 'r') as f:
requirements = [l for l in f.readlines() if not l.startswith('http://')]
install_requires = [l for l in f.readlines() if not l.startswith('http://')]

extras_require = {
'tf': ['tensorflow>=1.4.0'],
'tf_gpu': ['tensorflow-gpu>=1.4.0']
}

setup(name='jack',
version='0.1.0',
Expand All @@ -61,13 +60,10 @@ def run(self):
'install': Install,
'develop': Develop
},
install_requires=requirements,
extras_require={
'tensorflow': ['tensorflow>=1.4.0'],
'tensorflow_gpu': ['tensorflow-gpu>=1.4.0'],
},
setup_requires=requirements,
tests_require=requirements,
install_requires=install_requires,
extras_require=extras_require,
setup_requires=install_requires,
tests_require=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down
7 changes: 4 additions & 3 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ build:
code: |
sudo apt-get update
sudo apt-get -y install libtk8.6
pip3 install --upgrade -r requirements.txt
python3 setup.py install

pip install --upgrade -r requirements.txt
pip install -e .[tf]

- script:
name: echo python information
Expand All @@ -29,4 +30,4 @@ build:
- script:
name: Code coverage upload
code: |
codecov
codecov