Skip to content

Commit

Permalink
Merge pull request #162 from OSSHealth/dev
Browse files Browse the repository at this point in the history
Release 0.7.0
  • Loading branch information
sgoggins committed Aug 28, 2018
2 parents 0d64909 + bb5ecd0 commit 9d15adc
Show file tree
Hide file tree
Showing 595 changed files with 40,554 additions and 98,216 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Expand Up @@ -22,6 +22,7 @@
*.rar
*.tar
*.zip
.vagrant

# Logs and databases #
######################
Expand All @@ -45,6 +46,16 @@ Thumbs.db
*.cache
*.pyc
*.swp
*.un~

# Git #
#######
*.orig

# Git #
#######
*.orig
*.un~

# Python junk #
###############
Expand All @@ -62,6 +73,7 @@ yarn.lock
# Augur #
#########
runtime/
augur/plugins/
*.repolist.txt
*.config.*
*.cfg.*
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

30 changes: 23 additions & 7 deletions .travis.yml
@@ -1,7 +1,23 @@
language: python
python:
- "3.6"
# command to install dependencies
install: "pip install ."
# command to run tests
script: "python -m pytest ./test"
matrix:
include:
-
install: "pip install ."
language: python
python: "3.6"
notifications:
slack: "augurlabs:T5g5uaEPLwSiTUTRH1kiXGcS"
script: "python -m pytest ./test"
# -
# before_script:
# - "node --version"
# - "npm --version"
# - "node_modules/.bin/newman --version"
# install:
# - "npm install newman"
# language: node_js
# node_js:
# - "8.2.1"
# notifications:
# slack: "augurlabs:T5g5uaEPLwSiTUTRH1kiXGcS"
# script:
# - "node_modules/.bin/newman run https://api.getpostman.com/collections/4566755-ec950b0b-a5e9-4fe3-b1a5-ad4f49c209f9?apikey=$POSTMAN_API_KEY -e https://api.getpostman.com/environments/4566755-392a724a-6e59-4dc9-b70f-50221adf4847?apikey=$POSTMAN_API_KEY"
45 changes: 20 additions & 25 deletions Makefile
@@ -1,8 +1,10 @@
.PHONY: all test clean install install-dev python-docs api-docs docs dev-start dev-stop
.PHONY: dev-restart monitor monitor-backend monitor-frontend download-upgrade upgrade
.PHONY: frontend install-ubuntu-dependencies metric-status edit-metrics-status update-upsteam version
.PHONY: dev-restart monitor monitor-backend monitor-frontend download-upgrade upgrade build-metrics-status
.PHONY: frontend install-ubuntu-dependencies metric-status edit-metrics-status version

SERVECOMMAND=augur
CONDAUPDATE=if ! source activate augur; then conda env create -n=augur -f=environment.yml && source activate augur; else conda env update -n=augur -f=environment.yml && conda activate augur; fi;
CONDAACTIVATE=source activate augur;
CONDAUPDATE=. $(shell conda info --root)/etc/profile.d/conda.sh; if ! conda activate augur; then conda env create -n=augur -f=environment.yml && conda activate augur; else conda env update -n=augur -f=environment.yml && conda activate augur; fi;
CONDAACTIVATE=. $(shell conda info --root)/etc/profile.d/conda.sh; conda activate augur;
OLDVERSION="null"
Expand All @@ -15,7 +17,6 @@ default:
@ echo " install-e Installs augur in editable mode (pip -e)"
@ echo " install-dev Installs augur's developer dependencies (requires npm and pip)"
@ echo " install-msr Installs MSR14 dataset"
@ echo " update-upsteam Updates git submodules"
@ echo " upgrade Pulls newest version, installs, performs migrations"
@ echo " version Print the currently installed version"
@ echo
Expand All @@ -24,8 +25,9 @@ default:
@ echo " dev-start Runs 'make serve' and 'brunch w -s' in the background"
@ echo " dev-stop Stops the backgrounded commands"
@ echo " dev-restart Runs dev-stop then dev-restart"
@ echo " test Run pytest unit tests"
@ echo " test-source SOURCE={source} Run pytest unit tests for the specified data source (name only, no extension)"
@ echo " server Runs a single instance of the server (useful for debugging endpoints)"
@ echo " test SOURCE={source} Run pytest unit tests for the specified source file. Defaults to all"
@ echo " test-api Run API tests locally using newman"
@ echo " build Builds documentation and frontend - use before pushing"
@ echo " frontend Builds frontend with Brunch"
@ echo " update-deps Generates updated requirements.txt and environment.yml"
Expand All @@ -34,8 +36,6 @@ default:
@ echo " docs Generates all documentation"
@ echo
@ echo "Prototyping:"
@ echo " metrics-status Shows the implementation status of CHAOSS metrics"
@ echo " edit-metrics-status Edits the JSON file that tracks CHAOSS metrics implementation status"
@ echo " jupyter Launches the jupyter"
@ echo " create-jupyter-env Creates a jupyter environment for Augur"
@ echo
Expand Down Expand Up @@ -67,10 +67,7 @@ version:
download-upgrade:
git pull

