Skip to content

Commit 04ed6ca

Browse files
committed
Remove codecs import in setup.py
1 parent 217f588 commit 04ed6ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# -*- coding: utf-8 -*-
22
#!/usr/bin/env python
33

4-
import codecs
5-
64
try:
75
from setuptools import setup
86
except ImportError:
97
from distutils.core import setup
108

119
__version__ = "1.0.1"
1210

11+
12+
def get_long_description():
13+
return open("README.md", "r", encoding="utf8").read()
14+
15+
1316
setup(
1417
name="webstack-django-sorting",
1518
version=__version__,
1619
description="Easy sorting of tables with Django",
17-
long_description=codecs.open("README.md", "r", "utf-8").read(),
20+
long_description=get_long_description(),
1821
author="Stéphane Raimbault",
1922
author_email="[email protected]",
2023
url="http://github.com/webstack/webstack-django-sorting/",

0 commit comments

Comments
 (0)