-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_license.sh
28 lines (21 loc) · 1.13 KB
/
gen_license.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#############################################################################
# Copyright (c) 2023 Pyheartlib team. - All Rights Reserved #
# Project repo: https://github.com/devnums/pyheartlib #
# Contact: devnums.code@gmail.com #
# #
# This file is part of the Pyheartlib project. #
# To see the complete LICENSE file visit: #
# https://github.com/devnums/pyheartlib/blob/main/LICENSE #
#############################################################################
poetry export -o requirements.textt --without-hashes
pythonpath=$(poetry env info --path)
pythonpath+=/bin/python
echo $pythonpath
poetry run python -m third_party_license_file_generator -r requirements.textt -p $pythonpath
cat ext_licenses.textt >> THIRDPARTYLICENSES
sed -i '8,$d' ACKNOWLEDGEMENTS.txt
cat THIRDPARTYLICENSES >> ACKNOWLEDGEMENTS.txt
rm THIRDPARTYLICENSES
# internet connection is required before running
# ./gen_license.sh