Skip to content

Commit 84b4477

Browse files
committed
++multitree img for doc
1 parent e5c4f51 commit 84b4477

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

docs/img/3_sqlalchemy_mptt_multitree.svg

Lines changed: 4 additions & 0 deletions
Loading

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
from sqlalchemy_mptt import __version__
22
from setuptools import setup
33

4+
try:
5+
from pypandoc import convert
6+
read_md = lambda f: convert(f, 'rst')
7+
except ImportError:
8+
print("warning: pypandoc module not found, could not convert Markdown to RST")
9+
read_md = lambda f: open(f, 'r').read()
410

511
setup(
612
name='sqlalchemy_mptt',
@@ -15,7 +21,7 @@
1521
test_suite="nose.collector",
1622
license="GPL",
1723
description='SQLAlchemy MPTT mixins (Nested Sets)',
18-
long_description=open('README.md').read(),
24+
long_description=read_md('README.md'),
1925
install_requires=[
2026
"sqlalchemy",
2127
],

sqlalchemy_mptt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
# Distributed under terms of the MIT license.
88
from mixins import BaseNestedSets
99

10-
__version__ = "0.0.1a"
10+
__version__ = "0.0.1b"
1111
__mixins__ = [BaseNestedSets]

0 commit comments

Comments
 (0)