Skip to content

Commit 3fa8a17

Browse files
committed
poetry config: explicit package-mode
1 parent b6b2226 commit 3fa8a17

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/run_tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
cache: 'poetry'
6565

6666
- name: install despondencies
67-
run: poetry install --no-root --with dev
67+
run: poetry install --with dev
6868

6969
- name: flake it
7070
run: poetry run flake8 .
@@ -76,7 +76,6 @@ jobs:
7676
env:
7777
DATABASE_PASSWORD: postgres
7878
ELASTICSEARCH8_URL: http://localhost:9208/
79-
# ELASTICSEARCH5_URL: http://localhost:9205/
8079

8180
- name: coveralls
8281
uses: coverallsapp/github-action@v2

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN $POETRY_HOME/bin/pip install poetry==2.1.1
3939
COPY pyproject.toml .
4040
COPY poetry.lock .
4141

42-
RUN $POETRY_HOME/bin/poetry install --no-root --compile
42+
RUN $POETRY_HOME/bin/poetry install --compile
4343

4444
RUN apt-get remove -y \
4545
gcc \
@@ -59,9 +59,9 @@ CMD ["python", "manage.py", "--help"]
5959
### Dist
6060
FROM app AS dist
6161

62-
RUN $POETRY_HOME/bin/poetry install --no-root --compile --only dist
62+
RUN $POETRY_HOME/bin/poetry install --compile --only dist
6363

6464
### Dev
6565
FROM app AS dev
6666

67-
RUN $POETRY_HOME/bin/poetry install --no-root --compile --only dev
67+
RUN $POETRY_HOME/bin/poetry install --compile --only dev

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[project]
22
name = "shtrove"
33
version = "25.1.1" # TODO: get version from share/version.py
4-
package-mode = false
54
description = ""
65
authors = [
76
{name = "CenterForOpenScience", email = "share-support@cos.io"}
@@ -29,13 +28,16 @@ dependencies = [
2928
"primitive_metadata==0.2025.1", # MIT
3029
"sentry-sdk[django]==2.24.1", # MIT
3130

32-
# to be removed in future work:
31+
# to be removed in near-future work:
3332
"djangorestframework==3.16.0", # BSD
3433
"djangorestframework-jsonapi==7.1.0", # BSD
3534
"elasticsearch5==5.5.6", # Apache 2.0
3635
"PyJWE==1.0.0", # Apache 2.0
3736
]
3837

38+
[tool.poetry]
39+
package-mode = false
40+
3941
# "dist" dependency group relevant only in deployment:
4042
[tool.poetry.group.dist]
4143
optional = true

0 commit comments

Comments
 (0)