47394300d7c5bbdbfdf25bd2f82c0f0a9676f045
Navigate to folder with tests:
$ cd AtomicCi/statictic_page/new_page/
Create python virtualenv with python3 and activate it:
$ virtualenv -p python3 envname $ . envname/bin/activate
Install requirenments:
$ pip install -r requirenments.txt
Edit file config.py, add upstreamfirst_api_key and dist_git_api_key. You can generate then on settings page:
config.py
upstreamfirst_api_key
dist_git_api_key
upstreamfirst_api_key = '' dist_git_api_key = '' UPSTREAMFIRST_URL = 'https://upstreamfirst.fedorainfracloud.org/' DIST_GIT_URL = 'https://src.fedoraproject.org/' FILE_UPLOAD_2_WIKI = 'upload_to_wiki.txt' FILE_PACKAGES = 'upstreamfirst_packages.txt'
Also you can change names of the files FILE_UPLOAD_2_WIKI and FILE_PACKAGES
FILE_UPLOAD_2_WIKI
FILE_PACKAGES
To run code just execute in a command line:
$ python runner.py
File upstreamfirst_packages.txt will be created. You can simply check progress by executing following command in another terminal:
upstreamfirst_packages.txt
$ tail -f upstreamfirst_packages.txt
After script will be finished, find upload_to_wiki.txt. Use data to upload it to the wiki.
upload_to_wiki.txt
The result: https://fedoraproject.org/wiki/CI/Tests/new-stat#This_page_is_automatically_updated._Do_not_edit.
Pull-Request has been closed by sturivny
Get packages statistic and generate file
Navigate to folder with tests:
Create python virtualenv with python3
and activate it:
Install requirenments:
Edit file
config.py, addupstreamfirst_api_keyanddist_git_api_key. You can generate then on settings page:Also you can change names of the files
FILE_UPLOAD_2_WIKIandFILE_PACKAGESTo run code just execute in a command line:
File
upstreamfirst_packages.txtwill be created.You can simply check progress by executing following command in another terminal:
After script will be finished, find
upload_to_wiki.txt. Use data to upload it to the wiki.The result: https://fedoraproject.org/wiki/CI/Tests/new-stat#This_page_is_automatically_updated._Do_not_edit.