Skip to content

Commit

Permalink
Merge branch 'develop_install' into 'master'
Browse files Browse the repository at this point in the history
Fix install in develop mode

See merge request World/OpenPaperwork/libpillowfight!13
  • Loading branch information
jflesch committed Aug 21, 2020
2 parents 4af0520 + f8a31e6 commit 4ccaad1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
addopts = -v --cov=pillowfight --cov-report=term-missing --cov-branch
python_files = tests/tests_*.py
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
'pillowfight',
],
package_dir={
'pillowfight': 'src/pillowfight',
'': 'src',
},
ext_modules=[
Extension(
Expand Down
13 changes: 11 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
envlist=py3

[testenv]
deps=nose
commands=./setup.py nosetests
deps=
pytest
pytest-cov
# The two following lines have the same meaning but whitelist_externals option
# is deprecated for versions >=3.18 and allowlist_externals is only recognized
# for versions >=3.18
whitelist_externals=make
allowlist_externals=make
commands=
make version
pytest

[flake8]
exclude =
Expand Down

0 comments on commit 4ccaad1

Please sign in to comment.