We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 417653a commit 987fd1dCopy full SHA for 987fd1d
setup.py
@@ -1,7 +1,7 @@
1
import ast
2
-import os
3
import codecs
4
+from os.path import join, dirname
5
from setuptools import setup, find_packages
6
7
@@ -22,9 +22,9 @@
22
'Topic :: Text Processing :: Markup :: HTML'
23
]
24
25
-current_dir = os.path.dirname(__file__)
26
-with codecs.open(os.path.join(current_dir, 'README.rst'), 'r', 'utf8') as readme_file:
27
- with codecs.open(os.path.join(current_dir, 'CHANGES.rst'), 'r', 'utf8') as changes_file:
+here = dirname(__file__)
+with codecs.open(join(here, 'README.rst'), 'r', 'utf8') as readme_file:
+ with codecs.open(join(here, 'CHANGES.rst'), 'r', 'utf8') as changes_file:
28
long_description = readme_file.read() + '\n' + changes_file.read()
29
30
version = None
0 commit comments