-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: Refactor logger and add package info. (#332)
* Add package info. * fix raise error * replace logger * add unit test * add unit test * update test
- Loading branch information
Showing
10 changed files
with
217 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import time | ||
|
||
_this_year = time.strftime("%Y") | ||
__version__ = "0.4.2" | ||
__author__ = "RangiLyu" | ||
__author_email__ = "[email protected]" | ||
__license__ = "Apache-2.0" | ||
__copyright__ = f"Copyright (c) 2020-{_this_year}, {__author__}." | ||
__homepage__ = "https://github.com/RangiLyu/nanodet" | ||
|
||
__docs__ = ( | ||
"NanoDet: Deep learning object detection toolbox for super fast and " | ||
"lightweight anchor-free object detection models." | ||
) | ||
|
||
__all__ = [ | ||
"__author__", | ||
"__author_email__", | ||
"__copyright__", | ||
"__docs__", | ||
"__homepage__", | ||
"__license__", | ||
"__version__", | ||
] |
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 @@ | ||
"""package info.""" | ||
|
||
import os | ||
|
||
from nanodet.__about__ import * # noqa: F401 F403 | ||
|
||
_PACKAGE_ROOT = os.path.dirname(__file__) | ||
_PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT) |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/usr/bin/env python | ||
from setuptools import find_packages, setup | ||
|
||
__version__ = "0.4.0" | ||
from nanodet import __author__, __author_email__, __docs__, __homepage__, __version__ | ||
|
||
if __name__ == "__main__": | ||
setup( | ||
name="nanodet", | ||
version=__version__, | ||
description="Deep Learning Object Detection Toolbox", | ||
url="https://github.com/RangiLyu/nanodet", | ||
author="RangiLyu", | ||
author_email="[email protected]", | ||
description=__docs__, | ||
url=__homepage__, | ||
author=__author__, | ||
author_email=__author_email__, | ||
keywords="deep learning", | ||
packages=find_packages(exclude=("config", "tools", "demo")), | ||
classifiers=[ | ||
|
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.