Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Pwnagotchi image buildable #1120

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Add pip-compile'd requirements.txt
In theory, this file shouldn't need to be regenerated very often.
One thing of note is that pip-compile strongly recommends that it be run
on the target system in order to ensure it selects the correct versions.
This is because pip-compile doesn't (yet) have a way to specify the
Python version, platform, and machine type during compilation.
The setup.py file was also tweaked to ignore any --options in the
requirements.txt file.

Signed-off-by: llamasoft <llamasoft@rm-rf.email>
  • Loading branch information
llamasoft committed Oct 8, 2022
commit 339a219b976de0389aa5d9699713f60418a8d6df
234 changes: 192 additions & 42 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,45 +1,195 @@
pycryptodome==3.9.4
requests==2.21.0
PyYAML==5.3.1
scapy==2.4.3
gym==0.14.0
scipy==1.3.1
stable-baselines==2.7.0
#
# This file is autogenerated by pip-compile with python 3.7
# To update, run:
#
# pip-compile --resolver=backtracking --strip-extras
#
--extra-index-url https://www.piwheels.org/simple

absl-py==1.2.0
# via
# tensorboard
# tensorflow
astor==0.8.1
# via tensorflow
atari-py==0.2.6
# via gym
certifi==2022.9.24
# via requests
charset-normalizer==2.1.1
# via requests
click==7.1.2
# via flask
cloudpickle==1.6.0
# via
# gym
# stable-baselines
cycler==0.11.0
# via matplotlib
dbus-python==1.3.2
# via -r requirements.in
file-read-backwards==2.0.0
# via -r requirements.in
flask==1.1.4
# via
# -r requirements.in
# flask-cors
# flask-wtf
flask-cors==3.0.10
# via -r requirements.in
flask-wtf==1.0.1
# via -r requirements.in
fonttools==4.37.4
# via matplotlib
gast==0.5.3
# via tensorflow
google-pasta==0.2.0
# via tensorflow
grpcio==1.49.1
# via
# tensorboard
# tensorflow
gym==0.19.0
# via
# -r requirements.in
# stable-baselines
h5py==3.7.0
# via keras-applications
idna==3.4
# via requests
importlib-metadata==5.0.0
# via
# gym
# markdown
inky==1.4.0
# via -r requirements.in
itsdangerous==1.1.0
# via
# flask
# flask-wtf
jinja2==2.11.3
# via flask
joblib==1.2.0
# via stable-baselines
keras-applications==1.0.8
# via tensorflow
keras-preprocessing==1.1.2
# via tensorflow
kiwisolver==1.4.4
# via matplotlib
markdown==3.4.1
# via tensorboard
markupsafe==2.0.1
# via
# -r requirements.in
# jinja2
# wtforms
matplotlib==3.5.3
# via stable-baselines
numpy==1.21.4
# via
# -r requirements.in
# atari-py
# gym
# h5py
# inky
# keras-applications
# keras-preprocessing
# matplotlib
# opencv-python
# pandas
# scipy
# stable-baselines
# tensorboard
# tensorflow
opencv-python==4.6.0.66
# via
# gym
# stable-baselines
packaging==21.3
# via matplotlib
pandas==1.3.5
# via stable-baselines
pillow==9.2.0
# via
# -r requirements.in
# matplotlib
protobuf==4.21.7
# via
# tensorboard
# tensorflow
pycryptodome==3.15.0
# via -r requirements.in
pyglet==1.5.27
# via gym
pyparsing==3.0.9
# via
# matplotlib
# packaging
python-dateutil==2.8.2
# via
# -r requirements.in
# matplotlib
# pandas
pytz==2022.4
# via pandas
pyyaml==6.0
# via -r requirements.in
requests==2.28.1
# via -r requirements.in
scapy==2.4.5
# via -r requirements.in
scipy==1.7.3
# via stable-baselines
six==1.16.0
# via
# atari-py
# flask-cors
# google-pasta
# grpcio
# keras-preprocessing
# python-dateutil
# tensorboard
# tensorflow
smbus2==0.4.2
# via
# -r requirements.in
# inky
spidev==3.5
# via
# -r requirements.in
# inky
stable-baselines==2.10.2
# via -r requirements.in
tensorboard==1.13.1
# via tensorflow
tensorflow==1.13.1
# via -r requirements.in
tensorflow-estimator==1.14.0
tweepy==3.7.0
file-read-backwards==2.0.0
numpy==1.20.2
inky==1.2.0
smbus2==0.3.0
Pillow==5.4.1
spidev==3.4
gast==0.2.2
flask==1.0.2
flask-cors==3.0.7
flask-wtf==0.14.3
dbus-python==1.2.12
toml==0.10.0
python-dateutil==2.8.1
# via tensorflow
termcolor==2.0.1
# via tensorflow
toml==0.10.2
# via -r requirements.in
typing-extensions==4.3.0
# via
# importlib-metadata
# kiwisolver
urllib3==1.26.12
# via requests
websockets==8.1

# flask==1.0.2 requires:
# Jinja2>=2.10
# Werkzeug>=0.14
# itsdangerous>=0.24

# Jinja2 v2.1.0 requires MarkupSafe>=0.23 for `soft_unicode`
# but the function was removed in MarkupSafe v2.1.0.
# Jinja2 v3.0.0 fixed this issue but flask doesn't support it until v2.0.
MarkupSafe<2.1.0

# Werkzeug v2.2.0 adds a requirement of MarkupSafe>=2.1.1
# which triggers the `soft_unicode` issue in Jinja2.
# Werkzeug v2.1.0 removes `safe_str_cmp` which breaks flask-wtf.
# flask-wtf fixes this in v0.15.
Werkzeug<2.1.0

# flask requires itsdangerous>=0.24 for its `json` module
# but the module was removed in v2.1.0.
# flask fixed this issue in v2.X.
itsdangerous<2.1.0
# via -r requirements.in
werkzeug==1.0.1
# via
# flask
# tensorboard
wheel==0.37.1
# via
# tensorboard
# tensorflow
wrapt==1.14.1
# via tensorflow
wtforms==3.0.1
# via flask-wtf
zipp==3.8.1
# via importlib-metadata
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def version(version_file):
return None

with open('requirements.txt') as fp:
required = [line.strip() for line in fp if line.strip() != ""]
required = [
line.strip()
for line in fp
if line.strip() and not line.startswith("--")
]

VERSION_FILE = 'pwnagotchi/_version.py'
pwnagotchi_version = version(VERSION_FILE)
Expand Down