Repository: barsch/seishub.core (language: python)

Issue:
specify latest working version of dependencies
I just installed seishub and its still working like a charm.

I had to downgrade some dependencies:
`twisted<16` and `zope.interface<4.1`.



Discussion / hints:
Can you try out the necessary changes in setup.py and fix it?

Yes, I will try.


Fix patch:
diff --git a/.travis.yml b/.travis.yml
index 41d6037..c098faa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,21 @@
-# We pretend to be erlang because we can't use the python support in travis-ci
-# see also: https://groups.google.com/forum/#!msg/travis-ci/uJgu35XKdmI/CctnUkYnEJEJ
-language: erlang
+language: python
+python:
+  - "2.7"
+sudo: false
 before_install:
-  - lsb_release -a
-  - sudo apt-get install -qq gfortran python python-dev python-setuptools python-numpy python-scipy python-matplotlib python-suds python-lxml python-sqlalchemy 1> /dev/null # install dependencies
-  - sudo easy_install https://github.com/obspy/obspy/archive/master.zip
+  - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
+  - bash miniconda.sh -b -p $HOME/miniconda
+  - export PATH="$HOME/miniconda/bin:$PATH"  
+  - hash -r
+  - conda config --set always_yes yes
+  - conda update -q conda
+  - conda info -a
+  - conda config --add channels obspy
+  - conda install "obspy<1.1" "twisted<16" "zope.interface<4.1" cheetah "sqlalchemy<0.8" pyopenssl lxml pycrypto pyasn1 pyparsing
 install:
-  - sudo python setup.py -q install
+  - pip install --no-deps .
 script:
-  - sudo seishub-runtests
+  - mkdir empty; cd empty
+  - seishub-runtests
 notifications:
     email: false
diff --git a/requirements.txt b/requirements.txt
index 7983929..65a262a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,10 +1,11 @@
 SQLAlchemy >0.7.7, <0.8
 Cheetah
 pycrypto
-Twisted
+Twisted<16
+zope.interface<4.1
 pyparsing
 pyasn1
 lxml
 pyOpenSSL
-obspy <0.10.0
+obspy
 psycopg2
diff --git a/setup.py b/setup.py
index 6056a79..9f959d2 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,7 @@
     zip_safe=False,
     install_requires=[
         'setuptools',
-        'Twisted',
+        'Twisted<16', 'zope.interface<4.1',
         'Cheetah',
         'sqlalchemy>0.7.7,<0.8',
         'PyOpenSSL',
@@ -69,7 +69,7 @@
         'pycrypto',
         'pyasn1',
         'pyparsing',
-        'obspy<0.10.0',
+        'obspy<1.1',
     ],
     download_url="https://github.com/barsch/seishub.core/zipball/master" + \
         "#egg=seishub.core-dev",


Test patch:
diff --git a/seishub/core/processor/tests/test_rest_property.py b/seishub/core/processor/tests/test_rest_property.py
index 6be94e8..cef09a2 100644
--- a/seishub/core/processor/tests/test_rest_property.py
+++ b/seishub/core/processor/tests/test_rest_property.py
@@ -5,7 +5,6 @@
 
 from StringIO import StringIO
 from obspy.core.utcdatetime import UTCDateTime
-from obspy.core.util.decorator import skipIf
 from seishub.core.core import Component, implements
 from seishub.core.packages.builtins import IResourceType, IPackage
 from seishub.core.packages.installer import registerIndex
@@ -422,7 +421,8 @@ def test_validDateTimeIndexes(self):
         self.assertTrue("<value>1970-12-20 12:13:00</value>" in data)
         proc.run(DELETE, '/property-test/notvc2/1')
 
-    @skipIf(NO_NEGATIVE_TIMESTAMPS, 'times before 1970 are not supported')
+    @unittest.skipIf(NO_NEGATIVE_TIMESTAMPS,
+                     'times before 1970 are not supported')
     def test_validDateTimeIndexesBefore1970(self):
         """
         Test indexing of XML documents with valid datetime fields.