-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix getting long description in setup.py * [pre-commit.ci] auto fixes from pre-commit.com hooks * Small fixes to the setup and pyproject * [pre-commit.ci] auto fixes from pre-commit.com hooks * Fixing format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0b7012c
commit 72b495e
Showing
56 changed files
with
376 additions
and
1,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tool.usort] | ||
|
||
first_party_detection = false | ||
|
||
[tool.black] | ||
|
||
line-length = 110 | ||
target-version = ["py36"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
Adopted from TorchVision, see: | ||
https://github.com/pytorch/vision/blob/master/setup.py | ||
""" | ||
import io | ||
import subprocess | ||
from pathlib import Path | ||
|
||
|
@@ -19,11 +20,7 @@ | |
sha = "Unknown" | ||
|
||
try: | ||
sha = ( | ||
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=PATH_ROOT) | ||
.decode("ascii") | ||
.strip() | ||
) | ||
sha = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=PATH_ROOT).decode("ascii").strip() | ||
except Exception: | ||
pass | ||
|
||
|
@@ -38,9 +35,13 @@ def write_version_file(): | |
f.write(" cuda = _check_cuda_version()\n") | ||
|
||
|
||
def load_requirements( | ||
path_dir=PATH_ROOT, file_name="requirements.txt", comment_char="#" | ||
): | ||
def get_long_description(): | ||
# Get the long description from the README file | ||
with io.open(str(PATH_ROOT / "README.md"), encoding="utf-8") as f: | ||
return f.read() | ||
|
||
|
||
def load_requirements(path_dir=PATH_ROOT, file_name="requirements.txt", comment_char="#"): | ||
with open(path_dir / file_name, "r", encoding="utf-8", errors="ignore") as file: | ||
lines = [ln.rstrip() for ln in file.readlines() if not ln.startswith("#")] | ||
reqs = [] | ||
|
@@ -59,16 +60,13 @@ def load_requirements( | |
|
||
write_version_file() | ||
|
||
# Get the long description from the README file | ||
long_description = (PATH_ROOT / "README.md").read_text(encoding="utf-8") | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=VERSION, | ||
description="Yet Another YOLOv5 and its Additional Runtime Stack", | ||
description="Yet another yolov5 and its runtime stack for specialized accelerators.", | ||
author="Zhiqiang Wang", | ||
author_email="[email protected]", | ||
long_description=long_description, | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/zhiqwang/yolov5-rt-stack", | ||
license="GPL-3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.