Skip to content

Commit

Permalink
Added pyramid service version
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jun 27, 2017
1 parent 3289697 commit 1dbbd44
Show file tree
Hide file tree
Showing 28 changed files with 1,194 additions and 1,578 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source = eea_corpus
omit = eea_corpus/test*
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,18 @@ RUN cd /usr/local/lib/python3.5/site-packages/phrasemachine \

RUN python -m spacy.en.download all

COPY corpus /corpus
RUN pip --no-cache-dir install \
gensim

# COPY corpus /corpus

COPY src /src

RUN pip install -r /src/eea.corpus/requirements.txt
RUN pip install -e /src/eea.corpus

WORKDIR /src/eea.corpus

WORKDIR /corpus
CMD pserve /src/eea.corpus/development.ini

EXPOSE 8888
EXPOSE 6543
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.txt *.ini *.cfg *.rst
recursive-include eea_corpus *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2
1,302 changes: 0 additions & 1,302 deletions corpus/data.csv

This file was deleted.

126 changes: 0 additions & 126 deletions corpus/eea_corpus.py

This file was deleted.

146 changes: 0 additions & 146 deletions corpus/load_eea_corpus.py

This file was deleted.

3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ shell:
build: .
volumes:
- ./corpus:/corpus
- ./src:/src
command: sh -c "tail -f /dev/null"
ports:
- "8888:8888"
- "6543:6543"
4 changes: 4 additions & 0 deletions src/eea.corpus/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
0.0
---

- Initial version.
29 changes: 29 additions & 0 deletions src/eea.corpus/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
EEA Corpus Server
=================

Getting Started
---------------

- Change directory into your newly created project.

cd eea_corpus

- Create a Python virtual environment.

python3 -m venv env

- Upgrade packaging tools.

env/bin/pip install --upgrade pip setuptools

- Install the project in editable mode with its testing requirements.

env/bin/pip install -e ".[testing]"

- Run your project's tests.

env/bin/pytest

- Run your project.

env/bin/pserve development.ini
Loading

0 comments on commit 1dbbd44

Please sign in to comment.