Skip to content

Commit 6bef976

Browse files
authored
chore: remove requirements.txt and setup.py (#5345)
* chore: remove requirements.txt and setup.py * add a sentence of documentation about the testing dockerfile
1 parent a0486f9 commit 6bef976

9 files changed

+7
-148
lines changed

.dockerignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44
# Except:
55
!deploy/docker-entrypoint.d/**
66
!deploy/docker-entrypoint.sh
7-
!deploy/requirements-mw.txt
8-
!deploy/requirements-test.txt
9-
!deploy/requirements.txt
107
!deploy/heroku_run.sh
118
!deploy/uwsgi.ini
129
!deploy/default.conf
1310
!label_studio/**
1411
label_studio/frontend
1512
!web/**
16-
!setup.py
1713
!README.md
1814
!licenses/**
1915
!LICENSE

.github/workflows/cicd_pipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
filters: |
4848
src:
4949
- 'label_studio/!(frontend)/**'
50-
- 'deploy/requirements**'
51-
- 'setup.py'
5250
- 'poetry.lock'
5351
- 'pyproject.toml'
5452
- '.github/workflows/bandit.yml'
@@ -63,7 +61,6 @@ jobs:
6361
- 'label_studio/**'
6462
- 'deploy/**'
6563
- 'Dockerfile**'
66-
- 'setup.py'
6764
- 'poetry.lock'
6865
- 'pyproject.toml'
6966
- '.github/workflows/cicd_pipeline.yml'

Dockerfile.testing

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
# The image built from this Dockerfile will include the test dependencies,
22
# and can be used for running the project's unit tests from within a container.
33
# Use via the `make build-testing-image` and `make docker-testing-shell` Makefile targets.
4+
#
5+
# Try, for example, running `make docker-testing-shell` and then
6+
# `cd label_studio && DJANGO_DB=sqlite pytest .` from within the container.
7+
48

59
FROM heartexlabs/label-studio:latest
610

711
USER 0
812

913
# Copy and install test dependencies
10-
COPY --chown=1001:0 deploy/requirements-test.txt .
14+
COPY --chown=1001:0 pyproject.toml .
15+
COPY --chown=1001:0 poetry.lock .
1116
RUN --mount=type=cache,target=$PIP_CACHE_DIR,uid=1001,gid=0 \
12-
pip3 install -r requirements-test.txt
17+
poetry check --lock && POETRY_VIRTUALENVS_CREATE=false poetry install --only test
1318

1419
USER 1001

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include deploy/requirements.txt
2-
31
# react LSF / react-app with dm
42
recursive-include web/dist/libs/editor *
53
include web/dist/apps/labelstudio/*

deploy/requirements-mw.txt

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

deploy/requirements-test.txt

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

deploy/requirements.txt

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

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ packages = [
121121
{ include = "label_studio" },
122122
]
123123
include = [
124-
"deploy/requirements.txt",
125124
"web/dist/libs/datamanager/**/*",
126125
"web/dist/libs/editor/**/*",
127126
"web/dist/apps/labelstudio/**/*",

setup.py

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

0 commit comments

Comments
 (0)