Skip to content

Commit

Permalink
Fix py27 compatibility (#49)
Browse files Browse the repository at this point in the history
* add mock with env marker to requirements.txt

* add extras_require section into setup.py
  • Loading branch information
pavdmyt authored and h2non committed Oct 19, 2017
1 parent 25dd10c commit a9992a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jsonschema~=2.5.1
xmltodict~=0.10.2
furl~=0.5.6
mock~=2.0.0 ; python_version < '3.3'
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ def run_tests(self):
py_modules=['pook'],
zip_safe=False,
install_requires=install_requires,
extras_require={
':python_version < "3.3"': [
'mock~=2.0.0',
],
},
tests_require=tests_require,
packages=find_packages(exclude=['tests', 'examples', 'docs']),
package_data={'': [
Expand Down

0 comments on commit a9992a7

Please sign in to comment.