Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add clarification to testing instructions #47

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### How was this change tested?

### Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.
### Did you run the "Job Bundle Output Tests", as outlined in [DEVELOPMENT](../DEVELOPMENT.md)? If not, why not? If so, paste the test results here.

```
Required: paste the contents of job_bundle_output_tests/test-job-bundle-results.txt here
Expand Down
17 changes: 10 additions & 7 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ All of the testing and development dependencies are in the `setup.cfg` and are m

WARNING: This workflow installs additional Python packages into your Maya's python distribution.

1. Create a development location within which to do your git checkouts. For example `~/deadline-clients`. Clone packages from this directory with commands like `git clone [email protected]:casillas2/deadline-cloud-for-maya.git`. You'll also want the `deadline-cloud` and `openjd` repos.
2. Switch to your Maya directory, like `cd "C:\Program Files\Autodesk\Maya2023"`.
3. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud` to install the Amazon Deadline Cloud Client Library in edit mode.
4. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\openjd-adaptor-runtime-for-python` to install the Open Job Description Adaptor Runtime Library in edit mode.
5. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud-for-maya` to install the Maya submitter in edit mode.
0. Install Maya locally.
1. Create a development location (e.g a new directory) within which to do your git checkouts. Clone packages the following packages to this directory: `deadline-cloud-for-maya`, `deadline-cloud` and `openjd-adaptor-runtime-for-python` repos.
2. Switch to your Maya directory, default location is `cd "C:\Program Files\Autodesk\Maya2023"`.
3. Run `.\bin\mayapy.exe -m pip install -e <path-to>\deadline-cloud` to install the Amazon Deadline Cloud Client Library in edit mode.
4. Run `.\bin\mayapy.exe -m pip install -e <path-to>\openjd-adaptor-runtime-for-python` to install the Open Job Description Adaptor Runtime Library in edit mode.
5. Run `.\bin\mayapy.exe -m pip install -e <path-to>\deadline-cloud-for-maya` to install the Maya submitter in edit mode.
6. Edit (create if missing) your `~/Documents/maya/2023/Maya.env` file, and add the following lines to it:

```bash
DEADLINE_ENABLE_DEVELOPER_OPTIONS=true
MAYA_MODULE_PATH=C:\Users\<username>\deadline-clients\deadline-cloud-for-maya\maya_submitter_plugin
MAYA_MODULE_PATH=<path-to>\deadline-cloud-for-maya\maya_submitter_plugin
```

The developer options add a shelf TEST button you can use to run the tests from the `job_bundle_output_tests` directory.
7. Run Maya. Go to Windows > Settings/Preferences > Plug-In Manager and you will find that `DeadlineCloudForMaya.py` is available as a plugin. Check the checkbox to have Maya load the plugin and create the Deadline tray for you. Click the icon on the tray to open the submitter.
7. Run Maya. Go to Windows > Settings/Preferences > Plug-In Manager and you will find that `DeadlineCloudForMaya.py` is available as a plugin. Check the checkbox to have Maya load the plugin and create the Deadline tray for you.
8. Go to the tray and click the test icon.
9. In the popup window navigate to and selecct the directory with your tests (i.e. `<path-to>\deadline-cloud-for-maya\job_bundle_output_test`)

## Application Interface Adaptor Development Workflow

Expand Down