Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed setup.py to use setuptools and wheel for setup - renamed package from stc to vhh_stc and changed imports accordingly - Extended README
- Loading branch information
Jakob Büro
committed
Sep 30, 2020
1 parent
22c5552
commit 0460735
Showing
12 changed files
with
37 additions
and
52 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
from stc.STC import STC | ||
from vhh_stc.STC import STC | ||
import numpy as np | ||
import os | ||
|
||
|
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,46 +1,31 @@ | ||
try: # for pip >= 10 | ||
from pip._internal.req import parse_requirements | ||
from pip._internal.download import PipSession | ||
except ImportError: # for pip <= 9.0.3 | ||
from pip.req import parse_requirements | ||
from pip.download import PipSession | ||
import logging | ||
import os | ||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
from setuptools import setup, find_packages | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
command = ""; | ||
try: | ||
install_reqs = parse_requirements("requirements.txt", session=PipSession()) | ||
except Exception: | ||
logging.warning('Fail load requirements file, so using default ones.') | ||
install_reqs = [] | ||
|
||
# prepare pip command to install dependencies | ||
tmp_str = ""; | ||
for requirement in install_reqs: | ||
tmp_str = tmp_str + " " + str(requirement.req) | ||
command = "pip install " + tmp_str + " " | ||
|
||
# execute dependendcies | ||
os.system(command) | ||
print("all dependencies installed!") | ||
# read requirements | ||
install_requires=[] | ||
with open("requirements.txt", "r") as f: | ||
reqs = f.readlines() | ||
for i in range(len(reqs)): | ||
req = reqs[i] | ||
if i < len(reqs)-1: | ||
req = req[:-1] | ||
if req[0] is not '#': | ||
install_requires.append(req) | ||
|
||
# install sbd package | ||
# install vhh_sbd package | ||
setup( | ||
name='vhh_stc', | ||
version='1.0.0', | ||
author="Daniel Helm", | ||
author_email="daniel.helm@tuwien.ac.at", | ||
description="Shot Type Classification Package", | ||
description="Shot Boundary Detection Package", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/dahe-cvl/vhh_stc", | ||
packages=["stc"] | ||
url="https://github.com/dahe-cvl/vhh_tc", | ||
packages=find_packages(), | ||
install_requires=install_requires | ||
) |
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,4 +1,4 @@ | ||
from stc.utils import * | ||
from vhh_stc.utils import * | ||
import yaml | ||
|
||
|
||
|
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
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
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
File renamed without changes.
File renamed without changes.