Skip to content

Commit 6ef4955

Browse files
committed
Correct reference to long_description in setup.py
1 parent d24e62b commit 6ef4955

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import re
66
import sys
77

8+
from pathlib import Path
89
from setuptools import find_packages, setup
910

1011

@@ -97,14 +98,15 @@ def is_requirement(line):
9798
os.system("git push --tags")
9899
sys.exit()
99100

100-
README = open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf8").read()
101-
CHANGELOG = open(os.path.join(os.path.dirname(__file__), "CHANGELOG.md"), encoding="utf8").read()
101+
this_directory = Path(__file__).parent
102+
README = (this_directory / "README.md").read_text()
102103

103104
setup(
104105
name="django-range-merge",
105106
version=VERSION,
106107
description="""Enables the range_merge Aggregate for Django on Postgres""",
107-
long_description=README + "\n\n" + CHANGELOG,
108+
long_description=README,
109+
long_description_content_type='text/markdown',
108110
author="Jack Linke",
109111
author_email="[email protected]",
110112
url="https://github.com/jacklinke/django-range-merge",
@@ -113,7 +115,6 @@ def is_requirement(line):
113115
exclude=["*tests"],
114116
),
115117
include_package_data=True,
116-
# install_requires=load_requirements('requirements-dev.txt'),
117118
python_requires=">=3.8",
118119
zip_safe=False,
119120
keywords="Postgres django range fields aggregate",

0 commit comments

Comments
 (0)