mirror of
https://github.com/sprockets/sprockets.logging.git
synced 2024-12-28 11:24:10 +00:00
Remove requirements files.
This commit is contained in:
parent
5c334181d1
commit
4bdd9550a9
7 changed files with 7 additions and 30 deletions
|
@ -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:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
include LICENSE
|
||||
include README.rst
|
||||
include HISTORY.rst
|
||||
include *requirements.txt
|
||||
include tests.py
|
||||
graft docs
|
||||
global-exclude __pycache__
|
||||
|
|
|
@ -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
|
20
setup.py
20
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')
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
coverage>=3.7,<4
|
||||
nose>=1.3,<2
|
5
tox.ini
5
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
|
||||
|
|
Loading…
Reference in a new issue