update-upsteam:
git submodule update --init --recursive --remote

upgrade: version download-upgrade update-upsteam install-dev
upgrade: version download-upgrade install-dev
@ python util/post-upgrade.py $(OLDVERSION)
@ echo "Upgraded from $(OLDVERSION) to $(shell python util/print-version.py)."

Expand Down Expand Up @@ -110,28 +107,32 @@ monitor:

dev-restart: dev-stop dev-start

server:
python -m augur.server

frontend:
bash -c 'cd frontend; brunch build'

python-docs:
cd docs/python \
&& rm -rf _build \
&& make html
@ bash -c '$(CONDAACTIVATE) cd docs/python && rm -rf _build && make html; rm -rf ../../frontend/public/docs; mv build/html ../../frontend/public/docs'

api-docs:
cd docs && apidoc --debug -f "\.py" -i ../augur/ -o api/
@ bash -c '$(CONDAACTIVATE) cd docs && apidoc --debug -f "\.py" -i ../augur/ -o api/; rm -rf ../frontend/public/api_docs; mv api ../frontend/public/api_docs'

docs: api-docs python-docs

build: frontend docs
cd augur/static/ && brunch build --production
cd augur/static/ \
&& brunch build --production

test:
bash -c '$(CONDAACTIVATE) python -m pytest ./test'

test-source:
bash -c '$(CONDAACTIVATE) python -m pytest test/test_${SOURCE}.py'

test-api:
make dev-start
python test/test_api.py
make dev-stop

.PHONY: unlock
unlock:
find . -type f -name "*.lock" -delete
Expand All @@ -146,12 +147,6 @@ update-deps:
#
# Prototyping
#
metrics-status: update-upsteam
@ bash -c '$(CONDAACTIVATE) cd docs/metrics/ && python status.py'

edit-metrics-status:
$(EDITOR) docs/metrics/status.json

jupyter:
@ bash -c '$(CONDAACTIVATE) cd notebooks; jupyter notebook'

Expand Down
23 changes: 23 additions & 0 deletions Vagrantfile
@@ -0,0 +1,23 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "centos/7"

config.vm.network "forwarded_port", guest: 3333, host: 3333
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"

# documentation for more information about their specific syntax and use.
config.vm.provision "shell", path: "util/packaging/vagrant/provision.sh"

end
14 changes: 5 additions & 9 deletions augur/__init__.py
@@ -1,3 +1,5 @@
#SPDX-License-Identifier: MIT

# Metadata
from .metadata import __version__

Expand All @@ -6,12 +8,6 @@

# Classes
from .application import Application
# from .downloads import Downloads
# from .ghtorrent import GHTorrent
# from .ghtorrentplus import GHTorrentPlus
# from .git import Git
# from .githubapi import GitHubAPI
# from .librariesio import LibrariesIO
# from .localcsv import LocalCSV
# from .publicwww import PublicWWW
# from .server import Server

# Plugins
from .augurplugin import AugurPlugin

0 comments on commit 9d15adc

Please sign in to comment.