Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Dependencies moved to the requirements.txt, travis config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkoryukov committed Feb 15, 2016
1 parent 2f8ec4d commit 94ec30f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
@@ -1,5 +1,8 @@
language: python

# with enabled SUDO the build goes slower
sudo: false

python:
# - "2.6"
- "2.7"
Expand All @@ -15,18 +18,13 @@ cache:
directories:
- node_modules
- libs
- lib

# command to install dependencies
install:
- npm install
- pip install --upgrade pip
- pip install coverage
- pip install coveralls
# disabled, since we don't require colors for tests on travis
- pip install --upgrade nose
# - pip install rednose

- nosetests --plugins
- npm install
- pip install -r requirements-dev.txt -t ./libs

# command to run tests
script:
Expand Down
12 changes: 7 additions & 5 deletions CouchPotato.py
Expand Up @@ -52,7 +52,7 @@ def __init__(self):
os.makedirs(self.data_dir)

# Create logging dir
self.log_dir = os.path.join(self.data_dir, 'logs');
self.log_dir = os.path.join(self.data_dir, 'logs')
if not os.path.isdir(self.log_dir):
os.makedirs(self.log_dir)

Expand All @@ -79,7 +79,7 @@ def setRestart(self, restart):

def onExit(self, signal, frame):
from couchpotato.core.event import fireEvent
fireEvent('app.shutdown', single = True)
fireEvent('app.shutdown', single=True)

def run(self):

Expand All @@ -96,8 +96,10 @@ def restart(self):
# remove old pidfile first
try:
if self.runAsDaemon():
try: self.daemon.stop()
except: pass
try:
self.daemon.stop()
except:
pass
except:
self.log.critical(traceback.format_exc())

Expand All @@ -122,7 +124,7 @@ def daemonize(self):
self.log.critical(traceback.format_exc())

def runAsDaemon(self):
return self.options.daemon and self.options.pid_file
return self.options.daemon and self.options.pid_file


if __name__ == '__main__':
Expand Down
5 changes: 0 additions & 5 deletions py-dev-requirements.txt

This file was deleted.

12 changes: 12 additions & 0 deletions requirements-dev.txt
@@ -0,0 +1,12 @@
# development requirements

mock>=1.3.0
nose>=1.3.1
nose-exclude>=0.4.1
nose-htmloutput>=0.6.0
coverage
coveralls
pep8>=1.4.6

# you could disable it on travis
rednose>=0.4.0

0 comments on commit 94ec30f

Please sign in to comment.