mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:06:24 +08:00
Show used Python dependencies
Note: this is just a dumb list of everything in the venv. This will contain more modules than actually shipped
This commit is contained in:
parent
7f62744e21
commit
a7a42eea6d
16
.github/workflows/cura-installer.yml
vendored
16
.github/workflows/cura-installer.yml
vendored
@ -299,6 +299,22 @@ jobs:
|
|||||||
for dep in sorted_deps:
|
for dep in sorted_deps:
|
||||||
f.writelines(f"`{dep}`\n")
|
f.writelines(f"`{dep}`\n")
|
||||||
|
|
||||||
|
- name: Summarize the used Python modules
|
||||||
|
shell: python
|
||||||
|
run: |
|
||||||
|
import pkg_resources
|
||||||
|
summary_env = os.environ["GITHUB_STEP_SUMMARY"]
|
||||||
|
content = ""
|
||||||
|
if os.path.exists(summary_env):
|
||||||
|
with open(summary_env, "r") as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
with open(summary_env, "w") as f:
|
||||||
|
f.write(content)
|
||||||
|
f.writelines("# ${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }} installed Python modules:\n")
|
||||||
|
for package in pkg_resources.working_set:
|
||||||
|
f.writelines(f"`{package.key}/{package.version}`\n")
|
||||||
|
|
||||||
- name: Archive the artifacts (bash)
|
- name: Archive the artifacts (bash)
|
||||||
if: ${{ !inputs.installer && runner.os != 'Windows' }}
|
if: ${{ !inputs.installer && runner.os != 'Windows' }}
|
||||||
run: tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz" "./UltiMaker-Cura/"
|
run: tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz" "./UltiMaker-Cura/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user