Skip to content

Commit 29512f2

Browse files
committed
Disable package-mode for python projects
1 parent fcd98f4 commit 29512f2

17 files changed

Lines changed: 416 additions & 395 deletions

File tree

.github/workflows/build-hardware-controller.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Python
4040
uses: actions/setup-python@v5
4141
with:
42-
python-version: '3.10'
42+
python-version: '3.11'
4343
cache: 'poetry'
4444
cache-dependency-path: |
4545
device-backend/control/poetry.lock
@@ -48,7 +48,7 @@ jobs:
4848
working-directory: ./device-backend/control
4949
run: |
5050
sudo apt-get install -y libcap-dev
51-
poetry install --with dev --no-root
51+
poetry install --with dev
5252
5353
- name: Run checks
5454
working-directory: ./device-backend/control

.github/workflows/documentation-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Install build dependencies
6262
run: |
63-
poetry -C ./documentation/ install --no-root
63+
poetry -C ./documentation/ install
6464
6565
- name: Make documentation ${{ matrix.variant }}
6666
if: matrix.variant != 'default'

.github/workflows/documentation-deploy-beta.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest
1111
# queued. But do not cancel in-progress runs - we want these deploymeents to complete.
1212
concurrency:
13-
group: "docs-beta-deploy"
13+
group: 'docs-beta-deploy'
1414
cancel-in-progress: false
1515

1616
env:
17-
DESTINATION_OWNER: ${{ github.repository_owner }}
17+
DESTINATION_OWNER: ${{ github.repository_owner }}
1818

1919
defaults:
2020
run:
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install build dependencies
5151
run: |
5252
sudo apt install libjpeg-dev
53-
poetry -C ./documentation/ install --with imaging --no-root
53+
poetry -C ./documentation/ install --with imaging
5454
5555
- name: Set release channel
5656
working-directory: documentation

.github/workflows/documentation-deploy-edge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest
2121
# queued. But do not cancel in-progress runs - we want these deploymeents to complete.
2222
concurrency:
23-
group: "docs-edge-deploy"
23+
group: 'docs-edge-deploy'
2424
cancel-in-progress: false
2525

2626
defaults:
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install build dependencies
5656
run: |
5757
sudo apt install libjpeg-dev
58-
poetry -C ./documentation/ install --with imaging --no-root
58+
poetry -C ./documentation/ install --with imaging
5959
6060
- name: Set release channel
6161
working-directory: documentation

.github/workflows/documentation-deploy-stable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest
1111
# queued. But do not cancel in-progress runs - we want these deploymeents to complete.
1212
concurrency:
13-
group: "docs-stable-deploy"
13+
group: 'docs-stable-deploy'
1414
cancel-in-progress: false
1515

1616
env:
17-
DESTINATION_OWNER: ${{ github.repository_owner }}
17+
DESTINATION_OWNER: ${{ github.repository_owner }}
1818

1919
defaults:
2020
run:
@@ -51,7 +51,7 @@ jobs:
5151
working-directory: documentation
5252
run: |
5353
sudo apt install libjpeg-dev
54-
poetry install --with imaging --no-root
54+
poetry install --with imaging
5555
5656
- name: Build documentation
5757
env:

device-backend/control/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Each feature of the hardware is controlled by a separate process. Processes comm
88

99
Please note the following particularity of Python processes
1010

11-
> Bear in mind that each spawned process is initialized with a copy of the memory footprint of the master process. And that the constructor code (i.e. stuff inside __init__()) is executed in the master process -- only code inside run() executes in separate processes.
11+
> Bear in mind that each spawned process is initialized with a copy of the memory footprint of the master process. And that the constructor code (i.e. stuff inside **init**()) is executed in the master process -- only code inside run() executes in separate processes.
1212
1313
https://stackoverflow.com/a/17220739
1414

@@ -23,17 +23,20 @@ Please note that for camera we rely on the Raspberry OS packages `python3-picame
2323
### Development
2424

2525
To install all dependencies including development tooling, run:
26-
```
27-
poetry install --with dev --no-root
26+
27+
```sh
28+
poetry install --with dev
2829
```
2930

3031
Then you can run the code auto-formatter on the project by running:
31-
```
32+
33+
```sh
3234
poetry run poe fmt
3335
```
3436

3537
And you can run all checks (including code formatting and linting) by running:
36-
```
38+
39+
```sh
3740
poetry run poe check
3841
```
3942

@@ -43,7 +46,7 @@ We recommand using [https://code.visualstudio.com/docs/remote/ssh](https://code.
4346

4447
To use this project, you'll need:
4548

46-
- Python >= 3.9
49+
- Python >= 3.11.2
4750
- Poetry 2.1.2
4851

4952
## Licensing

device-backend/control/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[tool.poetry]
2+
package-mode = false
23
name = "planktoscope-controller"
3-
# Note: PEP 440 requires pre-releases to be formatted like "2023.7.0b0" rather than
4-
# "2023.7.0-beta.0", which is different from the Semantic Versioning schema
5-
version = "2024.0.0"
64
description = "Controller of PlanktoScope hardware"
75
# For simplicity, we follow the definition of "Maintainer" from
86
# https://opensource.guide/how-to-contribute/#anatomy-of-an-open-source-project , which says:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.2
1+
3.11.2

device-backend/processing/segmenter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN \
2626
export PATH="/home/pi/.local/bin:$PATH" && \
2727
pip install --no-cache-dir cryptography==43.0.3 poetry==2.1.2 \
2828
--extra-index-url https://www.piwheels.org/simple && \
29-
poetry install --no-root --only main --compile && \
29+
poetry install --only main --compile && \
3030
poetry --no-interaction cache list && \
3131
poetry --no-interaction cache clear pypi --all && \
3232
poetry --no-interaction cache clear piwheels --all && \

device-backend/processing/segmenter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TBD
2222

2323
To use this project, you'll need:
2424

25-
- Python >= 3.9
25+
- Python >= 3.11.2
2626
- Poetry 2.1.2
2727

2828
## Licensing

0 commit comments

Comments
 (0)