Skip to content

Commit

Permalink
MAINT: use test_requirements.txt in tox and shippable, ship it too
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Sep 9, 2019
1 parent 42ac121 commit 037a613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 4 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ include pytest.ini
include *.txt
include README.md
include site.cfg.example
include runtests.py
include tox.ini
include .coveragerc
include test_requirements.txt
recursive-include numpy/random *.pyx *.pxd *.pyx.in *.pxd.in
include numpy/__init__.pxd
# Add build support that should go in sdist, but not go in bdist/be installed
Expand All @@ -18,8 +22,6 @@ include numpy/__init__.pxd
recursive-include numpy *
recursive-include numpy/_build_utils *
recursive-include numpy/linalg/lapack_lite *
include runtests.py
include tox.ini pytest.ini .coveragerc
recursive-include tools *
# Add sdist files whose use depends on local configuration.
include numpy/core/src/common/cblasfuncs.c
Expand Down
4 changes: 1 addition & 3 deletions shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ build:
# we will pay the ~13 minute cost of compiling Cython only when a new
# version is scraped in by pip; otherwise, use the cached
# wheel shippable places on Amazon S3 after we build it once
- pip install cython --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
# install pytz for datetime testing
- pip install pytz
- pip install -r test_requirements.txt --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
# install pytest-xdist to leverage a second core
# for unit tests
- pip install pytest-xdist
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ envlist =
py37-not-relaxed-strides

[testenv]
deps=
pytest
deps= -Ur{toxinidir}/test_requirements.txt
changedir={envdir}
commands={envpython} {toxinidir}/runtests.py --mode=full {posargs:}

Expand Down

0 comments on commit 037a613

Please sign in to comment.