Skip to content

Commit

Permalink
fix for package data in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Mar 5, 2019
1 parent d491105 commit fb38672
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
37 changes: 26 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
language: cpp # Travis-CI does not currently support Python and Mac OS X

os:
- linux
- osx

env:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7

matrix:
include:
- os: linux
dist: xenial
env: PYTHON_VERSION=3.6
- os: linux
dist: trusty
env: PYTHON_VERSION=3.6
- os: linux
dist: xenial
env: PYTHON_VERSION=3.7
- os: osx
env: PYTHON_VERSION=3.6

fast_finish: true
allow_failures:
- os: osx
- env: PYTHON_VERSION=3.7
- os: linux
dist: trusty
env: PYTHON_VERSION=3.6
- os: linux
dist: xenial
env: PYTHON_VERSION=3.7
- os: osx
env: PYTHON_VERSION=3.6

install:
- "export DISPLAY=:99.0"
Expand Down Expand Up @@ -46,10 +57,14 @@ install:
- pip install https://github.com/hydroffice/hyo2_abc/archive/master.zip
- pip install .
- rm -f $HOME/miniconda/envs/test-environment/qt.conf
- pip install pytest pytest-cov
- conda list --show-channel-urls

script:
- coverage run --source hyo2 setup.py test
- py.test --cov=hyo2 tests/

after_script:
- coverage report -m

after_success:
- coveralls
14 changes: 3 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,10 @@ def find_version(*file_paths):
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "*.test*", ]),
package_data={
"": [
'sis/app/media/*.png',
'soundspeed/listener/seacat/CONFIG/*.*',
'soundspeedmanager/media/*.png',
'soundspeedmanager/widgets/media/*.png',
'soundspeedmanager/stylesheet/rc/*.png',
'soundspeedmanager/stylesheet/app.stylesheet',
'soundspeedmanager/styles/main.stylesheet',
'soundspeedmanager/widgets/styles/widget.stylesheet',
'soundspeedmanager/widgets/pdf/*.pdf',
'soundspeedsettings/styles/main.stylesheet',
'soundspeedsettings/widgets/styles/widget.stylesheet',
'soundspeedsettings/media/*.png',
'soundspeedmanager/media/*.*',
'soundspeedmanager/media/LICENSE',
'soundspeedsettings/media/*.*',
],
},
zip_safe=False,
Expand Down

0 comments on commit fb38672

Please sign in to comment.