File tree 5 files changed +11
-22
lines changed
5 files changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ build:docker:
11
11
script :
12
12
- docker build --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_BRANCH} .
13
13
tags :
14
- - docker
14
+ - docker-image-builder
15
15
16
16
build:precommit :
17
17
stage : build
18
18
image : python:3.11
19
19
before_script :
20
- - pip3 install -r requirements-dev.txt
20
+ - pip install .[dev]
21
21
script :
22
22
- pre-commit run --all-files
23
23
@@ -27,8 +27,7 @@ build:test:
27
27
services :
28
28
- rabbitmq:latest
29
29
before_script :
30
- - pip3 install -r requirements.txt
31
- - pip3 install -r requirements-dev.txt
30
+ - pip3 install .[dev]
32
31
script :
33
32
- pytest -v
34
33
@@ -41,7 +40,7 @@ build:dist:
41
40
paths :
42
41
- dist/
43
42
tags :
44
- - docker
43
+ - docker-image-builder
45
44
46
45
# Stage: deploy
47
46
# #############################################################################
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ FROM python:3.11 AS builder
4
4
WORKDIR /build
5
5
COPY . .
6
6
7
- COPY requirements.txt /tmp/
8
- RUN pip install --no-cache-dir -r /tmp/requirements.txt
7
+ RUN pip install .
9
8
10
9
RUN python3 setup.py sdist && \
11
10
pip install dist/*.tar.gz --target /install
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ dependencies = [
26
26
" pyusb"
27
27
]
28
28
29
+ [project .optional-dependencies ]
30
+ dev = [
31
+ " pytest" ,
32
+ " pre-commit"
33
+ ]
34
+
29
35
[project .license ]
30
36
text = " Apache-2.0"
31
37
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments