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

Commit

Permalink
cleanup dev and test configuration (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
anneFly authored Nov 12, 2018
1 parent 1bc1d72 commit 38c559e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*.so

# Packages
*.egg
*.eggs
*.egg-info
dist
build
Expand Down Expand Up @@ -44,3 +44,5 @@ docs/_build

.cache
.pytest_cache

.env
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ env:
- secure: eO08tZokK+Etpp4ISvxVaWHe5tN6PC/SzLHcltqgvqRYa7L9zY5NKQjiY5LvUw1onnbbSPMnTabFWrcw3VtoQ1he5M2NbqqTSLTxT9dSWXhy6KRymNXVkEv4Ar6WWiQDUPlyMY7XTG35G5jo6C3LBer5FRKDpEAPlw51z4TyML0=
matrix:
- DJANGO="https://github.com/django/django/archive/stable/2.0.x.tar.gz#egg=django"
- DJANGO="https://github.com/django/django/archive/stable/2.1.x.tar.gz#egg=django"
- DJANGO="https://github.com/django/django/archive/stable/1.11.x.tar.gz#egg=django"
- DJANGO="https://github.com/django/django/archive/master.tar.gz#egg=django"
matrix:
allow_failures:
- env: DJANGO="https://github.com/django/django/archive/master.tar.gz#egg=django"
install:
- pip install -U codecov
- pip install -r requirements-dev.txt
- pip install -U codecov isort
- pip install $DJANGO
script:
- coverage run --source=closeio setup.py test
- isort --check-only --recursive --diff .
- coverage run --source=closeio -m 'pytest'
after_success:
- codecov
deploy:
Expand Down
8 changes: 0 additions & 8 deletions requirements-dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ python-dateutil>=2.2
requests>=2.2.1
six>=1.6.1
slumber==0.7.1
wheel>=0.22.0
13 changes: 10 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,21 @@ pytest11 =
closeio = closeio.contrib.pytest_plugin

[tool:pytest]
norecursedirs=env .git venv
norecursedirs=env .git venv .eggs
addopts = --tb=short -rxs
pep8maxlinelength=99
pep8ignore=
runtests.py ALL
flakes-ignore=
runtests.py ALL

[extras]
django =
django>=1.11

[aliases]
test = pytest

[pycodestyle]
max-line-length = 99
statistics = true
Expand All @@ -58,5 +65,5 @@ multi_line_output = 5
line_length = 79
combine_as_imports = true
known_first_party = closeio,tests
known_third_party = django
skip = wsgi.py,docs,env
known_third_party = dateutil,django,pytest,six,slumber
skip = wsgi.py,docs,env,.eggs
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from setuptools import setup

setup(
setup_requires=['pbr'],
setup_requires=['pbr', 'pytest-runner'],
tests_require=['django>=1.11', 'pytest', 'pytest-django', 'pytest-rerunfailures'],
pbr=True,
)

0 comments on commit 38c559e

Please sign in to comment.