From 4bdd9550a9cbbebf72c6a82bbea35ff8e7c7302f Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Mon, 8 Jun 2015 13:57:34 -0400 Subject: [PATCH] Remove requirements files. --- .travis.yml | 3 +-- MANIFEST.in | 1 - dev-requirements.txt | 6 ------ requirements.txt | 0 setup.py | 20 +++----------------- test-requirements.txt | 2 -- tox.ini | 5 +++-- 7 files changed, 7 insertions(+), 30 deletions(-) delete mode 100644 dev-requirements.txt delete mode 100644 requirements.txt delete mode 100644 test-requirements.txt diff --git a/.travis.yml b/.travis.yml index aac4ef5..5f95cf2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,8 @@ python: - pypy - 3.4 before_install: - - pip install codecov + - pip install nose coverage codecov install: - - pip install -r test-requirements.txt - pip install -e . script: nosetests after_success: diff --git a/MANIFEST.in b/MANIFEST.in index 068dca0..2c38b05 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,6 @@ include LICENSE include README.rst include HISTORY.rst -include *requirements.txt include tests.py graft docs global-exclude __pycache__ diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index 6a259fc..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ --r requirements.txt --r test-requirements.txt -flake8>=2.1,<3 -sphinx>=1.2,<2 -sphinx-rtd-theme>=0.1,<1.0 -sphinxcontrib-httpdomain>=1.2,<2 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e69de29..0000000 diff --git a/setup.py b/setup.py index 6f8ace2..93fe0ca 100755 --- a/setup.py +++ b/setup.py @@ -7,23 +7,9 @@ import setuptools import sprockets.logging -def read_requirements_file(req_name): - requirements = [] - try: - with codecs.open(req_name, encoding='utf-8') as req_file: - for req_line in req_file: - if '#' in req_line: - req_line = req_line[0:req_line.find('#')].strip() - if req_line: - requirements.append(req_line.strip()) - except IOError: - pass - return requirements - - -install_requires = read_requirements_file('requirements.txt') -setup_requires = read_requirements_file('setup-requirements.txt') -tests_require = read_requirements_file('test-requirements.txt') +install_requires = [] +setup_requires = [] +tests_require = ['nose>=1.3,<2'] if sys.version_info < (3, 0): tests_require.append('mock') diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 378a123..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -coverage>=3.7,<4 -nose>=1.3,<2 diff --git a/tox.ini b/tox.ini index 3f3471d..5b9e34b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] envlist = py27,py34 indexserver = - default = https://pypi.python.org/simple + default = https://pypi.python.org/simple toxworkdir = build/tox +skip_missing_interpreters = true [testenv] commands = nosetests [] -deps = -rtest-requirements.txt +deps = nose