Skip to content

Commit 60122d5

Browse files
drvinceknightmarcharper
authored andcommitted
Remove hypothesis from setup.
Currently when we pip install axelrod we also install hypothesis. This is however only used for development. I've added a tweak to the setup.py file to just remove it from the read in requirements. I don't think we need to adjust the contributing documentation as `pip install -r requirements` will still install hypothesis.
1 parent a16b609 commit 60122d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
# Read in the requirements.txt file
44
with open('requirements.txt') as f:
5-
requirements = f.read().splitlines()
5+
requirements = []
6+
for library in f.read().splitlines():
7+
if "hypothesis" not in library: # Skip: used only for dev
8+
requirements.append(library)
69

710
# Read in the version number
811
exec(open('axelrod/version.py', 'r').read())
@@ -13,7 +16,7 @@
1316
install_requires=requirements,
1417
author='Vince Knight, Owen Campbell, Karol Langner, Marc Harper',
1518
author_email=('[email protected]'),
16-
packages=['axelrod', 'axelrod.strategies', 'axelrod.tests', 'axelrod.data'],
19+
packages=['axelrod', 'axelrod.strategies', 'axelrod.data'],
1720
url='http://axelrod.readthedocs.org/',
1821
license='The MIT License (MIT)',
1922
description='Reproduce the Axelrod iterated prisoners dilemma tournament',

0 commit comments

Comments
 (0)