Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 526BE200BAE for ; Fri, 28 Oct 2016 18:10:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 51046160AE4; Fri, 28 Oct 2016 16:10:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E11E160ACA for ; Fri, 28 Oct 2016 18:10:48 +0200 (CEST) Received: (qmail 82831 invoked by uid 500); 28 Oct 2016 16:10:47 -0000 Mailing-List: contact dev-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list dev@ariatosca.incubator.apache.org Received: (qmail 82820 invoked by uid 99); 28 Oct 2016 16:10:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 16:10:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 314DAC0B41 for ; Fri, 28 Oct 2016 16:10:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wmpEou81zDXm for ; Fri, 28 Oct 2016 16:10:45 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 40FE05FC08 for ; Fri, 28 Oct 2016 16:10:44 +0000 (UTC) Received: (qmail 82724 invoked by uid 99); 28 Oct 2016 16:10:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 16:10:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0AA34E38B7; Fri, 28 Oct 2016 16:10:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ran@apache.org To: dev@ariatosca.incubator.apache.org Message-Id: <34fe7f881ee94dcf98b2a698c699664b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ariatosca git commit: ARIA-6 Add tox.ini and .travis files for CI [Forced Update!] Date: Fri, 28 Oct 2016 16:10:43 +0000 (UTC) archived-at: Fri, 28 Oct 2016 16:10:49 -0000 Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-6-add-tox-and-travis-files 56ed29fbe -> 07652727c (forced update) ARIA-6 Add tox.ini and .travis files for CI The files actually existed but were out of date. Both are now up to date. Tox will take care of installing both code requirements and tests requirements before running the tests. Additional changes: - several setup.py changes (set version to 0.1.0; updated email) - minor changes to tests' requirements (removed tox, froze mock) - fixed typo in "test_base_model_members" unit test - modified networkx dependency version to 1.9 (for py2.6 support) Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/07652727 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/07652727 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/07652727 Branch: refs/heads/ARIA-6-add-tox-and-travis-files Commit: 07652727c494a238e801596d0d475fb1762fefb7 Parents: f380043 Author: Ran Ziv Authored: Tue Oct 25 17:47:35 2016 +0300 Committer: Ran Ziv Committed: Fri Oct 28 19:10:31 2016 +0300 ---------------------------------------------------------------------- .travis.yml | 31 ++++++++++++++++++++++-------- requirements.txt | 2 +- setup.py | 6 +++--- tests/requirements.txt | 3 +-- tests/storage/test_models.py | 2 +- tox.ini | 40 ++++++++++++++++++++++++++++++++------- 6 files changed, 62 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 381cf43..3f07b8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,29 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + sudo: false language: python python: - - "2.7" + - "2.7" env: - - TOX_ENV=pylint_package - - TOX_ENV=pylint_tests - - TOX_ENV=py26 - - TOX_ENV=py27 +- TOX_ENV=pylint_code +- TOX_ENV=pylint_tests +- TOX_ENV=py27 +- TOX_ENV=py26 install: - - pip install tox==1.6.1 + - pip install --upgrade pip + - pip install tox script: - - tox -e $TOX_ENV - + - pip --version + - tox --version + - tox -e $TOX_ENV http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/requirements.txt ---------------------------------------------------------------------- diff --git a/requirements.txt b/requirements.txt index c2b7663..8cf1088 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ PyYAML==3.10 -networkx==1.11 +networkx==1.9 requests==2.7.0 retrying==1.3.3 blinker==1.4 http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/setup.py ---------------------------------------------------------------------- diff --git a/setup.py b/setup.py index b7978fe..811810b 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ if (sys.version_info[0], sys.version_info[1]) not in _PYTHON_SUPPORTED_VERSIONS: '{0} Package support Python version 2.6 & 2.7 Only'.format( _PACKAGE_NAME)) -version = '0.0.1' +version = '0.1.0' execfile(os.path.join('.', _PACKAGE_NAME, 'VERSION.py')) @@ -45,10 +45,10 @@ setup( name=_PACKAGE_NAME, version=version, author='aria-core', - author_email='cosmo-admin@gigaspaces.com', + author_email='dev@ariatosca.incubator.apache.org', packages=find_packages(exclude=('*tests*',)), license='LICENSE', - description='Aria Project', + description='ARIA Project', zip_safe=False, install_requires=install_requires, entry_points={ http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/tests/requirements.txt ---------------------------------------------------------------------- diff --git a/tests/requirements.txt b/tests/requirements.txt index f3443d1..d9b5527 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,6 +1,5 @@ -mock>=1.0.1 testtools -tox==1.6.1 +mock==1.0.1 pylint==1.5.5 pytest==3.0.2 pytest-cov==2.3.1 http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/tests/storage/test_models.py ---------------------------------------------------------------------- diff --git a/tests/storage/test_models.py b/tests/storage/test_models.py index 23ed8b2..fa7333b 100644 --- a/tests/storage/test_models.py +++ b/tests/storage/test_models.py @@ -47,7 +47,7 @@ def test_base_model_members(): test_model = TestModel1(test_field='test_field_value', id='test_id') - assert repr(test_model) == "TestModel(fields=['id', 'test_field'])" + assert repr(test_model) == "TestModel1(fields=['id', 'test_field'])" expected = {'test_field': 'test_field_value', 'id': 'test_id'} assert json.loads(test_model.json) == expected assert test_model.fields_dict == expected http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/07652727/tox.ini ---------------------------------------------------------------------- diff --git a/tox.ini b/tox.ini index bc7fb8f..cb8f307 100644 --- a/tox.ini +++ b/tox.ini @@ -1,15 +1,41 @@ -# content of: tox.ini , put in same dir as setup.py +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [tox] -envlist=pylint_package,pylint_tests,py27 +envlist=py27,py26,pylint_code,pylint_tests [testenv] -deps =-r{toxinidir}/tests/requirements.txt +deps = + -rrequirements.txt + -rtests/requirements.txt +basepython = + py26: python2.6 + py27: python2.7 + pylint_code: python2.7 + pylint_tests: python2.7 [testenv:py27] -commands=py.test tests --cov-report term-missing --cov aria +commands=pytest tests --cov-report term-missing --cov aria + +[testenv:py26] +commands=pytest tests --cov-report term-missing --cov aria -[testenv:pylint_package] -commands=pylint aria --rcfile=.pylintrc --disable=cyclic-import,fixme +[testenv:pylint_code] +deps = + pylint +commands=pylint aria --rcfile=aria/.pylintrc [testenv:pylint_tests] -commands=pylint tests --rcfile=.pylintrc --disable=invalid-name,too-many-statements,too-few-public-methods,too-many-lines,too-many-public-methods,unused-argument,line-too-long,no-member,too-many-locals,duplicate-code,too-many-branches,too-many-arguments,fixme +deps = + pylint +commands=pylint tests --rcfile=tests/.pylintrc