Skip to content
Permalink
Browse files
Updated requirements packages for deployment
  • Loading branch information
mooshu1x2 committed Jun 9, 2016
1 parent d7089c4 commit 51c171ec61f814402fefa74fd1ae5178c4acd06e
Showing 3 changed files with 37 additions and 40 deletions.
@@ -16,28 +16,28 @@
del sys

# Initialize Flask instance
my_app = Flask (__name__)
app = Flask (__name__)
# app.jinja_env.autoescape = False

# Load Configurations
my_app.config.from_pyfile('config.cfg')
app.config.from_pyfile('config.cfg')

# Unpack Elasticsearch configuration and create elasticsearch connection
host = my_app.config ['ES_HOST']
port = my_app.config ['ES_PORT']
http_auth = my_app.config ['HTTP_AUTH']
use_ssl = my_app.config ['USE_SSL']
verify_certs = my_app.config ['VERIFY_CERTS']
ca_certs = my_app.config ['CA_CERTS']
client_cert = my_app.config ['CLIENT_CERT']
client_key = my_app.config ['CLIENT_KEY']

# Initialize Elasticsearch instance

es = connections.create_connection (hosts = [host], \
port = port, \
http_auth = http_auth, \
use_ssl = use_ssl, \
verify_certs = verify_certs,
ca_certs = ca_certs, \
client_cert = client_cert, \
client_key = client_key)
host = app.config ['ES_HOST']
port = app.config ['ES_PORT']
http_auth = app.config ['HTTP_AUTH']
use_ssl = app.config ['USE_SSL']
verify_certs = app.config ['VERIFY_CERTS']
ca_certs = app.config ['CA_CERTS']
client_cert = app.config ['CLIENT_CERT']
client_key = app.config ['CLIENT_KEY']

# Initialize Elasticsearch instance
es = connections.create_connection (hosts = [host],
port = port,
http_auth = http_auth,
use_ssl = use_ssl,
verify_certs = verify_certs,
ca_certs = ca_certs,
client_cert = client_cert,
client_key = client_key)
@@ -1,7 +1,6 @@
Flask==0.10.1
networkx==1.11
elasticsearch-dsl==2.0.0
numpy=1.11.0
scipy==0.17.1
sphinx>=1.4.0
requirements==0.1
numpy>=1.10.0
scipy>=0.17.0
sphinx>=1.4.0
@@ -43,40 +43,38 @@ def run_tests (self):
sys.exit (pytest.main (self.test_args))

setup (
name = "distill",
version = "0.1",
name = "Distill",
version = "1.0",
url = "https://github.com/draperlaboratory/distill",
license = "Apache Software License",
author = "Michelle Beard",
author_email = "mbeard@draper.com",
description = "An analytical framework for User-ALE <https://github.com/draperlaboratory/user-ale>.",
long_description = read ('README.txt', 'CHANGELOG.txt'),

classifiers = [ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 1 - Planning',
description = "An analytical framework for User-ALE.",
long_description = __doc__,
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Natural Language :: English',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Private :: Do Not Upload"'
],
keywords = "analytics graph portal user-ale instrumentation", # Separate with spaces
keywords = "analytics graph stout user-ale instrumentation", # Separate with spaces
packages = find_packages (exclude=['examples', 'tests']),
include_package_data = True,
zip_safe = False,
tests_require = ['pytest'],
cmdclass = {'test': PyTest},
# TODO: List of packages that this one depends upon:
install_requires = ['Flask==0.10.1',
'networkx>=1.11',
'elasticsearch-dsl',
'numpy',
'scipy',
'sphinx'
'networkx==1.11',
'elasticsearch-dsl==2.0.0',
'numpy>=1.10.0',
'scipy>=0.17.0',
'sphinx>=1.4.0'
],
# @TODO: List executable scripts, provided by the package (this is just an example)
entry_points = {
'console_scripts': [
'dev = distill.scripts.run_server:dev_server'

0 comments on commit 51c171e

Please sign in to comment.