Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
Merge 60f52f1 into c493306
Browse files Browse the repository at this point in the history
  • Loading branch information
greut committed May 25, 2014
2 parents c493306 + 60f52f1 commit f541d8b
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 26 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"

install:
- pip install --upgrade pip --use-mirrors
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r requirements-test.txt
- pip install -e .
- pip install coveralls --use-mirrors
- pip install .

script:
- coverage run --source=invenio_kwalitee setup.py test
Expand Down
5 changes: 5 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage
httpretty
mock
nose
pyhamcrest
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Flask
Flask-Script
pep8
pep257
pyflakes
requests
rq
33 changes: 14 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,26 @@
import re
import sys


def reqs(filename):
"""Read the requirements from a file."""
return [r.strip() for r in open(filename, 'r').readlines()]


install_requires = reqs('requirements.txt')
test_requires = reqs('requirements-test.txt')

if tuple(sys.version_info) < (2, 7):
install_requires.append('importlib')


# Get the version string. Cannot be done with import!
with open(os.path.join('invenio_kwalitee', 'version.py'), 'rt') as f:
version = re.search(
'__version__\s*=\s*.(?P<version>.*).\n',
f.read()
).group('version')

install_requires = [
'Flask',
'Flask-Script',
'pep8',
'pep257',
'pyflakes',
'requests',
'rq'
]
test_requires = [
'coverage',
'httpretty',
'mock',
'nose',
'pyhamcrest'
]

if tuple(sys.version_info) < (2, 7):
install_requires.append('importlib')

setup(
name='Invenio-Kwalitee',
Expand Down Expand Up @@ -81,6 +75,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
Expand Down
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[tox]
envlist = py26, py27, py33
envlist = py26, py27, py33, py34

[testenv]
commands =
{envpython} setup.py test
deps =
nose
sphinx
commands = {envpython} setup.py nosetests
deps = nose

0 comments on commit f541d8b

Please sign in to comment.