Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dependencies definition #16

Merged
merged 3 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
# -*- coding: utf-8 -*-
#
# This file is part of HEPData.
# Copyright (C) 2020 CERN.
#
# HEPData 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.
#
# HEPData 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 HEPData; 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.

language: python

python:
- "2.7"
- "3.6"

cache:
- apt
- pip

sudo: false

addons:
apt:
packages:
- python-dev

before_install:
- "travis_retry pip install --upgrade pip"
- "travis_retry pip install --upgrade pip setuptools wheel"

install:
- "travis_retry pip install --upgrade -r requirements.txt"
- "travis_retry pip install -e .[tests]"

script:
- python setup.py install
- pytest testsuite
- "pytest testsuite"

after_success:
- coveralls

sudo: false
- "coveralls"

deploy:
skip_existing: true
Expand All @@ -37,4 +59,4 @@ deploy:
distributions: "sdist bdist_wheel"
on:
tags: true
repo: HEPData/hepdata-validator
repo: HEPData/hepdata-validator
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Via GitHub (for developers):

git clone https://github.com/HEPData/hepdata-validator
cd hepdata-validator
pip install --upgrade -e . -r requirements.txt
pip install --upgrade -e .[tests]
pytest testsuite


Expand Down
4 changes: 2 additions & 2 deletions hepdata_validator/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of HEPData.
# Copyright (C) 2016 CERN.
# Copyright (C) 2020 CERN.
#
# HEPData is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand All @@ -27,4 +27,4 @@

from __future__ import absolute_import, print_function

__version__ = "0.2.1"
__version__ = "0.2.2"
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from setuptools import setup
from setuptools.command.test import test as TestCommand

__author__ = 'eamonnmaguire'

test_requirements = [
'pytest>=2.7.0',
Expand All @@ -16,9 +15,11 @@
'coverage>=3.7.1',
]

extras_require = {'docs': ['Sphinx>=1.4.2'],
'tests': test_requirements,
'all': []}
extras_require = {
'all': [],
'docs': ['Sphinx>=1.4.2'],
'tests': test_requirements,
}


class PyTest(TestCommand):
Expand Down Expand Up @@ -57,7 +58,7 @@ def run_tests(self):

g = {}
with open(os.path.join('hepdata_validator', 'version.py'), 'rt') as fp:
exec (fp.read(), g)
exec(fp.read(), g)
version = g['__version__']

# Get the long description from the README file
Expand Down