55import re
66import sys
77
8+ from pathlib import Path
89from 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
103104setup (
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" ,
109111110112 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