Skip to content

Commit b4ea9c6

Browse files
authored
Merge pull request #2151 from Abhishek-Dev09/295-reqs.txt
Add pip-tools and github_release_retry as req files
2 parents 9d22042 + d4ae41a commit b4ea9c6

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

etc/scripts/README.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
*Before generating requirement tools and uploading asset make sure you've installed the prerequisites properly. This mainly :*
2+
- pip-tools
3+
- github-release-retry
4+
5+
Instruction for generating requirement tools:
6+
=============================================
7+
- For this you must run on your terminal:
8+
9+
``pip pip install -r etc/scripts/req_tools.txt``
10+
11+
- Then run ``python etc/scripts/freeze_and_update_reqs.py --help`` on terminal
12+
13+
From this you get the guidelines how to generate requirement tools.
14+
15+
Instruction for uploading assets:
16+
=================================
17+
18+
- Just run ``python etc/scripts/github_release.py --help``
19+
- From this you get the guidelines how to upload asset to github repositotory as an asset.
20+
121
This directory contains miscellaneous scripts of some use with ScanCode.
222

3-
- json2csv: convert a scan JSON to a CSV.
23+
- json2csv: convert a scan JSON to a CSV.

etc/scripts/freeze_and_update_reqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def main_with_args(args: str) -> None:
124124
upgrade = args.upgrade or False
125125
generate_req_text(
126126
find_links=find_links,
127-
requirement=requirement,
128-
upgrade_package=upgrade_package,
127+
req_file=requirement,
128+
package_name=upgrade_package,
129129
upgrade=upgrade,
130130
)
131131

etc/scripts/req_tools.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pip-tools
2+
github-release-retry

0 commit comments

Comments
 (0)