Skip to content

Commit

Permalink
moved library code to SRC directory. updated setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shailesh1729 committed Nov 23, 2020
1 parent 0aba25a commit 5440e6d
Show file tree
Hide file tree
Showing 74 changed files with 44 additions and 10 deletions.
54 changes: 44 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
"""A setuptools based setup module.
"""
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from setuptools import setup, find_namespace_packages
# To use a consistent encoding
from codecs import open
from os import path

here = path.abspath(path.dirname(__file__))

def read(*names, **kwargs):
with io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
) as fh:
return fh.read()

# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
Expand All @@ -28,11 +42,11 @@
url='',

# Author details
author='Carnot Research',
author='Carnot Research Pvt. Ltd.',
author_email='[email protected]',

# Choose your license
license='Copyright Carnot Research Pvt. Ltd.',
license='Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0',

# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
Expand All @@ -45,19 +59,31 @@
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Computer Vision',

# License
'License :: OSI Approved :: Apache Software License',
# OS Support
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
],

project_urls={
'Issue Tracker': "https://github.com/carnotresearch/cr-vision/issues"
},
# What does your project relate to?
keywords='Computer Vision',

# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['cr.' + package for package in find_packages('cr')],

packages=find_namespace_packages('src', include=['cr.*']),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
python_requires=">=3.7",
# Alternatively, if you want to distribute just a my_module.py, uncomment
# this:
# py_modules=["my_module"],
Expand All @@ -66,9 +92,15 @@
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=[ "numpy", "scipy", "matplotlib",
"scikit-image", "opencv-contrib-python",
"imageio", "click", "sk-video", "rx"
install_requires=[ "numpy",
"scipy",
"matplotlib",
"scikit-image",
"opencv-contrib-python",
"imageio",
"click",
"sk-video",
"rx"
],

# List additional groups of dependencies here (e.g. development
Expand All @@ -79,6 +111,8 @@
'dev': [ ],
'test': [ "tox"],
},
include_package_data=True,
zip_safe=False,

# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5440e6d

Please sign in to comment.