Skip to content

Commit 0dd6632

Browse files
Merge pull request #138 from CiwPython/dependencies
Include version numbers for dependencies
2 parents f3d43d1 + 61b5846 commit 0dd6632

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:
44
- 3.4
55
- 3.5
66
- 3.6
7-
- "pypy-5.3.1"
7+
- "pypy-5.1"
88

99
cache:
1010
directories:
@@ -13,7 +13,7 @@ cache:
1313
install:
1414
- pip install -r requirements.txt
1515
- python setup.py develop
16-
- pip install coveralls
16+
- pip install coveralls==1.1
1717
- pip install sphinx
1818
script:
1919
- cd docs; make html

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PyYAML
2-
networkx
3-
hypothesis
4-
tqdm
1+
PyYAML==3.12
2+
networkx==1.11
3+
hypothesis==3.8.5
4+
tqdm==4.14.0

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
with open('AUTHORS.rst') as authors_file:
1010
authors = authors_file.read()
1111

12+
with open('requirements.txt') as f:
13+
requirements = []
14+
for library in f.read().splitlines():
15+
if "hypothesis" not in library: # Skip: used only for dev
16+
requirements.append(library)
17+
18+
1219
# Read in the version number
1320
exec(open('ciw/version.py', 'r').read())
1421

@@ -21,5 +28,5 @@
2128
packages=['ciw'],
2229
description='A discrete event simulation library for open queueing networks',
2330
long_description=readme + '\n\n' + changes + '\n\n' + authors,
24-
install_requires=["PyYAML", "networkx", "hypothesis", "tqdm"]
31+
install_requires=requirements
2532
)

0 commit comments

Comments
 (0)