Skip to content

Commit

Permalink
global: addition of requirements-dev.txt
Browse files Browse the repository at this point in the history
* ADDS requirements-dev.txt and modifies .travis.yml
  to use requirements-builder

Signed-off-by: Dinos Kousidis <[email protected]>
  • Loading branch information
dinosk authored and Diego Rodriguez committed May 3, 2018
1 parent 5b7726e commit da18bb0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ language: python
cache:
- pip

env:
- REQUIREMENTS=lowest EXTRAS=all
- REQUIREMENTS=release EXTRAS=all
- REQUIREMENTS=devel EXTRAS=all

python:
- "2.7"

Expand All @@ -36,10 +41,15 @@ matrix:

before_install:
- travis_retry pip install --upgrade pip setuptools py
- travis_retry pip install twine wheel coveralls
- travis_retry pip install twine wheel coveralls requirements-builder
- requirements-builder -e $EXTRAS --level=min setup.py > .travis-lowest-requirements.txt
- requirements-builder -e $EXTRAS --level=pypi setup.py > .travis-release-requirements.txt
- requirements-builder -e $EXTRAS --level=dev --req requirements-dev.txt setup.py > .travis-devel-requirements.txt

install:
- travis_retry pip install -e .[all]
- pip install -r requirements-dev.txt
- travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt
- travis_retry pip install -e .[$EXTRAS]

script:
- ./run-tests.sh
Expand Down
23 changes: 23 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# REANA is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# REANA; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307, USA.
#
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization or
# submit itself to any jurisdiction.

-e git+git://github.com/reanahub/reana-commons.git#egg=reana-commons
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ all_files = 1

[bdist_wheel]
universal = 1

[pydocstyle]
add_ignore = D401
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
tests_require = [
'check-manifest>=0.25',
'coverage>=4.0',
'docutils==0.12',
'httpretty>=0.8',
'isort>=4.2.2',
'pydocstyle>=1.0.0',
Expand Down Expand Up @@ -66,14 +67,13 @@
install_requires = [
'bravado>=9.0.6',
'click>=6.7',
'cwltool',
'cwltool==1.0.20180326152342',
'yadage-schemas==0.7.16',
'pyOpenSSL==17.3.0', # FIXME remove once yadage-schemas solves deps.
'rfc3987==1.3.7', # FIXME remove once yadage-schemas solves deps.
'strict-rfc3339==0.7', # FIXME remove once yadage-schemas solves deps.
'tablib>=0.12.1',
'webcolors==1.7', # FIXME remove once yadage-schemas solves deps.
'reana-commons',
]

packages = find_packages()
Expand Down

0 comments on commit da18bb0

Please sign in to comment.