Skip to content

Commit a6d641b

Browse files
committed
automatically convert readme from markdown to rst, other tweaks
1 parent 2ab2d6e commit a6d641b

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ timeout: 30
4242
4343
Votes are made by using reactions on the top level comment of the Pull Request.
4444
45-
| Reaction | Vote |
46-
|------------|---------|
47-
| :+1: | Yes |
48-
| :-1: | No |
49-
| :confused: | Abstain |
45+
| Reaction | Vote |
46+
|----------|---------|
47+
| ![+1](https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png "+1") | Yes |
48+
| ![-1](https://assets-cdn.github.com/images/icons/emoji/unicode/1f44e.png "+1") | No |
49+
| ![confused](https://assets-cdn.github.com/images/icons/emoji/unicode/1f615.png "confused") | Abstain |
50+
5051
5152
5253
## Commands

setup.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
here = path.abspath(path.dirname(__file__))
88

9-
# Get the long description from the README file
10-
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
11-
long_description = f.read()
9+
try:
10+
import pypandoc
11+
long_description = pypandoc.convert('README.md', 'rst')
12+
except(IOError, ImportError):
13+
long_description = open('README.md').read()
14+
1215

1316

1417
setup(
@@ -34,23 +37,24 @@
3437

3538
'Intended Audience :: Developers',
3639
'Intended Audience :: System Administrators',
37-
'Topic :: Software Development :: Version Control'
40+
'Topic :: Software Development :: Version Control',
3841

3942
'Programming Language :: Python :: 3',
4043
'Environment :: Console',
4144
],
4245

4346
install_requires=[
4447
'click>=5.0,<6.0',
45-
'github3.py==0.9.6,<0.10',
48+
'github3.py>=0.9.6,<0.10',
4649
'PyYAML>=3.12,<3.13',
4750
'requests>=2.18.0,<2.19',
4851
],
4952

5053
extras_require={
5154
'dev': [
52-
'wheel',
53-
'twine'
55+
'pypandoc',
56+
'twine',
57+
'wheel'
5458
],
5559
},
5660

0 commit comments

Comments
 (0)