Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
setup: Update dependencies (and a bit more) (#1730)
Browse files Browse the repository at this point in the history
Along with updating dependencies I'm also addressing few other issues which will take full rebuild:

- upgrade to python 3.7, fixes #1715 
- switch from Flask-Cache to Flask-Caching, fixes #1285 
- sharing pypi2nix cache between containers, fixes #1070
  • Loading branch information
garbas authored Dec 6, 2018
1 parent 90a66cf commit bdebc78
Show file tree
Hide file tree
Showing 105 changed files with 15,233 additions and 16,892 deletions.
4 changes: 2 additions & 2 deletions lib/backend_common/backend_common/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import uuid

import flask
import flask_cache
import flask_caching

import backend_common.dockerflow
import cli_common.log

logger = cli_common.log.get_logger(__name__)
cache = flask_cache.Cache()
cache = flask_caching.Cache()


def init_app(app):
Expand Down
2 changes: 1 addition & 1 deletion lib/backend_common/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inotify # needed by gunicorn for faster/better reload

# tests dependencies
Flask
Flask-Cache
Flask-Caching
Flask-Cors
Flask-Login
Flask-Migrate
Expand Down
2 changes: 1 addition & 1 deletion lib/backend_common/requirements-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"requests"
],
"cache": [
"Flask-Cache"
"Flask-Caching"
],
"cors": [
"Flask-Cors",
Expand Down
1 change: 0 additions & 1 deletion lib/cli_common/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ responses

# develop
pdbpp
ipdb

# tests dependencies
Logbook
Expand Down
12 changes: 9 additions & 3 deletions lib/please_cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ let
passthru = {
src_path = "lib/please_cli";
update = writeScript "update-${self.name}" ''
pushd ${self.src_path}
${pypi2nix}/bin/pypi2nix -v \
-V 3.6 \
pushd lib/${project_name}
cache_dir=$PWD/../../tmp/pypi2nix
mkdir -p $cache_dir
eval ${pypi2nix}/bin/pypi2nix -v \
-C $cache_dir \
-V 3.7 \
-O ../../nix/requirements_override.nix \
-e pytest-runner \
-e setuptools-scm \
-r requirements.txt \
-r requirements-dev.txt
popd
Expand Down
4 changes: 0 additions & 4 deletions lib/please_cli/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
-r ./../../lib/cli_common/requirements-dev.txt

flake8
pytest
ipdb
Loading

0 comments on commit bdebc78

Please sign in to comment.