Skip to content

Commit

Permalink
add setup.py so we can install via pip (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlb2000 authored Jun 16, 2017
1 parent c04aa39 commit 020fa2d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/python
"""Setup and install the metadata."""
from setuptools import setup

setup(name='PacificaMetadata',
version='1.0',
description='Pacifica Metadata',
author='David Brown',
author_email='david.brown@pnnl.gov',
packages=['metadata'],
scripts=['MetadataServer.py', 'DatabaseCreate.py'])
2 changes: 1 addition & 1 deletion travis/static-analysis.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
pylint --rcfile=pylintrc metadata
pylint --rcfile=pylintrc MetadataServer.py GenMetadataModelMD.py
pylint --rcfile=pylintrc MetadataServer.py GenMetadataModelMD.py setup.py
radon cc metadata
2 changes: 1 addition & 1 deletion travis/test-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker build -t pacifica/metadata .
pip install .
1 change: 1 addition & 0 deletions travis/test-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ if [ "$RUN_LINTS" = "true" ] ; then
bash -xe ./travis/static-analysis.sh
else
bash -xe ./travis/unit-tests.sh
bash -xe ./travis/test-deploy.sh
fi

0 comments on commit 020fa2d

Please sign in to comment.