Skip to content

Commit

Permalink
Freeze Python dependencies with pip freeze -l (#1322)
Browse files Browse the repository at this point in the history
* Freeze Python dependencies with 'pip freeze -l'

* Freeze common dependencies; add section to README
  • Loading branch information
rdmark authored Nov 9, 2023
1 parent 1585a2f commit bd33f66
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
14 changes: 12 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ packages that are shared among the clients.
The following paragraphs in this README contain instructions that are shared
among all Python apps.

## Supported Python interpreter
## Supported Python interpreters

The policy in this project is to support the Python 3 interpreter that comes
standard with the current stable, as well as previous stable release of Debian.
standard with the current stable, as well as the previous stable releases of Debian.

At the time of writing they are:
- Python 3.11 in [Debian Bookworm](https://packages.debian.org/bookworm/python3)
- Python 3.9 in [Debian Bullseye](https://packages.debian.org/bullseye/python3)

## Dependencies

We use 'pip freeze' to manage explicit Python dependencies in this project.
After adding new or bumping the versions of Python dependencies,
please run the following command in the requisite subdir commit the results:

```
pip freeze -l > requirements.txt
```

## Static analysis and formatting

The CI workflow is set up to check code formatting with `black`,
Expand Down
4 changes: 4 additions & 0 deletions python/common/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
certifi==2023.7.22
charset-normalizer==3.3.2
idna==3.4
protobuf==3.19.5
requests==2.31.0
urllib3==2.0.7
vcgencmd==0.1.1
13 changes: 12 additions & 1 deletion python/oled/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
Adafruit-Blinka==8.24.0
adafruit-circuitpython-busdevice==5.2.6
adafruit-circuitpython-framebuf==1.6.4
adafruit-circuitpython-requests==2.0.2
adafruit-circuitpython-ssd1306==2.12.11
adafruit-circuitpython-typing==1.9.5
Adafruit-PlatformDetect==3.53.0
Adafruit-PureIO==1.1.11
Pillow==10.0.1
protobuf==3.20.2
unidecode==1.3.6
pyftdi==0.55.0
pyserial==3.5
pyusb==1.2.1
typing_extensions==4.8.0
Unidecode==1.3.6
11 changes: 9 additions & 2 deletions python/web/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
Babel==2.13.1
bjoern==3.2.2
blinker==1.6.3
charset-normalizer==2.1.1
click==8.1.7
Flask==3.0.0
flask-babel==4.0.0
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.3
protobuf==3.20.2
pytz==2023.3.post1
requests==2.31.0
simplepam==0.1.5
flask_babel==4.0.0
ua-parser==0.16.1
vcgencmd==0.1.1
werkzeug==3.0.1
Werkzeug==3.0.1

0 comments on commit bd33f66

Please sign in to comment.