From bf48eb6bcad1e6730e9d98249b416088fe4396cb Mon Sep 17 00:00:00 2001 From: Catarina Carvalho Date: Tue, 1 Jun 2021 10:20:28 +0100 Subject: [PATCH 1/2] Add setup.py file --- setup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3a0a46b --- /dev/null +++ b/setup.py @@ -0,0 +1,15 @@ +from setuptools import setup + +setup( + name='Depth2HHA-python', + version='0', + packages=[''], + url='https://github.com/skimit/Depth2HHA-python', + license='MIT License ', + author='Chen XiaoKang ', + author_email='pkucxk@pku.edu.cn', + description='This repo implements HHA-encoding algorithm in python3. HHA image is an encoding ' + 'algorithm to make better use of depth images, which was proposed by s-gupta in ' + 'this paper: Learning Rich Features from RGB-D Images for Object Detection and ' + 'Segmentation.' + ) From ea8bb5ddaf427e68e71fbcd2daaece660fc8f2f9 Mon Sep 17 00:00:00 2001 From: Catarina Carvalho Date: Tue, 1 Jun 2021 13:49:44 +0100 Subject: [PATCH 2/2] Edit setup and add requirements.txt --- .gitignore | 22 ++++++++++++++++++++++ requirements.txt | 1 + setup.py | 18 +++++++++++++++--- utils/__init__.py | 0 4 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 requirements.txt create mode 100644 utils/__init__.py diff --git a/.gitignore b/.gitignore index e0e8c99..04f3aec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,24 @@ __pycache__ .DS_Store + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + + +# PyCharm +.idea/* diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3e4be26 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Depth2HHA-python diff --git a/setup.py b/setup.py index 3a0a46b..7ec04cb 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,19 @@ -from setuptools import setup +from pathlib import Path +from setuptools import find_packages, setup + +BASE_PATH = Path(__file__).absolute().parent + +requirementPath = BASE_PATH / 'requirements.txt' +install_requires = [] + +if requirementPath.is_file(): + with open(requirementPath) as f: + install_requires = f.read().splitlines() + setup( name='Depth2HHA-python', version='0', - packages=[''], url='https://github.com/skimit/Depth2HHA-python', license='MIT License ', author='Chen XiaoKang ', @@ -11,5 +21,7 @@ description='This repo implements HHA-encoding algorithm in python3. HHA image is an encoding ' 'algorithm to make better use of depth images, which was proposed by s-gupta in ' 'this paper: Learning Rich Features from RGB-D Images for Object Detection and ' - 'Segmentation.' + 'Segmentation.', + packages=find_packages(), + install_requires=install_requires, ) diff --git a/utils/__init__.py b/utils/__init__.py new file mode 100644 index 0000000..e69de29