Skip to content

Commit

Permalink
fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnoodles committed Mar 2, 2023
1 parent eae2ac2 commit d0d32d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# -*- coding: utf-8 -*-
import os
import six
from setuptools import find_packages, setup

with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
if six.PY2:
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
else:
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf8') as readme:
README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
Expand All @@ -17,6 +22,7 @@
long_description=README,
author='treeoph',
author_email="[email protected]",
long_description_content_type='text/markdown',
data_files=[
('django2go/templates', [])],
classifiers=[
Expand Down

0 comments on commit d0d32d9

Please sign in to comment.