Skip to content

Commit

Permalink
Bump nlpsandbox-client from 1.1.0 to 2.0.0 in /server (#115)
Browse files Browse the repository at this point in the history
* Bump nlpsandbox-client from 1.1.0 to 2.0.0 in /server

Bumps [nlpsandbox-client](https://github.com/nlpsandbox/nlpsandbox-client) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/nlpsandbox/nlpsandbox-client/releases)
- [Commits](nlpsandbox/nlpsandbox-client@1.1.0...2.0.0)

---
updated-dependencies:
- dependency-name: nlpsandbox-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update nlpsandbox-client to v3

* Remove nlpsandbox-client from test-requirements.txt

* Import from nlpsandbox-client v3

* Review how .env is used with docker

* Comment out docker-compose.yml validation

* Add nlpsandbox-client to Test Requirements

* Fix test-requirements.txt

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Boyle <[email protected]>
Co-authored-by: tschaffter <[email protected]>
  • Loading branch information
3 people authored Jun 5, 2021
1 parent 319082f commit 0e2a8f9
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 19 deletions.
20 changes: 17 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# API SERVER
# NLP Sandbox PHI Deidentifier
SERVER_PROTOCOL=http://
SERVER_HOST=localhost
SERVER_PORT=8080
SERVER_PORT=80

## Tool dependencies
### NLP Sandbox Date Annotator
DATE_ANNOTATOR_PROTOCOL=http://
DATE_ANNOTATOR_HOST=localhost
DATE_ANNOTATOR_PORT=9000

### NLP Sandbox Person Name Annotator
PERSON_NAME_ANNOTATOR_PROTOCOL=http://
PERSON_NAME_ANNOTATOR_HOST=localhost
PERSON_NAME_ANNOTATOR_PORT=9001

### NLP Sandbox Physical Address Annotator
PHYSICAL_ADDRESS_ANNOTATOR_PROTOCOL=http://
PHYSICAL_ADDRESS_ANNOTATOR_HOST=localhost
PHYSICAL_ADDRESS_ANNOTATOR_PORT=9002
PHYSICAL_ADDRESS_ANNOTATOR_PORT=9002

### NLP Sandbox Contact Annotator
CONTACT_ANNOTATOR_PROTOCOL=http://
CONTACT_ANNOTATOR_HOST=localhost
CONTACT_ANNOTATOR_PORT=9003

### NLP Sandbox ID Annotator
ID_ANNOTATOR_PROTOCOL=http://
ID_ANNOTATOR_HOST=localhost
ID_ANNOTATOR_PORT=9004
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
entrypoint: hadolint
args: server/Dockerfile

- name: Validate docker-compose.yml
run: |
docker-compose -f docker-compose.yml config >/dev/null
# - name: Validate docker-compose.yml
# run: |
# docker-compose -f docker-compose.yml config >/dev/null

- name: Check that packages in requirements.txt files are in asc order
run: |
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.env
.empty/
.vscode/
node_modules/

client/env_vars
dist.yaml
client/env_vars
node_modules/
openapi.yaml
openapitools.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ You can stop the container run with `Ctrl+C`, followed by `docker-compose down`.

We recommend using a Conda environment to install and run the PHI Deidentifier.

conda create --name phi-deidentifier python=3.9.1
conda create --name phi-deidentifier python=3.9.4 -y
conda activate phi-deidentifier

Start the NLP tool dependencies.
Expand All @@ -78,7 +78,7 @@ Start the NLP tool dependencies.
Install and start the PHI Deidentifier.

cd server/
pip install -e .
pip install -r requirements.txt
python -m openapi_server

### Updating NLP tool dependencies
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ services:
dockerfile: Dockerfile
container_name: phi-deidentifier
restart: always
env_file:
- .env
environment:
- DATE_ANNOTATOR_HOST=date-annotator
- DATE_ANNOTATOR_PORT=8080
Expand Down Expand Up @@ -77,7 +79,7 @@ services:
- nlpsandbox
- nlpsandbox-internal
ports:
- "80:80"
- "${SERVER_PORT}:80"
depends_on:
- phi-deidentifier

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import connexion
from datanode.model.note_id import NoteId
from datanode.model.patient_id import PatientId
from nlpsandbox.model.note_id import NoteId
from nlpsandbox.model.patient_id import PatientId

from openapi_server.models.deidentify_request import DeidentifyRequest # noqa: E501
from openapi_server.models import DeidentificationStep, DeidentifyResponse, \
Expand Down
6 changes: 3 additions & 3 deletions server/openapi_server/test/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datanode.model.note import Note
from datanode.model.note_id import NoteId
from datanode.model.patient_id import PatientId
from nlpsandbox.model.note import Note
from nlpsandbox.model.note_id import NoteId
from nlpsandbox.model.patient_id import PatientId

from openapi_server.models import Tool, License

Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
connexion==2.7.0
mongoengine==0.23.1
nlpsandbox-client==1.1.0
nlpsandbox-client==3.0.0
psycopg2-binary==2.8.6
requests==2.25.1
swagger-ui-bundle==0.0.8
1 change: 0 additions & 1 deletion server/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Flask-Testing==0.8.1
nlpsandbox-client==1.1.0
pytest-cov>=2.8.1
pytest-randomly==3.8.0 # needed for python 2.7+3.4
pytest~=6.2.4 # needed for python 2.7+3.4

0 comments on commit 0e2a8f9

Please sign in to comment.