mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Make the markdown package requirement explicit.
Similar changes had been done on this fix (Fixes #1234). When using markdown documents currently the error messages doesn't say the actual error, which forces the developer to debug the pelican code to spot the bug. This fix will explicitly enforce the required dependency.
This commit is contained in:
parent
9e526a825e
commit
35c0909e8b
2 changed files with 2 additions and 5 deletions
|
|
@ -21,10 +21,7 @@ from pelican.contents import Author, Category, Page, Tag
|
|||
from pelican.utils import SafeDatetime, escape_html, get_date, pelican_open, \
|
||||
posixize_path
|
||||
|
||||
try:
|
||||
from markdown import Markdown
|
||||
except ImportError:
|
||||
Markdown = False # NOQA
|
||||
from markdown import Markdown # NOQA
|
||||
|
||||
# Metadata processors have no way to discard an unwanted value, so we have
|
||||
# them return this value instead to signal that it should be discarded later.
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -7,7 +7,7 @@ from os.path import join, relpath
|
|||
from setuptools import setup
|
||||
|
||||
requires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',
|
||||
'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4',
|
||||
'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4', 'markdown',
|
||||
'python-dateutil']
|
||||
|
||||
entry_points = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue