Skip to content

Commit

Permalink
Merge pull request #1652 from hahahannes/patch-1505-check_python_3_co…
Browse files Browse the repository at this point in the history
…mpatibility

Testing: Check python3 compatibility; Fix #1505
  • Loading branch information
bari12 committed Oct 16, 2018
2 parents ce069f1 + 80c168c commit 6d17a9d
Show file tree
Hide file tree
Showing 133 changed files with 308 additions and 16 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Expand Up @@ -16,6 +16,7 @@
# - Thomas Beermann <thomas.beermann@cern.ch>, 2017-2018
# - Vincent Garonne <vgaronne@gmail.com>, 2017-2018
# - Mario Lassnig <mario.lassnig@cern.ch>, 2018
# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018

sudo: required

Expand Down Expand Up @@ -45,6 +46,7 @@ before_script:

script:
- if [[ $SUITE == "syntax" ]]; then ./tools/travis/check_syntax.sh ; fi
- if [[ $SUITE == "python3" ]]; then ./tools/travis/check_python_3.sh ; fi
- if [[ $SUITE == "client" && "$TRAVIS_PYTHON_VERSION" != "3.6" ]]; then nosetests -v lib/rucio/tests/test_clients.py; fi
- if [[ $SUITE == "client" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then nosetests -v lib/rucio/tests/test_clients.py; nosetests -v lib/rucio/tests/test_bin_rucio.py ; fi
- if [[ $SUITE == "all" ]]; then docker exec -it rucio /bin/sh -c "/opt/rucio/tools/run_tests_docker.sh -1q" ; fi
Expand All @@ -56,10 +58,13 @@ env:
- SUITE=all RDBMS=sqlite
- SUITE=client RDBMS=sqlite RUCIO_HOME=`pwd`
- SUITE=syntax
- SUITE=python3

matrix:
fast_finish: true
exclude:
- python: 2.6
env: SUITE=python3
- python: 2.6
env: SUITE=all RDBMS=oracle
- python: 2.6
Expand All @@ -70,6 +75,8 @@ matrix:
env: SUITE=all RDBMS=sqlite
- python: 2.6
env: SUITE=syntax
- python: 2.7
env: SUITE=python3
- python: 3.4
env: SUITE=all RDBMS=oracle
- python: 3.4
Expand All @@ -90,8 +97,6 @@ matrix:
env: SUITE=all RDBMS=postgres
- python: 3.5
env: SUITE=all RDBMS=sqlite
- python: 3.6
env: SUITE=all
- python: 3.5
env: SUITE=all RDBMS=oracle
- python: 3.5
Expand All @@ -100,6 +105,10 @@ matrix:
env: SUITE=all RDBMS=postgres
- python: 3.5
env: SUITE=all RDBMS=sqlite
- python: 3.6
env: SUITE=python3
- python: 3.6
env: SUITE=all
- python: 3.6
env: SUITE=all RDBMS=oracle
- python: 3.6
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio
Expand Up @@ -32,6 +32,8 @@
# - Frank Berghaus, <frank.berghaus@cern.ch>, 2018
# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018
# - Dimitrios Christidis <dimitrios.christidis@cern.ch>, 2018
#
# PY3K COMPATIBLE

from __future__ import print_function

Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-abacus-account
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2014
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Abacus account is a daemon to update account counters.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-abacus-rse
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2014
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Abacus rse is a daemon to update rse counters.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-admin
Expand Up @@ -27,6 +27,8 @@
# - Brian Bockelman, <bbockelm@cse.unl.edu>, 2017-2018
# - Nicolo Magini, <Nicolo.Magini@cern.ch>, 2018
# - Hannes Hansen, <hannes.jakob.hansen@cern.ch>, 2018
#
# PY3K COMPATIBLE

from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/rucio-atropos
Expand Up @@ -16,6 +16,7 @@
# Authors:
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
# PY3K COMPATIBLE

'''
Atropos Daemon : End the life of the rules according to the Lifetime Model
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-auditor
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Fernando Lopez, <fernando.e.lopez@gmail.com>, 2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

from datetime import datetime
from functools import partial
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-bb8
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
BB8 is a daemon to rebalance data.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-c3po
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Thomas Beermann, <thomas.beermann@cern.ch>, 2015-2017
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
C-3PO is a dynamic data placement daemon.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-cache-consumer
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Wen Guan, <wguan.icedew@gmail.com>, 2014
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Rucio Cache Consumer is a daemon to add/delete cache replicas to Rucio catalog.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-finisher
Expand Up @@ -17,6 +17,8 @@
# - Wen Guan, <wguan.icedew@gmail.com>, 2015
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2017
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
3 changes: 2 additions & 1 deletion bin/rucio-conveyor-poller
Expand Up @@ -18,7 +18,8 @@
# - Wen Guan, <wguan.icedew@gmail.com>, 2014-2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
# - Cedric Serfon <cedric.serfon@cern.ch>, 2018

#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-poller-latest
Expand Up @@ -17,6 +17,8 @@
# - Wen Guan, <wguan.icedew@gmail.com>, 2015
# - Martin Barisits, <martin.barisits@cern.ch>, 2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-receiver
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Wen Guan, <wguan.icedew@gmail.com>, 2015-2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-stager
Expand Up @@ -17,6 +17,8 @@
# - Wen Guan, <wguan.icedew@gmail.com>, 2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2015-2018
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-submitter
Expand Up @@ -18,6 +18,8 @@
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2013-2018
# - Wen Guan, <wguan.icedew@gmail.com>, 2014-2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2016-2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-throttler
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Wen Guan, <wguan.icedew@gmail.com>, 2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-conveyor-transfer-submitter
Expand Up @@ -18,6 +18,8 @@
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2013-2018
# - Wen Guan, <wguan.icedew@gmail.com>, 2014-2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2016-2018
#
# PY3K COMPATIBLE

"""
Conveyor is a daemon to manage file transfers.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-hermes
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2014-2017
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Hermes is a daemon to deliver messages to an asynchronous broker.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-judge-cleaner
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2013-2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Judge-Cleaner is a daemon to clean expired replication rules.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-judge-evaluator
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2013-2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Judge-Evaluator is a daemon to re-evaluate replication rules.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-judge-injector
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2015-2016
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Judge-Injector is a daemon to asynchronously inject replication rules.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-judge-repairer
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2013-2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Judge-Repairer is a daemon to repair stuck replication rules.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-kronos
Expand Up @@ -17,6 +17,8 @@
# - Thomas Beermann, <thomas.beermann@cern.ch>, 2014
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

"""
Kronos is a daemon the consumer tracer messages and update the replica atime accordingly.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-necromancer
Expand Up @@ -17,6 +17,8 @@
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2014
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

'''
Necromancer Daemon : Bring the dead files back to life
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-sonar
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Vitjan Zavrtanik, <vitjan.zavrtanik@cern.ch>, 2017
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

'''
Sonar is a daemon that tests inactive links.
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-sonar-distribution
Expand Up @@ -16,6 +16,8 @@
# Authors:
# - Vitjan Zavrtanik, <vitjan.zavrtanik@cern.ch>, 2017
# - Vincent Garonne, <vgaronne@gmail.com>, 2018
#
# PY3K COMPATIBLE

'''
Sonar distribution daemon makes sure the datasets
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-transmogrifier
Expand Up @@ -17,6 +17,8 @@
# - Vincent Garonne, <vgaronne@gmail.com>, 2012-2018
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2013-2014
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
#
# PY3K COMPATIBLE

'''
Transmogrifier (Replication Rule Resolver) Daemon
Expand Down
2 changes: 2 additions & 0 deletions bin/rucio-undertaker
Expand Up @@ -15,6 +15,8 @@
#
# Authors:
# - Vincent Garonne, <vgaronne@gmail.com>, 2013-2018
#
# PY3K COMPATIBLE

"""
Undertaker is a daemon to manage expired did.
Expand Down
3 changes: 2 additions & 1 deletion lib/rucio/api/account.py
Expand Up @@ -12,7 +12,8 @@
# - Martin Barisits, <martin.barisits@cern.ch>, 2014
# - Joaquin Bogado, <joaquin.bogado@cern.ch>, 2015
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2015

#
# PY3K COMPATIBLE

import rucio.api.permission
import rucio.common.exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/account_limit.py
Expand Up @@ -7,6 +7,8 @@
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2014
# - Cedric Serfon, <cedric.serfon@cern.ch>, 2015
#
# PY3K COMPATIBLE

import rucio.api.permission
import rucio.common.exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/authentication.py
Expand Up @@ -16,6 +16,8 @@
# - Mario Lassnig <mario@lassnig.net>, 2012-2018
# - Vincent Garonne <vgaronne@gmail.com>, 2012-2015
# - Martin Barisits <martin.barisits@cern.ch>, 2017
#
# PY3K COMPATIBLE

from rucio.api import permission
from rucio.common import exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/config.py
Expand Up @@ -7,6 +7,8 @@
#
# Authors:
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2014
#
# PY3K COMPATIBLE

from rucio.api import permission
from rucio.common import exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/credential.py
Expand Up @@ -14,6 +14,8 @@
#
# Authors:
# - Mario Lassnig <mario@lassnig.net>, 2018
#
# PY3K COMPATIBLE

from rucio.api import permission
from rucio.common import exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/heartbeat.py
Expand Up @@ -7,6 +7,8 @@
#
# Authors:
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
#
# PY3K COMPATIBLE

from rucio.api import permission
from rucio.common import exception
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/identity.py
Expand Up @@ -9,6 +9,8 @@
# - Mario Lassnig, <mario.lassnig@cern.ch>, 2012, 2017
# - Tomas Kouba, <tomas.kouba@cern.ch>, 2014
# - Thomas Beermann, <thomas.beermann@cern.ch>, 2014
#
# PY3K COMPATIBLE

"""
Interface for identity abstraction layer
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/lifetime_exception.py
Expand Up @@ -8,6 +8,8 @@
Authors:
- Cedric Serfon, <cedric.serfon@cern.ch>, 2016-2017
PY3K COMPATIBLE
'''

from rucio.api import permission
Expand Down
2 changes: 2 additions & 0 deletions lib/rucio/api/lock.py
Expand Up @@ -6,6 +6,8 @@
#
# Authors:
# - Martin Barisits, <martin.barisits@cern.ch>, 2014
#
# PY3K COMPATIBLE

from rucio.core import lock
from rucio.core.rse import get_rse_id
Expand Down

0 comments on commit 6d17a9d

Please sign in to comment.