Closed userzimmermann closed 7 years ago
One small complication is that sphinx-argparse
doesnt declare its minimum requirement for Sphinx. I've created a separate issue about that (https://github.com/ribozz/sphinx-argparse/issues/67) with a bit of background research.
My digging shows that this extension requires at least Sphinx 1.0+ , so this patch is :+1:
docutils.parsers.rst.Directive
class first appeared in docutils SVN r4667 , which is docutils 0.5 , as 0.4 used functions.
As docutils 0.5 was already a minimum requirement, importing a docutils 0.5 name cant hurt.
Thanks @userzimmermann!
@dpryan79 Could you quickly make a new release? Please :)
@userzimmermann Sure, coming right up!
This is now live on pypi (version 0.2.1). I'll try to get it in conda-forge today.
@dpryan79 Thanks :)
Instead of
sphinx.util.compat
, which is deprecated, causes problems with rc releases ofdocutils
, and also just importsDirective
fromdocutils.parsers.rst
Closes https://github.com/ribozz/sphinx-argparse/issues/65