-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from serengil/feat-task-1002-package-version
package version added into the interface
- Loading branch information
Showing
6 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"version": "0.0.15" | ||
} |
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 @@ | ||
__version__ = "0.0.15" |
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,3 +1,4 @@ | ||
import json | ||
import setuptools | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
|
@@ -6,13 +7,17 @@ | |
with open("requirements.txt", "r", encoding="utf-8") as f: | ||
requirements = f.read().split("\n") | ||
|
||
with open("package_info.json", "r", encoding="utf-8") as f: | ||
package_info = json.load(f) | ||
|
||
|
||
setuptools.setup( | ||
name="retina-face", # pip install retina-face | ||
version="0.0.14", | ||
version=package_info["version"], | ||
author="Sefik Ilkin Serengil", | ||
author_email="[email protected]", | ||
description="RetinaFace: Deep Face Detection Framework in TensorFlow for Python", | ||
data_files=[("", ["README.md", "requirements.txt"])], | ||
data_files=[("", ["README.md", "requirements.txt", "package_info.json"])], | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/serengil/retinaface", | ||
|
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,13 @@ | ||
import json | ||
from retinaface import RetinaFace | ||
from retinaface.commons.logger import Logger | ||
|
||
logger = Logger("tests/test_package.py") | ||
|
||
|
||
def test_version(): | ||
with open("./package_info.json", "r", encoding="utf-8") as f: | ||
package_info = json.load(f) | ||
|
||
assert RetinaFace.__version__ == package_info["version"] | ||
logger.info("✅ versions are matching in both package_info.json and retinaface/__init__.py") |