Skip to content

Commit 749c01c

Browse files
committed
updates and minor fixes - add appveyor CI
1 parent 1c33123 commit 749c01c

File tree

7 files changed

+62
-11
lines changed

7 files changed

+62
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: python
1+
wlanguage: python
22

33
python:
44
- "2.6"

LICENSE

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2015 Stefano Apostolico
4+
15
Permission is hereby granted, free of charge, to any person obtaining a copy
26
of this software and associated documentation files (the "Software"), to deal
37
in the Software without restriction, including without limitation the rights
48
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
59
copies of the Software, and to permit persons to whom the Software is
610
furnished to do so, subject to the following conditions:
711

8-
The above copyright notice and this permission notice shall be included in all
9-
copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
1014

1115
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1216
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1317
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1418
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1519
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17-
SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ pytest-echo
99
:target: https://crate.io/packages/pytest-echo/
1010

1111

12-
Print environment variables, package version and generic attributes.
13-
14-
Useful in the continuous integration to dump test configuration/environment.
12+
Print environment variables, package version and generic attributes,
13+
as they are at the begining of the test.
1514

15+
Useful in the continuous integration to dump test
16+
configuration/environment and or to check is attributes are properly set
17+
(ie. you change environment with `os.environ`)
1618

1719
Install
1820
-------

appveyor.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# What Python version is installed where:
2+
# http://www.appveyor.com/docs/installed-software#python
3+
4+
environment:
5+
matrix:
6+
- PYTHON: "C:\\Python27"
7+
TOX_ENV: "py27"
8+
9+
- PYTHON: "C:\\Python33"
10+
TOX_ENV: "py33"
11+
12+
- PYTHON: "C:\\Python34"
13+
TOX_ENV: "py34"
14+
15+
- PYTHON: "C:\\Python35"
16+
TOX_ENV: "py35"
17+
18+
19+
init:
20+
- "%PYTHON%/python -V"
21+
- "%PYTHON%/python -c \"import struct;print( 8 * struct.calcsize(\'P\'))\""
22+
23+
install:
24+
- "%PYTHON%/Scripts/easy_install -U pip"
25+
- "%PYTHON%/Scripts/pip install tox"
26+
- "%PYTHON%/Scripts/pip install wheel"
27+
28+
build: false # Not a C# project, build stuff at the test step instead.
29+
30+
test_script:
31+
- "%PYTHON%/Scripts/tox -e %TOX_ENV%"
32+
33+
after_test:
34+
- "%PYTHON%/python setup.py bdist_wheel"
35+
- ps: "ls dist"
36+
37+
artifacts:
38+
- path: dist\*
39+
40+
#on_success:
41+
# - TODO: upload the content of dist/*.whl to a public wheelhouse

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
contain the root `toctree` directive.
55
66
Welcome to pytest-echo's documentation!
7-
========================================
7+
=======================================
88

99
Contents:
1010

test_echo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import os
22
import sys
3+
4+
import pytest
5+
36
import pytest_echo
47

58
pytest_plugins = "pytester",
@@ -99,6 +102,8 @@ def test_echo_attr_module_object_attr(testdir):
99102

100103

101104
def test_django_settings(testdir):
105+
106+
pytest.importorskip("django")
102107
testdir.makeconftest("""
103108
def pytest_configure(config):
104109
import django
@@ -111,6 +116,7 @@ def pytest_configure(config):
111116
])
112117

113118
def test_django_settings_extended(testdir):
119+
pytest.importorskip("django")
114120
testdir.makeconftest("""
115121
def pytest_configure(config):
116122
import django

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ envlist=py26,py27,py32,py33,py34,pypy
44
[testenv]
55
deps = pytest
66
pytest-cache
7-
django
87

98
commands =
109
pip install -e {toxinidir}
@@ -17,7 +16,6 @@ python_files=test_echo.py
1716

1817
addopts =
1918
--tb=short
20-
--capture=no
2119

2220
[flake8]
2321
exclude = .tox,docs

0 commit comments

Comments
 (0)