Add tox.ini
Pyflakes builder was switched to using tox but this repo doesn't have a tox.ini so all builds failed. Also fixes setup.py for when we don't need Sphinx Change-Id: I49d425d001cde159c354be53b7d57eebdb4446df
This commit is contained in:
parent
69b5220cad
commit
822eeef6d7
20
setup.py
20
setup.py
@ -1,16 +1,20 @@
|
||||
import datetime
|
||||
from setuptools import setup
|
||||
from sphinx.setup_command import BuildDoc
|
||||
|
||||
ci_cmdclass={}
|
||||
|
||||
class local_BuildDoc(BuildDoc):
|
||||
def run(self):
|
||||
for builder in ['html', 'man']:
|
||||
self.builder = builder
|
||||
self.finalize_options()
|
||||
BuildDoc.run(self)
|
||||
ci_cmdclass['build_sphinx'] = local_BuildDoc
|
||||
try:
|
||||
from sphinx.setup_command import BuildDoc
|
||||
|
||||
class local_BuildDoc(BuildDoc):
|
||||
def run(self):
|
||||
for builder in ['html', 'man']:
|
||||
self.builder = builder
|
||||
self.finalize_options()
|
||||
BuildDoc.run(self)
|
||||
ci_cmdclass['build_sphinx'] = local_BuildDoc
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
setup(name='nova',
|
||||
version="%d.%02d" % (datetime.datetime.now().year, datetime.datetime.now().month),
|
||||
|
Loading…
x
Reference in New Issue
Block a user