moved utils to a directory

This commit is contained in:
Honza Král
2019-12-22 16:32:49 +01:00
committed by Honza Král
parent 869c35f551
commit 219a8bb12f
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ To run the code generation make sure you have pre-requisites installed:
Then you should be able to run the code generation by invoking:
```
python generate_api.py
python utils/generate_api.py
```
+1 -1
View File
@@ -6,7 +6,7 @@ RUN pip install ipdb python-dateutil GitPython
RUN git clone https://github.com/elastic/elasticsearch.git /code/elasticsearch
WORKDIR /code/elasticsearch-py
COPY . .
COPY .. .
RUN pip install .[develop]
RUN python setup.py develop
CMD ["/code/wait-for-elasticsearch.sh", "http://elasticsearch:9200", "--", "python", "setup.py", "test"]
@@ -10,7 +10,7 @@ services:
environment:
- "TEST_ES_SERVER=http://elasticsearch:9200"
volumes:
- .:/code/elasticsearch-py
- ..:/code/elasticsearch-py
- esvol:/tmp
networks:
- esnet
+1 -1
View File
@@ -17,7 +17,7 @@ SEPARATOR = " # AUTO-GENERATED-API-DEFINITIONS #"
# global substitutions for python keywords
SUBSTITUTIONS = {"type": "doc_type", "from": "from_"}
# api path(s)
CODE_ROOT = Path(__file__).absolute().parent
CODE_ROOT = Path(__file__).absolute().parent.parent
BASE_PATH = (
CODE_ROOT.parent
/ "elasticsearch"