From e488ce376d7bb92d3d9bb1c6d2408f1ec2a2d5f4 Mon Sep 17 00:00:00 2001 From: Dominic Date: Thu, 9 Sep 2021 19:56:48 +0100 Subject: [PATCH 1/3] Update setup.py Import README.md --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bf24ccce0..2425c3f19 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,8 @@ with open('test-requirements.txt') as reqs_file: test_requirements = reqs_file.read().splitlines() +with open('README.md') as rm_file: + long_description = rm_file.read() class build_py(_build_py): @@ -82,7 +84,7 @@ def build_py_modules(basedir: str, excludes: Sequence = ()) -> Sequence: name="GitPython", cmdclass={'build_py': build_py, 'sdist': sdist}, version=VERSION, - description="Python Git Library", + description="""GitPython is a python library used to interact with Git repositories""", author="Sebastian Thiel, Michael Trier", author_email="byronimo@gmail.com, mtrier@gmail.com", license="BSD", @@ -96,6 +98,7 @@ def build_py_modules(basedir: str, excludes: Sequence = ()) -> Sequence: tests_require=requirements + test_requirements, zip_safe=False, long_description="""GitPython is a python library used to interact with Git repositories""", + long_description_content_type="text/markdown", classifiers=[ # Picked from # http://pypi.python.org/pypi?:action=list_classifiers From 58820a5e1481e3d3907eda24422f635893342047 Mon Sep 17 00:00:00 2001 From: Dominic Date: Thu, 9 Sep 2021 20:01:57 +0100 Subject: [PATCH 2/3] Update setup.py format path -> os.path in prep for pathlib --- setup.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 2425c3f19..11696e758 100755 --- a/setup.py +++ b/setup.py @@ -5,9 +5,8 @@ import fnmatch import os import sys -from os import path -with open(path.join(path.dirname(__file__), 'VERSION')) as v: +with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v: VERSION = v.readline().strip() with open('requirements.txt') as reqs_file: @@ -22,8 +21,8 @@ class build_py(_build_py): def run(self) -> None: - init = path.join(self.build_lib, 'git', '__init__.py') - if path.exists(init): + init = os.path.join(self.build_lib, 'git', '__init__.py') + if os.path.exists(init): os.unlink(init) _build_py.run(self) _stamp_version(init) @@ -34,10 +33,10 @@ class sdist(_sdist): def make_release_tree(self, base_dir: str, files: Sequence) -> None: _sdist.make_release_tree(self, base_dir, files) - orig = path.join('git', '__init__.py') - assert path.exists(orig), orig - dest = path.join(base_dir, orig) - if hasattr(os, 'link') and path.exists(dest): + orig = os.path.join('git', '__init__.py') + assert os.path.exists(orig), orig + dest = os.path.join(base_dir, orig) + if hasattr(os, 'link') and os.path.exists(dest): os.unlink(dest) self.copy_file(orig, dest) _stamp_version(dest) From bc2edef856254dc52109260ad44c4f5f4a208f9b Mon Sep 17 00:00:00 2001 From: Dominic Date: Thu, 9 Sep 2021 20:04:38 +0100 Subject: [PATCH 3/3] Update setup.py flake8 fix --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 11696e758..cd1007d74 100755 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ with open('README.md') as rm_file: long_description = rm_file.read() + class build_py(_build_py): def run(self) -> None: