Skip to content

Commit

Permalink
Add pinned requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger authored and epa095 committed Nov 19, 2018
1 parent f07c4cd commit 2ea40e3
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 29 deletions.
7 changes: 0 additions & 7 deletions gordo_components/runtime/requirements.txt

This file was deleted.

46 changes: 37 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,38 @@
Click>=6.0
requests>=2.0
joblib
scikit-learn==0.19.1
Keras==2.1.5
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file requirements.txt setup.py
#
absl-py==0.6.1 # via tensorflow
astor==0.7.1 # via tensorflow
certifi==2018.10.15 # via requests
chardet==3.0.4 # via requests
click==7.0
gast==0.2.0 # via tensorflow
grpcio==1.16.1 # via tensorboard, tensorflow
h5py==2.8.0
numpy==1.12.1
pandas==0.22.0
tensorflow==1.2
influxdb==5.0.0
idna==2.7 # via requests
influxdb==5.2.0
joblib==0.13.0
keras-applications==1.0.6 # via keras, tensorflow
keras-preprocessing==1.0.5 # via keras, tensorflow
keras==2.2.4
markdown==3.0.1 # via tensorboard
numpy==1.15.4
pandas==0.23.4
pip-tools==3.1.0
protobuf==3.6.1 # via tensorboard, tensorflow
python-dateutil==2.7.5
pytz==2018.7 # via influxdb, pandas
pyyaml==3.13 # via keras
requests==2.20.1
scikit-learn==0.20.0
scipy==1.1.0 # via keras, scikit-learn
six==1.11.0 # via absl-py, grpcio, h5py, influxdb, keras, keras-preprocessing, pip-tools, protobuf, python-dateutil, tensorboard, tensorflow
tensorboard==1.12.0 # via tensorflow
tensorflow==1.12.0
termcolor==1.1.0 # via tensorflow
urllib3==1.24.1 # via requests
werkzeug==0.14.1 # via tensorboard
wheel==0.32.3 # via tensorboard, tensorflow
28 changes: 16 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
from os import path
from setuptools import setup, find_packages

# Install requirements
with open('requirements.txt', 'r') as f:
requirements = [req.strip() for req in f.readlines()]
install_requires = [
'Click~=7.0',
'h5py~=2.8',
'influxdb~=5.2',
'joblib~=0.13',
'Keras~=2.2',
'numpy~=1.15',
'pandas~=0.23',
'pip-tools~=3.1',
'python-dateutil~=2.7',
'requests~=2.20',
'scikit-learn~=0.20',
'tensorflow~=1.12'
]

setup_requirements = ['pytest-runner', 'setuptools_scm']

# Test requirements
test_requirements = ['pytest', 'ruamel.yaml==0.15.76', 'pytest-mypy==0.3.2']

# Need the model server runtime requirements to run model tests
runtime_req_txt = path.join(
path.dirname(__file__), 'gordo_components', 'runtime', 'requirements.txt'
)
with open(runtime_req_txt) as f:
test_requirements.extend([req.strip() for req in f.readlines()])
test_requirements = ['pytest==4.0.0', 'ruamel.yaml==0.15.76', 'pytest-mypy==0.3.2']

setup(
author="Miles Granger",
Expand All @@ -36,7 +40,7 @@
'gordo-components=gordo_components.cli:gordo',
],
},
install_requires=requirements,
install_requires=install_requires,
license="Unlicense",
name='gordo-components',
packages=find_packages(),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serializer_into_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_pipeline_into_definition(self):
random_state:
tol: 0.0
memory:
n_jobs: 1
n_jobs:
transformer_weights:
- gordo_components.model.models.KerasModel:
kind: feedforward_symetric
Expand Down

0 comments on commit 2ea40e3

Please sign in to comment.