Commit 219928da authored by Olivier Sallou's avatar Olivier Sallou
Browse files

New upstream version 3.0.13

parent 0434aec8
Loading
Loading
Loading
Loading
+22 −22
Original line number Diff line number Diff line
language: python
sudo: false
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - '2.7'
  - '3.4'
  - '3.5'
  - '3.6'
services:
- redis
# Apply only on main branches
branches:
  except:
    - /^feature.*$/
# command to install dependencies
#before_install:
#  - "sudo apt-get update -qq"
#  - "sudo apt-get install -qq libldap2-dev libsasl2-dev"
  - "/^feature.*$/"
install:
  - "pip install flake8"
  - "pip install -r requirements.txt"
  - "pip install coverage"
  - "pip install python-coveralls"
  - "python setup.py -q install"
#  - "echo data_file=$TRAVIS_BUILD_DIR/.coverage >> .coveragerc"
# command to run tests
- pip install flake8
- pip install -r requirements.txt
- pip install coverage
- pip install python-coveralls
- python setup.py -q install
script:
- python setup.py test
- flake8 --ignore E501 biomaj_process/*.py
#after_success:
#  - coveralls
deploy:
  provider: pypi
  skip_existing: true
  user: osallou
  password:
    secure: WSyAkAWF5GB+7sBmGBNYxrtNuY5gFXEWqcRM/8ix2ukoepGQC5BDxmmaiAcsPNONnHsN6DO6e/YvWOhv2CcD53C70LYWILfOfRYr27rGRdTb0xUb4Ji4T6N+Q0jOZP/YFE5iawNEV+WH1XFBKSsHNH7Njvgy/6n/L40SOAZasOuSGK4W7C35FXnSxRxuEm5GKdXtmrwviCR+UyRK7n4jKu0uVKOtxVgiqniScZKc/lpcr7i6+7p2AZsXB6FGm+Kyn8kGzrBXvF2gv8WbcaA0Le6H/b9IDs/AE7Y2zcObZRPH+GVZqXYkxzHbbevMdCWy2vNxebdK/j53JV6hDQg9mU0GIPAoZUQ4u4gSQeyuneyDeAqUKPNR74d9G1BKlpzsmyq3XbNdEEZtF6Lbjr/1W/Lb0VWTNeTS8bfJxQBwWNpnQL02/EhmBn1KM/nSazXNZC3rzBcxHsesQbbmtOmMsprbdLIs0FBecKnSxk9KCLplTzAvJfGAWP5WqHNW0bWYA7DDM4wbJvWbiGJgYwdyXqpiPqocUOHCli9QDxpvJG21GHZV/lKRZPe5x+hLcYIJQhQIvJHBdbIZxqSq1bt9+JvXElcZN20oPPKieAl6LM6t5AXl+uUBSopWstMLNsJERekrPbnZxnrAFEDjzp2egqtXpz+qyWPLCrmSbkgNOVY=
  distributions: sdist bdist_wheel
  on:
    tags: true
+5 −0
Original line number Diff line number Diff line
3.0.13:
  Fix traefik prefix
3.0.12:
  Update pika dependency release
  Add tags for traefik support
3.0.11:
  Catch exception for microservices if remote server is not reachable
  Rename package for protobuf to avoid collisions
+14 −2
Original line number Diff line number Diff line
@@ -48,7 +48,19 @@ redis_client = redis.StrictRedis(
def consul_declare(config):
    if config['consul']['host']:
        consul_agent = consul.Consul(host=config['consul']['host'])
        consul_agent.agent.service.register('biomaj-process', service_id=config['consul']['id'], address=config['web']['hostname'], port=config['web']['port'], tags=['biomaj'])
        consul_agent.agent.service.register(
            'biomaj-process',
            service_id=config['consul']['id'],
            address=config['web']['hostname'],
            port=config['web']['port'],
            tags=[
                'biomaj',
                'api',
                'traefik-int.backend=biomaj-process',
                'traefik-int.frontend.rule=PathPrefix:/api/process',
                'traefik-int.enable=true'
            ]
        )
        check = consul.Check.http(url='http://' + config['web']['hostname'] + ':' + str(config['web']['port']) + '/api/process', interval=20)
        consul_agent.agent.check.register(config['consul']['id'] + '_check', check=check, service_id=config['consul']['id'])

+2 −2
Original line number Diff line number Diff line
mock
nose
pika
pika==0.13.0
redis
PyYAML
protobuf
@@ -8,5 +8,5 @@ flask
python-consul
prometheus_client>=0.0.18
requests
biomaj_core>=3.0.10
biomaj_core>=3.0.16
biomaj_zipkin
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ config = {
    'url': 'http://biomaj.genouest.org',
    'download_url': 'http://biomaj.genouest.org',
    'author_email': 'olivier.sallou@irisa.fr',
    'version': '3.0.11',
    'version': '3.0.13',
     'classifiers': [
        # How mature is this project? Common values are
        #   3 - Alpha
@@ -44,7 +44,7 @@ config = {
    'install_requires': [
                         'biomaj_core',
                         'biomaj_zipkin',
                         'pika',
                         'pika==0.13.0',
                         'redis',
                         'PyYAML',
                         'flask',