initial commit/perceval test
This commit is contained in:
commit
5111c3530f
26
perceval_tasks.py
Normal file
26
perceval_tasks.py
Normal file
@ -0,0 +1,26 @@
|
||||
import perceval
|
||||
import venv
|
||||
import yaml
|
||||
import subprocess
|
||||
|
||||
def main(manifest):
|
||||
with open(manifest, 'r') as stream:
|
||||
#try:
|
||||
config = yaml.safe_load(stream)
|
||||
get_perceval_log(config['Upstream_VCS'])
|
||||
print(config['Upstream_VCS'])
|
||||
#except yaml.YAMLOError as err:
|
||||
# print(err)
|
||||
|
||||
def get_perceval_log(vcs_path):
|
||||
print(vcs_path)
|
||||
perceval_output = subprocess.run(['perceval', 'git', vcs_path[0], '--from-date', '2023-08-08'], capture_output=True)
|
||||
print(type(perceval_output.__str__()))
|
||||
with open('test_perceval_output.txt', 'w') as f:
|
||||
f.write(perceval_output.__str__())
|
||||
print('COMPLETE')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
manifest = '../kaylea_dissertation/lifecycle/package_metadata/woof_manifest.yaml'
|
||||
main(manifest)
|
1
test_perceval_output.txt
Normal file
1
test_perceval_output.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user