- switch to requirements.txt now that there are
authorEric Zavesky <ezavesky@research.att.com>
Sun, 19 Nov 2017 13:44:10 +0000 (07:44 -0600)
committerEric Zavesky <ezavesky@research.att.com>
Sun, 19 Nov 2017 13:44:10 +0000 (07:44 -0600)
no direct installation needs

docs/face-privacy-filter.md
requirements.txt [new file with mode: 0644]
setup.cfg [deleted file]
setup.py [deleted file]

index 18a3490..aa50aa1 100644 (file)
@@ -10,6 +10,20 @@ subsequent image processing.  This module does not support training
 at this time and instead uses a pre-trained face cascade, which is
 included (from OpenCV) in this module.
 
+### Package dependencies
+Package dependencies for the core code and testing have been flattened into a
+single file for convenience. Instead of installing this package into your 
+your local environment, execute the command below.
+
+```
+pip install -r requirments.txt
+```
+
+**Note:** If you are using an [anaconda-based environment](https://anaconda.org), 
+you may want to try 
+installing these packages [directly](https://docs.anaconda.com/anaconda-repository/user-guide/tasks/pkgs/download-install-pkg).
+to avoid mixing of `pip` and `conda` package stores. 
+
 ### Usage
 This package contains runable scripts for command-line evaluation,
 packaging of a model (both dump and posting), and simple web-test
diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..f351110
--- /dev/null
@@ -0,0 +1,13 @@
+# requirements for deployment AND testing
+
+# core deployment packages
+acumos
+numpy
+sklearn
+pandas
+opencv-python
+
+# testing packages
+# pytest
+# pexpect
+connexion
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644 (file)
index 6a53971..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-[aliases]
-test=pytest
-
diff --git a/setup.py b/setup.py
deleted file mode 100644 (file)
index 81c8e5e..0000000
--- a/setup.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-import os
-from setuptools import setup, find_packages
-
-# extract __version__ from version file. importing will lead to install failures
-setup_dir = os.path.dirname(__file__)
-with open(os.path.join(setup_dir, 'face_privacy_filter', '_version.py')) as file:
-    globals_dict = dict()
-    exec(file.read(), globals_dict)
-    __version__ = globals_dict['__version__']
-
-
-setup(
-    name=globals_dict['MODEL_NAME'],
-    version=__version__,
-    packages=find_packages(),
-    author="Eric Zavesky",
-    author_email="ezavesky@research.att.com",
-    description=("Face detection and privacy filtering models"),
-    long_description=("Face detection and privacy filtering models"),
-    license="Apache",
-    #package_data={globals_dict['MODEL_NAME']: ['data/*']},
-    setup_requires=['pytest-runner'],
-    entry_points="""
-    [console_scripts]
-    """,
-    # setup_requires=['pytest-runner'],
-    install_requires=['acumos',
-                      'numpy',
-                      'sklearn',
-                      'opencv-python',
-                      globals_dict['MODEL_NAME']],
-    tests_require=['pytest',
-                   'pexpect'],
-    include_package_data=True,
-)