Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

Commit dece371

Browse files
committed
update setup.py for long_description
1 parent 31e99ae commit dece371

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/usr/bin/env python
22

3-
from os.path import dirname as _dirn
4-
from os.path import join as _join
5-
from os.path import realpath as _realp
3+
import os
64
from setuptools import setup
75
import subprocess
86
import sys
97

108

11-
with open(_join(_dirn(_realp(__file__)), 'tox_pyenv.py'), 'r') as abt:
9+
here = os.path.dirname(os.path.realpath(__file__))
10+
with open(os.path.join(here, 'tox_pyenv.py'), 'r') as abt:
1211
marker, about, abt = '# __about__', {}, abt.read()
1312
assert abt.count('# __about__') == 2
1413
abt = abt[abt.index(marker):abt.rindex(marker)]
@@ -27,6 +26,11 @@
2726
about['__keywords__'].append(current_commit[:8])
2827

2928

29+
# pandoc --from=markdown_github --to=rst README.md --output=README.rst
30+
with open(os.path.join(here, 'README.rst')) as rdme:
31+
LONG_DESCRIPTION = rdme.read()
32+
33+
3034
ENTRY_POINTS = {
3135
'tox': [
3236
'pyenv = tox_pyenv',
@@ -66,6 +70,7 @@
6670
'install_requires': INSTALL_REQUIRES,
6771
'keywords': ' '.join(about['__keywords__']),
6872
'license': about['__license__'],
73+
'long_description': LONG_DESCRIPTION,
6974
'name': about['__title__'],
7075
'py_modules': ['tox_pyenv'],
7176
'url': about['__url__'],

0 commit comments

Comments
 (0)