Skip to content

Commit

Permalink
Merge a2de843 into 3cfa02a
Browse files Browse the repository at this point in the history
  • Loading branch information
msabramo committed Jan 30, 2015
2 parents 3cfa02a + a2de843 commit 2dfc819
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
Expand Down
6 changes: 5 additions & 1 deletion markdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
__all__ = ['Markdown', 'markdown', 'markdownFromFile']

logger = logging.getLogger('MARKDOWN')
logging.captureWarnings(True)
try:
logging.captureWarnings(True)
except AttributeError:
# E.g.: Python 2.6 doesn't have logging.captureWarnings
pass


class Markdown(object):
Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
import imp


install_requires = []

try:
import importlib # noqa
except ImportError:
# E.g.: Python 2.6
install_requires.append('importlib')


def get_version():
" Get version & version_info without importing markdown.__init__ "
path = os.path.join(os.path.dirname(__file__), 'markdown')
Expand Down Expand Up @@ -243,6 +252,7 @@ def has_docs(self):
maintainer='Waylan Limberg',
maintainer_email='waylan.limberg [at] icloud.com',
license='BSD License',
install_requires=install_requires,
packages=['markdown', 'markdown.extensions'],
scripts=['bin/%s' % SCRIPT_NAME],
cmdclass={
Expand All @@ -256,6 +266,7 @@ def has_docs(self):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py32, py33, py34, pypy, flake8
envlist = py26, py27, py32, py33, py34, pypy, flake8

[testenv]
downloadcache = {toxworkdir}/cache
Expand All @@ -12,4 +12,4 @@ deps = flake8
commands = flake8 {toxinidir}/markdown {toxinidir}/tests {toxinidir}/setup.py {toxinidir}/run-tests.py

[flake8]
max-line-length = 119
max-line-length = 119

0 comments on commit 2dfc819

Please sign in to comment.