Skip to content

Commit 64ba146

Browse files
authored
[tools] Remove requests dependency (#37)
1 parent ea9783c commit 64ba146

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/analyze.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
1818
- name: Run gclient sync
1919
run: |
20-
pip3 install requests
2120
gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
2221
gclient sync -v --no-history --shallow --nohooks
2322

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
run: |
3333
sudo apt-get update
3434
sudo apt-get install -y rpm2cpio cpio binutils-${{ matrix.triple }}
35-
pip3 install requests
3635
3736
- name: Install depot_tools
3837
run: |

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ The Flutter embedder for Tizen.
1313
- [LLVM](https://apt.llvm.org) (10 or later)
1414
- `sudo apt install clang-12`
1515
- Additional dependencies
16-
- `sudo apt install git python3 python3-pip rpm2cpio cpio`
16+
- `sudo apt install git python3 rpm2cpio cpio`
1717
- `sudo apt install binutils-arm-linux-gnueabi binutils-aarch64-linux-gnu binutils-i686-linux-gnu`
18-
- `pip3 install requests`
1918

2019
### Environment setup
2120

tools/download_engine.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
import requests
76
import shutil
87
import sys
98
import urllib.request
@@ -22,11 +21,13 @@ def main():
2221
if stamp_file.is_file():
2322
stamp = stamp_file.read_text().strip()
2423

25-
version = ''
2624
# The GitHub REST API cannot be used in the company network due to an
2725
# "API rate limit exceeded" error. The following is a workaround.
28-
request = requests.get('{}/latest'.format(github_url))
29-
redirected_url = request.url
26+
redirected_url = ''
27+
with urllib.request.urlopen('{}/latest'.format(github_url)) as response:
28+
redirected_url = response.geturl()
29+
30+
version = ''
3031
if '/tag/' in redirected_url:
3132
version = redirected_url.split('/tag/')[-1]
3233

0 commit comments

Comments
 (0)