|
1 | 1 | #!/usr/bin/env python
|
2 | 2 |
|
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 |
6 | 4 | from setuptools import setup
|
7 | 5 | import subprocess
|
8 | 6 | import sys
|
9 | 7 |
|
10 | 8 |
|
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: |
12 | 11 | marker, about, abt = '# __about__', {}, abt.read()
|
13 | 12 | assert abt.count('# __about__') == 2
|
14 | 13 | abt = abt[abt.index(marker):abt.rindex(marker)]
|
|
27 | 26 | about['__keywords__'].append(current_commit[:8])
|
28 | 27 |
|
29 | 28 |
|
| 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 | + |
30 | 34 | ENTRY_POINTS = {
|
31 | 35 | 'tox': [
|
32 | 36 | 'pyenv = tox_pyenv',
|
|
66 | 70 | 'install_requires': INSTALL_REQUIRES,
|
67 | 71 | 'keywords': ' '.join(about['__keywords__']),
|
68 | 72 | 'license': about['__license__'],
|
| 73 | + 'long_description': LONG_DESCRIPTION, |
69 | 74 | 'name': about['__title__'],
|
70 | 75 | 'py_modules': ['tox_pyenv'],
|
71 | 76 | 'url': about['__url__'],
|
|
0 commit comments