~aleteoryx/muditaos

b00fa887cfc40c9982618c51ac45f46e90f25447 — Adam Dobrowolski 4 years ago e338b69
[EGD-7424] Added requirements to tools

Requirements are needed to know what python libraries our tools use
2 files changed, 57 insertions(+), 0 deletions(-)

A tools/README.md
A tools/requirements.txt
A tools/README.md => tools/README.md +48 -0
@@ 0,0 1,48 @@
MuditaOS misc tooling
=====================

# Installing packages

```
python3 -m pip install -r requirements.txt
```

# Updating packages

1. Create venv with curent setup:  
```
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
```

2. Install required packages  

3. Freeze requirements:  
```
pip freeze > requirements.txt
```

# Testing for proper asset download configuration:

0. check if you have token configured

```
git config user.apitoken
```

**if not**  please add token ( see doc: [documentation](../doc/download_asset.md)

1. check if you have access to PureUpdater repository in read mode

```
curl -o /dev/null -H "Authorization: token $(git config user.apitoken)" "https://api.github.com/repos/mudita/PureUpdater"
```
**if not** Then please either fix your token access, or request access to PureUpdater

2. Check if you can list releases on repository:
```
python3 ./tools/download_asset.py -w ./ PureUpdater list                                                                                                                                             21s[cbe063dc6]
```

**if not** Then fix your token, or request access to PureUpdater

A tools/requirements.txt => tools/requirements.txt +9 -0
@@ 0,0 1,9 @@
certifi==2021.5.30
charset-normalizer==2.0.4
gitdb==4.0.7
GitPython==3.1.18
idna==3.2
requests==2.26.0
smmap==4.0.0
tqdm==4.62.2
urllib3==1.26.6