Skip to content

Commit

Permalink
Rearrange requirements files
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaTW committed Nov 12, 2019
1 parent b806928 commit 20f6f89
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
- v1-dependencies-{{ checksum "requirements/base.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

Expand All @@ -37,7 +37,7 @@ jobs:
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
key: v1-dependencies-{{ checksum "requirements/base.txt" }}

# run tests!
# this example uses Django's built-in test-runner
Expand All @@ -64,20 +64,20 @@ jobs:

- restore_cache:
keys:
- v1-dependencies-{{ checksum "deploy.txt" }}
- v1-dependencies-{{ checksum "requirements/deploy.txt" }}
- v1-dependencies-

- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r deploy.txt
pip install -r requirements/deploy.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "deploy.txt" }}
key: v1-dependencies-{{ checksum "requirements/deploy.txt" }}

- run:
name: run build wheel & delopy
Expand Down Expand Up @@ -111,4 +111,4 @@ workflows:
tags:
only: /.*/
branches:
ignore: /.*/
ignore: /.*/
8 changes: 1 addition & 7 deletions requirements.txt
@@ -1,7 +1 @@
# Django
Django==2.2.6
pytz==2019.2
sqlparse==0.3.0

# RESTful framework
djangorestframework==3.10.2
-r requirements/base.txt
7 changes: 7 additions & 0 deletions requirements/base.txt
@@ -0,0 +1,7 @@
# Django
Django==2.2.6
pytz==2019.2
sqlparse==0.3.0

# RESTful framework
djangorestframework==3.10.2
File renamed without changes.
File renamed without changes.

0 comments on commit 20f6f89

Please sign in to comment.