-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from smoke-trees/dev
Version update
- Loading branch information
Showing
18 changed files
with
517 additions
and
121 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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ == '0.0.5' | ||
__version__ == '0.0.9' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
[metadata] | ||
name = forest-utils | ||
# Version needs regex in setup.py. | ||
url = https://github.com/smoke-trees/forest-utils | ||
project_urls = | ||
Documentation = https://github.com/smoke-trees/forest-utils | ||
Code = https://github.com/smoke-trees/forest-utils | ||
Issue tracker = https://github.com/smoke-trees/forest-utils/issues | ||
maintainer = Ubaid Usmani | ||
maintainer_email = usmaniubaid@gmail.com | ||
description = Package for Smoketrees model zoo | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU General Public License (GPL) | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Topic :: Scientific/Engineering :: Artificial Intelligence | ||
Topic :: Scientific/Engineering :: Image Recognition | ||
[options] | ||
packages = find: | ||
package_dir = = src | ||
include_package_data = true | ||
python_requires = >= 3.6 | ||
# Dependencies are in setup.py for GitHub's dependency graph. | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
forest = forest_utils.cli:main | ||
|
||
[flake8] | ||
# B = bugbear | ||
# E = pycodestyle errors | ||
# F = flake8 pyflakes | ||
# W = pycodestyle warnings | ||
# B9 = bugbear opinions | ||
# ISC = implicit-str-concat | ||
select = B, E, F, W, B9, ISC | ||
ignore = | ||
# slice notation whitespace, invalid | ||
E203 | ||
# import at top, too many circular import fixes | ||
E402 | ||
# line length, handled by bugbear B950 | ||
E501 | ||
# bare except, handled by bugbear B001 | ||
E722 | ||
# bin op line break, invalid | ||
W503 | ||
# up to 88 allowed by bugbear B950 | ||
max-line-length = 80 | ||
per-file-ignores = | ||
# __init__ module exports names | ||
src/flask/__init__.py: F401 |
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
File renamed without changes.
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,37 @@ | ||
import os | ||
import click | ||
import pkg_resources | ||
from pathlib import Path | ||
|
||
from utils import create | ||
from utils import pull | ||
|
||
def get_version(): | ||
with open(os.path.join('..','..', 'VERSION.txt')) as file: | ||
return file.read().split("==")[-1].strip() | ||
|
||
INFORMATION = { | ||
'name': "forest", | ||
'version': get_version(), | ||
} | ||
|
||
@click.group(help='A CLI Tool for uploading model to model zoo') | ||
@click.version_option(INFORMATION['version']) | ||
@click.pass_context | ||
def main(ctx): | ||
pass | ||
|
||
@main.command(help='Initialize zoo repository') | ||
@click.pass_context | ||
def init(ctx): | ||
create.create_dir_tree() | ||
|
||
|
||
@main.command(help='Pull models from model zoo') | ||
@click.pass_context | ||
@click.option('--all', '-a', is_flag=True, help="Pull all the files from the github origin") | ||
def pull(ctx, docker): | ||
pull.get_files() | ||
|
||
if __name__ == "__main__": | ||
main() |
0
forest_utils/datasets.py → src/forest_utils/datasets.py
100755 → 100644
File renamed without changes.
Oops, something went wrong.