From 40dae3ee65d962b271a604cdaec80325abdf7316 Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Fri, 29 May 2020 15:31:21 +0200
Subject: [PATCH] Add APIStar requirements for schema generation

---
 ci/openapi.sh          | 1 -
 requirements.txt       | 3 +++
 tests-requirements.txt | 1 -
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ci/openapi.sh b/ci/openapi.sh
index 3d7fc94f97..25eb5effa6 100755
--- a/ci/openapi.sh
+++ b/ci/openapi.sh
@@ -1,5 +1,4 @@
 #!/bin/sh -e
 mkdir -p output
 pip install -e .
-pip install uritemplate==3 apistar>=0.7.2
 PONOS_DATA_DIR=/tmp arkindex/manage.py generateschema --generator_class arkindex.project.openapi.SchemaGenerator > output/schema.yml
diff --git a/requirements.txt b/requirements.txt
index 57ee497f5e..92fb84f516 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,7 @@
 # -r ./base/requirements.txt
 
 arkindex-common==0.2.0
+apistar==0.7.2
 certifi==2017.7.27.1
 channels==2.3.1
 channels-redis==2.4.1
@@ -25,4 +26,6 @@ responses==0.10.7
 requests==2.22
 sentry-sdk==0.14.3
 urllib3==1.22
+uritemplate==3
 git+https://gitlab.com/arkindex/common.git#egg=arkindex-common
+git+https://gitlab.com/teklia/apistar.git#egg=apistar
diff --git a/tests-requirements.txt b/tests-requirements.txt
index 06985e8590..f12d83ef91 100644
--- a/tests-requirements.txt
+++ b/tests-requirements.txt
@@ -2,6 +2,5 @@ flake8==3.6.0
 tripoli
 django-nose
 coverage
-uritemplate==3
 responses
 mock~=4.0.0
-- 
GitLab