-
Notifications
You must be signed in to change notification settings - Fork 129
Add rez
packages generation for server_addons
#6169
Conversation
|
||
|
||
if create_zip: | ||
shutil.make_archive( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZipFileLongPaths
was used because shutil.make_archive
did crash on Windows when a certain path length of path was used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And there is missing manifest file which is used when package is uploaded via frontend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZipFileLongPaths was used because shutil.make_archive did crash on Windows when a certain path length of path was used.
Even with enabling longer than 260 char paths in Windows?
The manifest is no longer needed in this instance, the info is in the package.py
this will only work with the rez
backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even with enabling longer than 260 char paths in Windows?
Well, you have to enable it, and you have to know that you have to enable it, most people don't. They'll just tell "it's broken" or "it does not work".
This commit will add a `python` script that allows us to quickly generate packages for `ayon-backend` ingestion, either by copying them to the `rez` repo (not advised) or installing them via the `ayon-frontend` by uploading the resulting `zip`s of the script.
…ctories correctly.
ba35435
to
52a1cd8
Compare
No point merging this here at this point. Let's port to AYON please @Minkiu |
These changes are now in this PR: ynput/ayon-core#64 |
This commit will add a
python
script that allows us to quickly generate packages forayon-backend
ingestion, either by copying them to therez
repo (not advised) or installing them via theayon-frontend
by uploading the resultingzip
s of the script.Changelog Description
This is a PR that will allow us to then test the functionality of this
ayon-backend
PR: ynput/ayon-backend#29Instead of creating a folder structure at this step, we delegate it to the
rezbuild.py
on theayon-backend
which expects thepackage.py
and the usual folder structure of the addon source code (https://github.com/ynput/ayon-addon-template), thus this step is greatly simplified where we only copy the contents of the addon, add apackage.py
and zip them up. The caveat of theopenpype
package is the same, so an extra step to copy the required things of OpenPype into theclient
folder.Testing notes:
python create_ayon_rez_addons.py
zip
archives have been generated inOpenPype/server_addon/rez_packages
TODO