55import fnmatch
66import os
77import sys
8- from os import path
98
10- with open (path .join (path .dirname (__file__ ), 'VERSION' )) as v :
9+ with open (os . path .join (os . path .dirname (__file__ ), 'VERSION' )) as v :
1110 VERSION = v .readline ().strip ()
1211
1312with open ('requirements.txt' ) as reqs_file :
1615with open ('test-requirements.txt' ) as reqs_file :
1716 test_requirements = reqs_file .read ().splitlines ()
1817
18+ with open ('README.md' ) as rm_file :
19+ long_description = rm_file .read ()
20+
1921
2022class build_py (_build_py ):
2123
2224 def run (self ) -> None :
23- init = path .join (self .build_lib , 'git' , '__init__.py' )
24- if path .exists (init ):
25+ init = os . path .join (self .build_lib , 'git' , '__init__.py' )
26+ if os . path .exists (init ):
2527 os .unlink (init )
2628 _build_py .run (self )
2729 _stamp_version (init )
@@ -32,10 +34,10 @@ class sdist(_sdist):
3234
3335 def make_release_tree (self , base_dir : str , files : Sequence ) -> None :
3436 _sdist .make_release_tree (self , base_dir , files )
35- orig = path .join ('git' , '__init__.py' )
36- assert path .exists (orig ), orig
37- dest = path .join (base_dir , orig )
38- if hasattr (os , 'link' ) and path .exists (dest ):
37+ orig = os . path .join ('git' , '__init__.py' )
38+ assert os . path .exists (orig ), orig
39+ dest = os . path .join (base_dir , orig )
40+ if hasattr (os , 'link' ) and os . path .exists (dest ):
3941 os .unlink (dest )
4042 self .copy_file (orig , dest )
4143 _stamp_version (dest )
@@ -82,7 +84,7 @@ def build_py_modules(basedir: str, excludes: Sequence = ()) -> Sequence:
8284 name = "GitPython" ,
8385 cmdclass = {'build_py' : build_py , 'sdist' : sdist },
8486 version = VERSION ,
85- description = "Python Git Library " ,
87+ description = """GitPython is a python library used to interact with Git repositories"" " ,
8688 author = "Sebastian Thiel, Michael Trier" ,
8789 author_email = "byronimo@gmail.com, mtrier@gmail.com" ,
8890 license = "BSD" ,
@@ -96,6 +98,7 @@ def build_py_modules(basedir: str, excludes: Sequence = ()) -> Sequence:
9698 tests_require = requirements + test_requirements ,
9799 zip_safe = False ,
98100 long_description = """GitPython is a python library used to interact with Git repositories""" ,
101+ long_description_content_type = "text/markdown" ,
99102 classifiers = [
100103 # Picked from
101104 # http://pypi.python.org/pypi?:action=list_classifiers
0 commit comments