From c5a5157079abd22b80cffffa7d7c130f9a6bf880 Mon Sep 17 00:00:00 2001 From: "Lester James V. Miranda" Date: Tue, 29 Jan 2019 00:03:18 +0800 Subject: [PATCH] Add requirements files to MANIFEST.in --- MANIFEST.in | 2 ++ setup.py | 1 - tox.ini | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 022b2de4..dbff85fe 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,8 @@ include CONTRIBUTING.rst include HISTORY.rst include LICENSE include README.md +include requirements.txt +include requirements-dev.txt recursive-include tests * recursive-exclude * __pycache__ diff --git a/setup.py b/setup.py index 925d2718..04c165cb 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ with open("README.md", encoding="utf8") as readme_file: readme = readme_file.read() - with open("requirements.txt") as f: requirements = f.read().splitlines() diff --git a/tox.ini b/tox.ini index 43c48ae5..f16e69d0 100644 --- a/tox.ini +++ b/tox.ini @@ -3,19 +3,19 @@ envlist = py34, py35, py36, flake8 [travis] python = - 3.6: py36 + 3.6: py36 3.5: py35 3.4: py34 [testenv:flake8] basepython=python -deps=flake8 -commands=flake8 pyswarms +deps=-rrequirements-dev.txt +commands=python -m flake8 pyswarms [testenv] setenv = PYTHONPATH = {toxinidir} - +deps=-rrequirements-dev.txt commands = python -m pytest -v ; If you want to make tox run the tests with the same versions, create a