File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 20
20
var /
21
21
* .egg-info /
22
22
.installed.cfg
23
- * .egg
23
+ * .egg *
24
24
25
25
# Installer logs
26
26
pip-log.txt
@@ -54,3 +54,5 @@ docs/_build/
54
54
55
55
# Virtual Envs
56
56
.env *
57
+
58
+ _pytest_mock_version.py
Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
3
- " 3.5"
4
- - " nightly "
4
+ - " 3.6-dev "
5
5
6
6
install :
7
7
- pip install tox coveralls
8
8
9
9
script :
10
- - if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then tox; fi
11
- - if [[ $TRAVIS_PYTHON_VERSION == nightly ]]; then tox -e py36-pytest28,py36-pytest29,py36-pytest30; fi
10
+ - if [[ $TRAVIS_PYTHON_VERSION != 3.6-dev ]]; then tox; fi
11
+ - if [[ $TRAVIS_PYTHON_VERSION == 3.6-dev ]]; then tox -e py36-pytest28,py36-pytest29,py36-pytest30; fi
12
12
13
13
after_success :
14
14
- coveralls
15
+
16
+ deploy :
17
+ provider : pypi
18
+ user : nicoddemus
19
+ password :
20
+ secure : bB4adUZVIkt31cmNklskyIDNehujKToGnStnlunp7P8CBF6CGeNqkYU17emAPvfZbTb/ClUpiO9r6AD1ej32Uyr+I8qUyhuYtHG3JGp+WRR/tw+ytAZIJ9i+PMjBv1RAdyLENJ/Tx0LKHKsABr8dQIieLFqKZJuT77f/5ZkvI/U=
21
+ on :
22
+ tags : true
23
+ distributions : sdist bdist_wheel
24
+ repo : pytest-dev/pytest-mock
25
+ condition : $TRAVIS_PYTHON_VERSION = 3.5
Original file line number Diff line number Diff line change 7
7
except ImportError :
8
8
import unittest .mock as mock_module
9
9
10
- version = '1.2'
10
+ from _pytest_mock_version import version
11
+ __version__ = version
11
12
12
13
13
14
class MockFixture (object ):
Original file line number Diff line number Diff line change 2
2
3
3
from setuptools import setup
4
4
5
- with open ('pytest_mock.py' ) as f :
6
- m = re .search ("version = '(.*)'" , f .read ())
7
- assert m is not None
8
- version = m .group (1 )
9
5
10
6
setup (
11
7
name = 'pytest-mock' ,
12
- version = version ,
13
8
entry_points = {
14
9
'pytest11' : ['pytest_mock = pytest_mock' ],
15
10
},
16
- py_modules = ['pytest_mock' ],
11
+ py_modules = ['pytest_mock' , '_pytest_mock_version' ],
17
12
platforms = 'any' ,
18
13
install_requires = [
19
14
'pytest>=2.7' ,
20
15
],
21
16
extras_require = {
22
17
':python_version=="2.6" or python_version=="2.7"' : ['mock' ],
23
18
},
19
+ use_scm_version = {'write_to' : '_pytest_mock_version.py' },
20
+ setup_requires = ['setuptools_scm' ],
24
21
url = 'https://github.com/pytest-dev/pytest-mock/' ,
25
22
license = 'MIT' ,
26
23
author = 'Bruno Oliveira' ,
Original file line number Diff line number Diff line change 8
8
pytest27: pytest~=2.7
9
9
pytest28: pytest~=2.8
10
10
pytest29: pytest~=2.9
11
- # temporary until 3.0.3 is released
12
- pytest30: git+https://github.com/pytest-dev/pytest@master
11
+ pytest30: pytest~=3.0
13
12
commands =
14
13
coverage run --append --source =pytest_mock.py -m pytest test_pytest_mock.py
15
14
You can’t perform that action at this time.
0 commit comments