Skip to content

Commit

Permalink
Merge pull request #140 from Ouranosinc/config-perm-loader
Browse files Browse the repository at this point in the history
version 0.9.0 improvements
  • Loading branch information
fmigneault authored Feb 5, 2019
2 parents 636cf8b + b1e3618 commit 8ccdcad
Show file tree
Hide file tree
Showing 78 changed files with 2,412 additions and 1,099 deletions.
12 changes: 12 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[bumpversion]
current_version = 0.9.0
commit = True
tag = True

[bumpversion:file:README.rst]
search = {current_version}
replace = {new_version}

[bumpversion:file:magpie/__meta__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__/
.idea/
.eggs/
.pytest_cache/
coverage.xml
build/
coverage/
dist/
Expand All @@ -29,4 +30,5 @@ magpie.egg-info/
src/
share/
/gunicorn.app.wsgiapp
downloads/
/sys
87 changes: 87 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
sudo: false
cache:
- pip
- directories:
- $HOME/conda
- $HOME/downloads
# includes PR when base branch = master
if: branch = master OR tag IS present
env:
global:
- CONDA_HOME=$HOME/conda
- DOWNLOAD_CACHE=$HOME/downloads
matrix:
# FIXME: local login not functional, cannot run local tests on travis
#- TEST_TARGET=test-local START_TARGET=
- TEST_TARGET=test-remote START_TARGET=start
- TEST_TARGET=coverage START_TARGET=
addons:
postgresql: "9.6"
postgres:
adapter: postgresql
database: magpie
username: postgres
password: qwerty
before_install:
- python -V
- uname -a
- lsb_release -a
- export PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}
- export CONDA_ENV=magpie-${TRAVIS_PYTHON_VERSION}
- export CONDA_PREFIX=$HOME/conda/envs/magpie-${TRAVIS_PYTHON_VERSION}
- export PATH=${CONDA_HOME}/bin:$PATH
- hash -r
- env
- make conda-base
- make sysinstall
- echo $CONDA_PREFIX
- echo $CONDA_ENV
#==== magpie env and constants ===
- mkdir -p ./env
- cp -f ./ci/magpie.env ./env/magpie.env
install:
# TODO: remove when fixed and merged (see requirements.txt and Makefile)
- |
if [ "${TRAVIS_PYTHON_VERSION}" -eq "2.7" ]; then
${CONDA_PREFIX}/bin/pip install --upgrade --force-reinstall python-openid && \
${CONDA_PREFIX}/bin/pip uninstall -y python3-openid;
else
${CONDA_PREFIX}/bin/pip install --upgrade --force-reinstall python3-openid && \
${CONDA_PREFIX}/bin/pip uninstall -y python-openid;
fi
- make install install-dev
- make version
before_script:
- psql -c 'create database magpie;' -U postgres
- echo $CONDA_PREFIX
- echo $CONDA_ENV
- export PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}
- export CONDA_ENV=magpie-${TRAVIS_PYTHON_VERSION}
- export CONDA_PREFIX=$HOME/conda/envs/magpie-${TRAVIS_PYTHON_VERSION}
- export PATH=${CONDA_HOME}/bin:$PATH
- hash -r
- env
- echo $CONDA_PREFIX
- echo $CONDA_ENV
script:
- export MAGPIE_LOG_LEVEL=INFO
- make $START_TARGET $TEST_TARGET
notifications:
email: false
jobs:
include:
- stage: deploy
script: echo "Deploying..."
deploy:
provider: script
script: make conda-env docker-push
skip_existing: true
on:
tags: true
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Types of Contributions
Report Bugs
~~~~~~~~~~~

Report bugs at francois-xavier.derue@crim.ca.
Report bugs at francis.charette-migneault@crim.ca.

If you are reporting a bug, please include:

Expand Down Expand Up @@ -54,7 +54,7 @@ Ready to contribute? Here's how to set up `magpie` for local development.
2. Install your local copy and use a virtualenv. Assuming you have
virtualenv installed, this is how you set up your fork for local
development::

$ cd magpie/
$ virtualenv -p python 3.5 env
$ source env/bin/activate.csh
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ RUN touch ~/magpie_cron_status.log
# set /etc/environment so that cron runs using the environment variables set by docker
RUN env >> /etc/environment

CMD make start
CMD make start cron
17 changes: 17 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
History
=======

0.9.x
---------------------

* add permissions config to auto-generate user/group rules on startup
* fix many invalid or erroneous swagger specifications
* attempt db creation on first migration if not existing
* add continuous integration testing and deployment (with python 2/3 tests)
* ensure python compatibility for Python 2.7, 3.5, 3.6
* reduce excessive sqlalchemy logging using `MAGPIE_LOG_LEVEL >= INFO`
* use schema API route definitions for UI calls

0.8.x
---------------------

* update MagpieAdapter to match process store changes
* provide user ID on API routes returning user info

0.7.x
---------------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017, Francois-Xavier
Copyright (c) 2017, Francois-Xavier, Francis Charette Migneault
All rights reserved.

Permission to use, copy, modify, and/or distribute this software for any
Expand Down
Loading

0 comments on commit 8ccdcad

Please sign in to comment.