Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Import README.md into setup.py#1337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Yobmod merged 3 commits intogitpython-developers:mainfromYobmod:main
Sep 9, 2021
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletionssetup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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:
Expand All@@ -16,12 +15,15 @@
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):

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')
ifos.path.exists(init):
os.unlink(init)
_build_py.run(self)
_stamp_version(init)
Expand All@@ -32,10 +34,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')
assertos.path.exists(orig), orig
dest =os.path.join(base_dir, orig)
if hasattr(os, 'link') andos.path.exists(dest):
os.unlink(dest)
self.copy_file(orig, dest)
_stamp_version(dest)
Expand DownExpand Up@@ -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="PythonGitLibrary",
description="""GitPython is a python library used to interact withGitrepositories""",
author="Sebastian Thiel, Michael Trier",
author_email="byronimo@gmail.com, mtrier@gmail.com",
license="BSD",
Expand All@@ -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
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp