Skip to content

Commit

Permalink
Add pip-tools to manage dependency versioning (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcginty committed Jun 26, 2018
1 parent 819f51e commit bc3d9c0
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 8 deletions.
13 changes: 11 additions & 2 deletions Makefile
Expand Up @@ -90,14 +90,23 @@ test: test-unit test-integration test-functional
pip install --upgrade pip
@# Constrain setuptools because pylint is not compatible with newer versions.
pip install setuptools==33.1.1
pip install --upgrade pip-tools

init: .pre-init
$(call print_msg, Installing requirements... )
pip install --upgrade -r requirements.txt
pip-sync requirements.txt

init-dev: .pre-init
$(call print_msg, Installing dev requirements... )
pip install --upgrade -r dev-requirements.txt
pip-sync requirements.txt dev-requirements.txt

deps:
pip-compile requirements.in
pip-compile dev-requirements.in

deps-upgrade:
pip-compile -U requirements.in
pip-compile -U dev-requirements.in

pylint:
$(call print_msg, Running pylint... )
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
@@ -1,5 +1,6 @@
install:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts\\;%PATH%"
- pip install -r requirements.txt
- pip install -r dev-requirements.txt

environment:
Expand Down
8 changes: 8 additions & 0 deletions dev-requirements.in
@@ -0,0 +1,8 @@
coverage
genty
hypothesis
nose
nosexcover
pep8
pex
pylint
16 changes: 14 additions & 2 deletions dev-requirements.txt
@@ -1,10 +1,22 @@
-r requirements.txt
astroid==1.4.0 # for pylint
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file dev-requirements.txt dev-requirements.in
#

astroid==1.4.9 # via pylint
coverage==3.7.1
genty==1.1.0
hypothesis==1.9.0
isort==4.3.4 # via pylint
lazy-object-proxy==1.3.1 # via astroid
mccabe==0.6.1 # via pylint
nose==1.3.4
nosexcover==1.0.10
pep8==1.5.7
pex==1.3.1
pylint==1.6.5
six==1.11.0 # via astroid, genty, pylint
wheel==0.29.0 # via pex
wrapt==1.10.11 # via astroid
10 changes: 10 additions & 0 deletions requirements.in
@@ -0,0 +1,10 @@
configobj
fysom
logbook
prometheus_client
psutil
pyyaml
requests
termcolor
tornado
typing
14 changes: 10 additions & 4 deletions requirements.txt
@@ -1,12 +1,18 @@
# Install with "pip install -r requirements.txt"
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file requirements.txt requirements.in
#

configobj==5.0.6
fysom==2.1.2
Logbook==0.7.0
prometheus_client==0.0.19
logbook==0.7.0
prometheus-client==0.0.19
psutil==2.2.0
PyYAML==3.11
pyyaml==3.11
requests==2.3.0
six==1.11.0 # via configobj
termcolor==1.1.0
tornado==3.2.2
typing==3.6.1

0 comments on commit bc3d9c0

Please sign in to comment.