Skip to content

Commit e682c34

Browse files
committed
Use raw pip instead of pipenv for example running
1 parent 9a1b05a commit e682c34

File tree

4 files changed

+18
-74
lines changed

4 files changed

+18
-74
lines changed

.github/workflows/run-smoke-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip
2323
python -m pip install --upgrade setuptools wheel
24-
python -m pip install --upgrade pipenv==2018.11.26
2524
- name: Install test dependencies
26-
run: pipenv install --dev
27-
working-directory: example
25+
run: pip install -e ./
2826
- name: Run smoke test
29-
run: pipenv run python example.py
27+
run: python example.py
3028
working-directory: example
3129
env:
3230
API_BASE_PATH: "http://test-api.regulaforensics.com"

example/Pipfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/Pipfile.lock

Lines changed: 0 additions & 57 deletions
This file was deleted.

example/README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,39 @@ Before you start: if you just want to play with an online demo, visit our [playg
44

55
## Running local example
66

7+
NOTE: for some systems `python3` and `pip3` commands should be used, instead of `python` and `pip`.
8+
79
Requirements:
810
- installed python 3.5 or higher
9-
- installed [pipenv](https://pypi.org/project/pipenv)
11+
- installed [pip](https://pip.pypa.io/en/stable/installing/)
1012
- running [Regula Document Reader web API with trial license](https://docs.regulaforensics.com/web/quick-start-guide)
1113

12-
Cloning example
14+
Verify Python and pip versions:
15+
```bash
16+
python --version
17+
> Python 3.8.2
18+
pip --version
19+
> pip 20.2.1 from /home/user/.local/lib/python3.8/site-packages/pip (python 3.8)
20+
```
21+
22+
Cloning example:
1323
```bash
1424
git clone https://github.com/regulaforensics/DocumentReader-web-python-client.git
1525
cd DocumentReader-web-python-client
16-
cd example
1726
```
1827

1928
Setup project and download dependencies:
2029
```bash
21-
pipenv install
30+
pip install -e ./
2231
```
2332

2433
Run example:
2534
```bash
26-
pipenv run python example.py
35+
cd example
36+
python example.py
2737

2838
# If Regula Document Reader web API is running not on localhost, also specify host via env variable:
29-
API_BASE_PATH="http://192.168.0.101:8080" pipenv run python example.py
39+
API_BASE_PATH="http://192.168.0.101:8080" python example.py
3040
```
3141

3242
This sample generates next text output:

0 commit comments

Comments
 (0)