-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge browser module into master. (#187)
* Browser/fix/open empty annotations (#111) * Browser/feature/disable page scroll (#116) * Browser/feature/add canvas padding (#117) * Update, refactor brush (#120) * Update browser contrast adjustment (#121) * Add outline capability to browser (#122) * Initial timestamp tracking (#124) * Initial url options, RGB mode (#130) * Update initial brush params (#136) * Initial changes to image modification code (#138) * Fix npz upload issues (#139) * Misc small changes to rgb (#141) * Add travis and use Flask Blueprints to remove redundant application files. (#144) * Add docker-compose.yml for easier local development (#146) * Change environment variables to AWS standards. (#147) * fix S3 env vars that got lost in the merge. (#148) * Update npz canvas (expansion, better scaling, pan+zoom) (#149) * Update HTML templates with the materialize CSS framework (#154) * Add logger statements to most backend routes. (#157) * Use distutils.util.strtobool to cast boolean request args to bools. (#163) * Fix some browser rgb image generation edge cases (#164) * Use PIL to create PNGs if not using a cmap. (#165) * Don't need to return raw data on action requests. (#166) * Save npzs with X and y (#168) * Hide labels, bugfixes (#174) * add flask-cors and enable CORS for all routes. (#178) * Update browser with better logging and error handling. (#179) * Add unit tests for Flask application. (#186) Co-authored-by: geneva-miller <45578681+geneva-miller@users.noreply.github.com> Co-authored-by: Thomas Dougherty <tdowlingdougherty@gmail.com>
- Loading branch information
1 parent
cf91cb4
commit fc856c7
Showing
53 changed files
with
3,904 additions
and
2,197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# .coveragerc to control coverage.py | ||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
except ImportError | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
ignore_errors = True | ||
# fail_under = 70 | ||
show_missing = True | ||
|
||
omit = | ||
**/*_test.py | ||
env/**/*.py | ||
venv/**/*.py | ||
ENV/**/*.py | ||
VENV/**/*.py | ||
desktop/env/**/*.py | ||
desktop/venv/**/*.py | ||
desktop/ENV/**/*.py | ||
desktop/VENV/**/*.py | ||
browser/env/**/*.py | ||
browser/venv/**/*.py | ||
browser/ENV/**/*.py | ||
browser/VENV/**/*.py | ||
browser/conftest.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
dist: xenial | ||
|
||
git: | ||
depth: false | ||
|
||
language: python | ||
|
||
cache: pip | ||
|
||
python: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
|
||
install: | ||
- pip install -r browser/requirements.txt | ||
- pip install -r browser/requirements-test.txt | ||
|
||
script: | ||
- pytest browser --cov browser --pep8 | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
option_settings: | ||
- namespace: aws:elasticbeanstalk:application | ||
option_name: Application Healthcheck URL | ||
value: /health |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
option_settings: | ||
- namespace: aws:elasticbeanstalk:container:python | ||
option_name: WSGIPath | ||
value: eb_application.py | ||
|
||
value: application.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Flask settings | ||
DEBUG= | ||
TEMPLATES_AUTO_RELOAD= | ||
|
||
# AWS credentials | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
|
||
# SQL Alchemy settings | ||
SQLALCHEMY_DATABASE_URI= | ||
SQLALCHEMY_TRACK_MODIFICATIONS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM python:3.7 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["/bin/sh", "-c", "python application.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.