File tree Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - 2.6
4
+ - 2.7
5
+ - 3.2
6
+ - 3.3
7
+ - 3.4
8
+ - " pypy"
9
+ - " pypy3"
10
+ script :
11
+ - python setup.py test
12
+ notifications :
13
+ email : false
Original file line number Diff line number Diff line change 1
1
Strategies
2
2
==========
3
3
4
+ [ ![ ] ( https://travis-ci.org/logpy/strategies.png )] ( https://travis-ci.org/logpy/strategies )
5
+
4
6
A Python library for control flow programming.
5
7
6
8
This project contains a set of complementary higher order functions that
Original file line number Diff line number Diff line change 1
- from os .path import exists
1
+ import os
2
+ import sys
2
3
from setuptools import setup
4
+ from setuptools .command .test import test as TestCommand
5
+
6
+
7
+ class PyTest (TestCommand ):
8
+ def finalize_options (self ):
9
+ TestCommand .finalize_options (self )
10
+ _test_args = [
11
+ '--ignore=setup.py' ,
12
+ '--verbose' ,
13
+ '--durations=5' ,
14
+ '--doctest-modules' ,
15
+ ]
16
+ extra_args = os .environ .get ('PYTEST_EXTRA_ARGS' )
17
+ if extra_args is not None :
18
+ _test_args .extend (extra_args .split ())
19
+ self .test_args = _test_args
20
+ self .test_suite = True
21
+
22
+ def run_tests (self ):
23
+ import pytest
24
+ errno = pytest .main (self .test_args )
25
+ sys .exit (errno )
3
26
4
27
setup (name = 'strategies' ,
5
28
version = '0.2.0' ,
8
31
author = 'Matthew Rocklin' ,
9
32
author_email = 'mrocklin@gmail.com' ,
10
33
install_requires = open ('dependencies.txt' ).read ().split ('\n ' ),
34
+ tests_require = ['pytest' ],
35
+ cmdclass = {'test' : PyTest },
11
36
license = 'BSD' ,
12
37
packages = ['strategies' , 'strategies.branch' ],
13
- long_description = open ('README.md' ).read () if exists ("README.md" ) else "" ,
38
+ long_description = open ('README.md' ).read () if os . path . exists ("README.md" ) else "" ,
14
39
zip_safe = False )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments