Skip to content

Commit b57547c

Browse files
committed
fix readme pypi display
1 parent 44e2fdf commit b57547c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1+
import io
12
from setuptools import setup
3+
from os import path
4+
5+
this_directory = path.abspath(path.dirname(__file__))
6+
with io.open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
7+
long_description = f.read()
28

39
setup(
410
name='django-markwhat',
511
version=".".join(map(str, __import__('django_markwhat').__version__)),
612
packages=['django_markwhat', 'django_markwhat.templatetags'],
713
url='http://pypi.python.org/pypi/django-markwhat',
8-
license=open('LICENSE').read(),
14+
license="BSD-3-Clause",
915
author='Alireza Savand',
1016
author_email='[email protected]',
1117
install_requires=['Django', ],
1218
description="A collection of template filters that implement " +
1319
"common markup languages.",
14-
long_description=open('README.rst').read(),
20+
long_description=long_description,
1521
keywords=[
1622
'django',
1723
'markdown',

0 commit comments

Comments
 (0)