Skip to content

Commit df629ce

Browse files
committed
Install missing dev packages
1 parent 32e3a07 commit df629ce

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install dependencies
32-
run: make install-test
32+
run: make install
3333
- name: Run unit tests
3434
run: |
35-
make install
36-
make test-unit
35+
poetry run make test-unit
3736
3837
lint:
3938
runs-on: ubuntu-latest
4039
steps:
4140
- uses: actions/checkout@v4
4241
- name: Install dependencies
43-
run: make install-dev
42+
run: make install
4443
- name: Lint
45-
run: make lint
44+
run: |
45+
poetry run make lint
4646
4747
test_integration:
4848
strategy:
@@ -56,11 +56,10 @@ jobs:
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Install dependencies
59-
run: make install-test
59+
run: make install
6060
- name: Run all tests
6161
run: |
62-
make install
63-
make test
62+
poetry run make test
6463
env:
6564
UNSTRUCTURED_API_KEY: ${{ secrets.UNSTRUCTURED_API_KEY }}
6665

Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ DOCKER_IMAGE ?= downloads.unstructured.io/unstructured-io/unstructured-api:lates
77
# Install #
88
###########
99

10-
.PHONY: install-test
11-
install-test:
12-
pip install pytest pytest-asyncio pytest-mock requests_mock pypdf deepdiff requests-toolbelt uvloop
13-
14-
.PHONY: install-dev
15-
install-dev:
16-
pip install poetry
17-
python scripts/prepare-readme.py
18-
poetry install
19-
2010
## install: installs all test, dev, and experimental requirements
2111
.PHONY: install
22-
install: install-test install-dev
12+
install:
13+
pip install poetry mypy pylint uvloop jupyter
14+
python scripts/prepare-readme.py
15+
poetry install
2316

2417
#################
2518
# Test and Lint #

gen.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ generation:
1212
python:
1313
version: 0.26.0-beta.1
1414
additionalDependencies:
15-
dev: {}
16-
main:
15+
dev:
1716
deepdiff: '>=6.0'
17+
jupyter: '>=1.1.1'
18+
pytest: '>=8.3.3'
19+
pytest-asyncio: '>=0.24.0'
20+
pytest-mock: '>=3.14.0'
21+
uvloop: '>=0.20.0'
22+
main:
1823
httpx: '>=0.27.0'
1924
nest-asyncio: '>=1.6.0'
2025
pypdf: '>=4.0'

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ in-project = true
1919

2020
[tool.poetry.dependencies]
2121
python = "^3.8"
22-
deepdiff = ">=6.0"
2322
eval-type-backport = "^0.2.0"
2423
httpx = ">=0.27.0"
2524
jsonpath-python = "^1.0.6"
@@ -31,9 +30,15 @@ requests-toolbelt = ">=1.0.0"
3130
typing-inspect = "^0.9.0"
3231

3332
[tool.poetry.group.dev.dependencies]
33+
deepdiff = ">=6.0"
34+
jupyter = ">=1.1.1"
3435
mypy = "==1.10.1"
3536
pylint = "==3.2.3"
37+
pytest = ">=8.3.3"
38+
pytest-asyncio = ">=0.24.0"
39+
pytest-mock = ">=3.14.0"
3640
types-python-dateutil = "^2.9.0.20240316"
41+
uvloop = ">=0.20.0"
3742

3843
[build-system]
3944
requires = ["poetry-core"]

0 commit comments

Comments
 (0)