Skip to content

Commit b1e2ca1

Browse files
authored
Merge pull request #38 from michaeltryby/dev
Configuring codecov
2 parents 934db11 + 85b753f commit b1e2ca1

File tree

6 files changed

+31
-9
lines changed

6 files changed

+31
-9
lines changed

.coveralls.yml.enc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�n�:�y��6�d��?Y��2��G}� �u�Jw5S �X��z�@��4�~���� 6d�!�

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
# epanet-python
2-
Is home for Python packages related to the EPANET engine.
2+
Is home for Python packages related to the EPANET engine.
3+
34

45
## Build Status
56
[![Build status](https://ci.appveyor.com/api/projects/status/lrm84lry4p9obwl6/branch/dev?svg=true)](https://ci.appveyor.com/project/michaeltryby/epanet-python/branch/dev)
67

8+
[![Coverage Status](https://coveralls.io/repos/github/michaeltryby/epanet-python/badge.svg?branch=dev)](https://coveralls.io/github/michaeltryby/epanet-python?branch=dev)
9+
10+
711
## Contents
812
* epanet-module - A ctypes based wrapper for the EPANET Toolkit (with support for reading EPANET binary output files).
9-
* epanet-python - SWIG based wrappers for the EPANET Toolkit and Output libraries.
13+
* epanet-python - SWIG based wrappers for the EPANET Toolkit and Output libraries.
1014
* ...
1115

16+
1217
## Motivation
1318
These Python wrappers for EPANET are available to developers interested in building higher level functionality on top. Starting with a clean, auto-generated python API wrapper is a good foundation for building more abstractions. This also intersects with the near-term needs of the GUI work (which uses python and QT) - SWIG-wrapping will mean that the epanet library becomes scriptable from within the GUI.
1419

1520
Another benefit of auto-generating the wrapper is that it's fairly unambiguous; nobody's personal preferences get involved until we get to slightly higher-level abstractions, but everyone can share and benefit from the foundational SWIG layer.
1621

22+
1723
## Contributing
18-
There are many ways for those interested in contributing to participate - providing software development support, helping with documentation, finding bugs, or contributing feature requests. Feel free to get involved!
24+
There are many ways for those interested in contributing to participate - providing software development support, helping with documentation, finding bugs, or contributing feature requests. Feel free to get involved!

appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11

22

33
environment:
4-
matrix:
5-
- PYTHON: "C:\\Python36-x64"
4+
passphrase:
5+
secure: En1qcj1/l2B3Nov+vOHlfRrFZk00bg1HPRouD64Gzfw=
6+
matrix:
7+
- PYTHON: "C:\\Python36-x64"
8+
69

710
install:
811
- choco install swig
12+
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
13+
- appveyor-tools\secure-file -decrypt .coveralls.yml.enc -secret %passphrase%
914
- "%PYTHON%\\python.exe -m pip install wheel tox"
1015

1116

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[aliases]
2+
test=pytest
3+
4+
[tool:pytest]
5+
addopts = --ignore=epanet-module/

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ def run(self):
6868
'install': InstallCmd,
6969
'develop': DevelopCmd
7070

71-
}
71+
},
72+
setup_requires=["pytest-runner"],
73+
tests_require=["pytest"]
7274
)

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
envlist = py36
55

66
[testenv]
7-
whitelist_externals =
8-
swig
7+
passenv = APPVEYOR APPVEYOR_*
8+
whitelist_externals = swig
99
skipsdist = True
1010
usedevelop = True
1111
deps =
1212
pytest
1313
numpy
14+
PyYAML
15+
coveralls
1416
commands =
15-
python -m pytest --color=yes epanet_python -s
17+
coverage run --source=epanet_python setup.py test
18+
coveralls

0 commit comments

Comments
 (0)