aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2017-11-06 12:01:41 -0500
committerPaul Ganssle <paul@ganssle.io>2017-11-06 12:01:41 -0500
commit85dc0153e46f5e1831b2bd59e2344e07122881fa (patch)
tree5bab0a8485150b88219ce886c9a0c7893fde0d69
parentd470bde93beff5e01d61bfb0686a4c95e9ea49ae (diff)
downloaddateutil-85dc0153e46f5e1831b2bd59e2344e07122881fa.tar.gz
Switch testing and CI scripts to use test_requirements.txt
-rw-r--r--.travis.yml4
-rw-r--r--appveyor.yml5
-rw-r--r--setup.py1
-rw-r--r--tox.ini3
4 files changed, 3 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 84fbb1f..00b1b4a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,12 +19,10 @@ before_install:
# Install codecov
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install coverage==3.7.1; fi
- if [[ $TRAVIS_PYTHON_VERSION < '3.0' ]]; then pip install mock; fi
+ - pip install -r test_requirements.txt
- pip install codecov
- - pip install freezegun
- - pip install pytest
install:
- - pip install six
- ./ci_tools/retry.sh python updatezinfo.py
script:
diff --git a/appveyor.yml b/appveyor.yml
index 30d7130..d8fdb8a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,11 +20,8 @@ install:
- set pip_cmd=%PYTHON%/python.exe -m pip
# Download scripts and dependencies
- - "%pip_cmd% install six"
- - "%pip_cmd% install coverage"
+ - "%pip_cmd% install -r test_requirements.txt"
- "%pip_cmd% install codecov"
- - "%pip_cmd% install pytest"
- - "%pip_cmd% install freezegun"
# This frequently fails with network errors, so we'll retry it up to 5 times
# with a 1 minute rate limit.
diff --git a/setup.py b/setup.py
index ff7d2f5..e2151f4 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,6 @@ datetime module available in the Python standard library.
package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
zip_safe=True,
requires=["six"],
- tests_require=["freezegun", "pytest"],
install_requires=["six >=1.5"], # XXX fix when packaging is sane again
classifiers=[
'Development Status :: 5 - Production/Stable',
diff --git a/tox.ini b/tox.ini
index 45c9e19..0f9909a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,5 +11,4 @@ envlist =
[testenv]
commands = pytest {posargs}
-deps =
- six,pytest,freezegun
+deps = -rtest_requirements.txt \ No newline at end of file