avoid installing Sphinx and its dependencies on travis-ci
This commit is contained in:
11
Makefile
11
Makefile
@@ -11,6 +11,7 @@ BUILD_DIRS = bin build include lib lib64 man share
|
||||
GEVENT_VERSION ?= 1.0b4
|
||||
PYTHON_EXE = $(shell [ -f $(PYTHON) ] && echo $(PYTHON) || echo python)
|
||||
PYPY = $(shell $(PYTHON_EXE) -c "import sys; print(getattr(sys, 'pypy_version_info', False) and 'yes' or 'no')")
|
||||
TRAVIS ?= false
|
||||
TRAVIS_PYTHON_VERSION ?= $(shell $(PYTHON_EXE) -c "import sys; print('.'.join([str(s) for s in sys.version_info][:2]))")
|
||||
|
||||
ZOOKEEPER = $(BIN)/zookeeper
|
||||
@@ -34,12 +35,14 @@ $(PYTHON):
|
||||
rm distribute-0.6.*.tar.gz
|
||||
|
||||
build: $(PYTHON)
|
||||
ifeq ($(GEVENT_SUPPORTED),no)
|
||||
$(INSTALL) -U -r requirements3.txt
|
||||
else
|
||||
$(INSTALL) -U -r requirements.txt
|
||||
ifeq ($(GEVENT_SUPPORTED),yes)
|
||||
$(INSTALL) -U -r requirements_gevent.txt
|
||||
$(INSTALL) -f https://code.google.com/p/gevent/downloads/list?can=1 gevent==$(GEVENT_VERSION)
|
||||
endif
|
||||
ifneq ($(TRAVIS), true)
|
||||
$(INSTALL) -U -r requirements_sphinx.txt
|
||||
endif
|
||||
$(INSTALL) -U -r requirements.txt
|
||||
$(PYTHON) setup.py develop
|
||||
$(INSTALL) kazoo[test]
|
||||
|
||||
|
@@ -1,11 +1,5 @@
|
||||
Jinja2==2.6
|
||||
Pygments==1.5
|
||||
Sphinx==1.1.3
|
||||
coverage==3.5.2
|
||||
distribute==0.6.28
|
||||
docutils==0.9.1
|
||||
greenlet==0.4.0
|
||||
mock==1.0b1
|
||||
nose==1.2.1
|
||||
repoze.sphinx.autointerface==0.7.0
|
||||
zope.interface==4.0.1
|
||||
|
@@ -1,6 +0,0 @@
|
||||
coverage==3.5.2
|
||||
distribute==0.6.28
|
||||
docutils==0.9.1
|
||||
mock==1.0b1
|
||||
nose==1.2.1
|
||||
zope.interface==4.0.1
|
1
requirements_gevent.txt
Normal file
1
requirements_gevent.txt
Normal file
@@ -0,0 +1 @@
|
||||
greenlet==0.4.0
|
5
requirements_sphinx.txt
Normal file
5
requirements_sphinx.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Jinja2==2.6
|
||||
Pygments==1.5
|
||||
Sphinx==1.1.3
|
||||
docutils==0.9.1
|
||||
repoze.sphinx.autointerface==0.7.0
|
5
setup.py
5
setup.py
@@ -20,7 +20,6 @@ install_requires = [
|
||||
|
||||
tests_require = install_requires + [
|
||||
'coverage',
|
||||
'docutils',
|
||||
'mock',
|
||||
'nose',
|
||||
]
|
||||
@@ -28,8 +27,6 @@ tests_require = install_requires + [
|
||||
if not (PYTHON3 or PYPY):
|
||||
tests_require += [
|
||||
'gevent',
|
||||
'repoze.sphinx.autointerface',
|
||||
'Sphinx',
|
||||
]
|
||||
|
||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
@@ -76,6 +73,4 @@ setup(
|
||||
extras_require={
|
||||
'test': tests_require,
|
||||
},
|
||||
entry_points="""
|
||||
"""
|
||||
)
|
||||
|
Reference in New Issue
Block a user