Skip to content

Commit 0c5d52b

Browse files
iripiristv0g
authored andcommitted
remove requirements files
Signed-off-by: iripiri <[email protected]>
1 parent f8a656e commit 0c5d52b

File tree

5 files changed

+11
-22
lines changed

5 files changed

+11
-22
lines changed

.gitlab-ci.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ build:docker:
1111
script:
1212
- docker build --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_BRANCH} .
1313
tags:
14-
- docker
14+
- docker-image-builder
1515

1616
build:precommit:
1717
stage: build
1818
image: python:3.11
1919
before_script:
20-
- pip3 install -r requirements-dev.txt
20+
- pip install .[dev]
2121
script:
2222
- pre-commit run --all-files
2323

@@ -27,8 +27,7 @@ build:test:
2727
services:
2828
- rabbitmq:latest
2929
before_script:
30-
- pip3 install -r requirements.txt
31-
- pip3 install -r requirements-dev.txt
30+
- pip3 install .[dev]
3231
script:
3332
- pytest -v
3433

@@ -41,7 +40,7 @@ build:dist:
4140
paths:
4241
- dist/
4342
tags:
44-
- docker
43+
- docker-image-builder
4544

4645
# Stage: deploy
4746
##############################################################################

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ FROM python:3.11 AS builder
44
WORKDIR /build
55
COPY . .
66

7-
COPY requirements.txt /tmp/
8-
RUN pip install --no-cache-dir -r /tmp/requirements.txt
7+
RUN pip install .
98

109
RUN python3 setup.py sdist && \
1110
pip install dist/*.tar.gz --target /install

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ dependencies = [
2626
"pyusb"
2727
]
2828

29+
[project.optional-dependencies]
30+
dev = [
31+
"pytest",
32+
"pre-commit"
33+
]
34+
2935
[project.license]
3036
text = "Apache-2.0"
3137

requirements-dev.txt

-2
This file was deleted.

requirements.txt

-13
This file was deleted.

0 commit comments

Comments
 (0)