-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
executable file
·40 lines (30 loc) · 1.22 KB
/
docker-entrypoint.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1.22 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
# Test parse and generation of THIRDPARTYLICENSES from requirements.txt
python -u -m third_party_license_file_generator \
-r /srv/python-third-party-license-file-generator/requirements.txt \
-p "$(which python)" \
--do-not-skip-not-required-packages \
--permit-gpl \
--skip-prefix twine
if ! test -e THIRDPARTYLICENSES; then
echo "error: couldn't find THIRDPARTYLICENSES- something has gone badly wrong"
exit 1
fi
python3 -u /srv/python-third-party-license-file-generator/check_third_party_licenses.py
rm THIRDPARTYLICENSES
# Test parse and generation of THIRDPARTYLICENSES from pyproject.toml (if Python version is 3.x)
if python -c "import sys; sys.exit(0 if sys.version_info.major >= 3 else 1)" 2>/dev/null
then
python -u -m third_party_license_file_generator \
-r /srv/python-third-party-license-file-generator/pyproject.toml \
-p "$(which python)" \
--do-not-skip-not-required-packages \
--permit-gpl \
--skip-prefix twine
if ! test -e THIRDPARTYLICENSES; then
echo "error: couldn't find THIRDPARTYLICENSES- something has gone badly wrong"
exit 1
fi
python3 -u /srv/python-third-party-license-file-generator/check_third_party_licenses.py
fi