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
|
- pypy
|
||||||
- 3.4
|
- 3.4
|
||||||
before_install:
|
before_install:
|
||||||
- pip install codecov
|
- pip install nose coverage codecov
|
||||||
install:
|
install:
|
||||||
- pip install -r test-requirements.txt
|
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
script: nosetests
|
script: nosetests
|
||||||
after_success:
|
after_success:
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include README.rst
|
include README.rst
|
||||||
include HISTORY.rst
|
include HISTORY.rst
|
||||||
include *requirements.txt
|
|
||||||
include tests.py
|
include tests.py
|
||||||
graft docs
|
graft docs
|
||||||
global-exclude __pycache__
|
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
|
import sprockets.logging
|
||||||
|
|
||||||
|
|
||||||
def read_requirements_file(req_name):
|
install_requires = []
|
||||||
requirements = []
|
setup_requires = []
|
||||||
try:
|
tests_require = ['nose>=1.3,<2']
|
||||||
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')
|
|
||||||
|
|
||||||
if sys.version_info < (3, 0):
|
if sys.version_info < (3, 0):
|
||||||
tests_require.append('mock')
|
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]
|
[tox]
|
||||||
envlist = py27,py34
|
envlist = py27,py34
|
||||||
indexserver =
|
indexserver =
|
||||||
default = https://pypi.python.org/simple
|
default = https://pypi.python.org/simple
|
||||||
toxworkdir = build/tox
|
toxworkdir = build/tox
|
||||||
|
skip_missing_interpreters = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = nosetests []
|
commands = nosetests []
|
||||||
deps = -rtest-requirements.txt
|
deps = nose
|
||||||
|
|
Loading…
Reference in a new issue