Skip to content

Commit

Permalink
Moved tests dir from package to project root
Browse files Browse the repository at this point in the history
Removed tests package

Replaced pkg_resources with __file__

Replaced pkg_resources with __file__

Removed pkg_resources

Removed pkg_resources

0.8.4 changes
  • Loading branch information
mandeep committed Jul 26, 2017
1 parent 4eea38a commit 30800c4
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ omit =
setup.py
mausoleum/__main__.py
*/__init__.py
mausoleum/tests/*
tests/*
57 changes: 32 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
after_success:
- coveralls
notifications:
email: false

dist: trusty
sudo: required

language: python
python:
- '3.5'
- '3.6'

before_install:
- sudo apt-get update
- sudo apt-get install -y zsh gnupg cryptsetup pinentry-curses steghide qrencode
gawk

install:
- wget https://files.dyne.org/tomb/old-releases/Tomb-2.2.tar.gz
- tar xvfz Tomb-2.2.tar.gz
- pushd tomb-2.2 && sudo make install && popd
- pip install pyqt5
- pip install coverage
- pip install coveralls
- pip install pytest
- pip install pytest-cov
- pip install pytest-mock
- pip install pytest-qt
- pip install pytest-xvfb
- python setup.py install

script:
- pytest -v --cov=./

after_success:
- coveralls

deploy:
true:
branch: master
Expand All @@ -12,26 +42,3 @@ deploy:
secure: "Zq9BTLd1Ya/ZKbicIg4uXMcNfVoPX5dN+RnOgDXdRbQDGtB7OO3zmKC8P/KbtyFiI5bUHdilUzRA4rig/PSHY/guztDNmn20GwSowoSAx9jF/ouhhsRypjnA9QJzWuBLQTDmDtU7ETGriNOyxtxP0y/SF5diuwHmhaf8iyxFposIs6TtQenFF2HT5+0AFIn8eWG/+gK17vERkrq+ar1a2dbCwWTarS/z+GnE1hGh9Ym89LHza9ULyiTnMxd30srX17T4Oiq7N8OIY5L4QobtgctMcKH7NArcLwtE10KrPKDB2tjp4+DLBDKXO/jHuhg9LxDeiirgLGWLJwFAGUGhY3wP74tw7B6rVfUGSEDxVktq5FjCZGXmCm4pJuDb/FeHfxJGzhFYvTMwZFhxmnzoHBFQLE6QH9cmzrvPeYQr9KRsICQ+MwKKVul68PKppeRFqPQfcH/wPizULU7+fDdlwdqNjjlHvZFwk6Efc2M4XpTr2qpPMjY68Q7V3Fr0zI1E0AwEIpseLVfhlkqXdygvK50utaUqQEXS21Iu8RBqKKUBUm7DsjgTlIsQrtFnZkbq+R3tdns8NWj1qQ1uEO7XG3QHulmCc/zeay1WUvPVUQ7UrXexqtnvKJJt/FJckvM6QXK/UCsMcknnIrhYFQKX++fPnhEoS1W2q/0+l07ZgrY="
provider: pypi
distributions: sdist bdist_wheel
dist: trusty
install:
- wget https://files.dyne.org/tomb/old-releases/Tomb-2.2.tar.gz
- tar xvfz Tomb-2.2.tar.gz
- pushd tomb-2.2 && sudo make install && popd
- pip3 install pyqt5
- python setup.py install
- pip3 install coverage
- pip3 install coveralls
- pip3 install pytest
- pip3 install pytest-cov
- pip3 install pytest-mock
- pip3 install pytest-qt
- pip3 install pytest-xvfb
language: python
notifications:
email: false
python:
- '3.5'
- '3.6'
script:
- py.test -s -v --cov=./
sudo: required
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Additions

- Ability to minimize to system tray

0.8.4 - 2017-07-25
==================

- Moved tests directory from the package directory to the project root directory

0.8.3 - 2017-06-07
==================

Expand Down
Binary file removed mausoleum/tests/test.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
testpaths = mausoleum/tests/
testpaths = tests/
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@

setup(
name='mausoleum',
version='0.8.3',
version='0.8.4',
description='A Python GUI, CLI, and wrapper for Tomb',
author='Mandeep',
author_email='info@mandeep.xyz',
license='GPLv3+',
url='https://github.com/mandeep/Mausoleum',
packages=['mausoleum', 'mausoleum.images',
'mausoleum.tests'],
package_data={'mausoleum.images': ['*.png'], 'mausoleum': ['*.toml'], 'mausoleum.tests': ['*.jpg']},
packages=['mausoleum', 'mausoleum.images'],
package_data={'mausoleum.images': ['*.png'], 'mausoleum': ['*.toml']},
entry_points={
'console_scripts': [
'mausoleum-gui=mausoleum.application:main',
Expand Down
File renamed without changes.
Binary file added tests/test.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import pkg_resources

import pytest
import os

from PyQt5.QtCore import Qt
import pytest

from mausoleum import application

Expand Down Expand Up @@ -41,7 +40,7 @@ def password():
@pytest.fixture
def image_file():
"""Pass a JPEG file resource as an argument to the unit tests."""
file = pkg_resources.resource_filename('mausoleum.tests', 'test.jpg')
file = os.path.join(os.path.dirname(__file__), 'test.jpg')
return file


Expand Down
4 changes: 2 additions & 2 deletions mausoleum/tests/test_wrapper.py → tests/test_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg_resources
import os

from click.testing import CliRunner
import pytest
Expand Down Expand Up @@ -27,7 +27,7 @@ def password():
@pytest.fixture
def image_file():
"""Pass a JPEG file resource as an argument to the unit tests."""
file = pkg_resources.resource_filename('mausoleum.tests', 'test.jpg')
file = os.path.join(os.path.dirname(__file__), 'test.jpg')
return file


Expand Down

0 comments on commit 30800c4

Please sign in to comment.