Skip to content

Commit

Permalink
Merge pull request #54 from mottosso/maya2022
Browse files Browse the repository at this point in the history
Add support for Maya 2022
  • Loading branch information
mottosso authored Mar 25, 2021
2 parents fb617e1 + 9889ef7 commit 4a6284c
Show file tree
Hide file tree
Showing 6 changed files with 322 additions and 122 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,23 @@ jobs:
fail-fast: false

matrix:
containerImage: [
"mottosso/maya:2015sp6",
"mottosso/maya:2016sp1",
"mottosso/maya:2017",
"mottosso/maya:2018",
"mottosso/maya:2019",
"mottosso/maya:2020"
]
include:
- maya: "2015sp6"
pip: "2.7/get-pip.py"
- maya: "2016sp1"
pip: "2.7/get-pip.py"
- maya: "2017"
pip: "2.7/get-pip.py"
- maya: "2018"
pip: "2.7/get-pip.py"
- maya: "2019"
pip: "2.7/get-pip.py"
- maya: "2020"
pip: "2.7/get-pip.py"
- maya: "2022"
pip: "get-pip.py"

container: ${{ matrix.containerImage }}
container: mottosso/maya:${{ matrix.maya }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -41,7 +48,7 @@ jobs:

- name: pip install
run: |
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
wget https://bootstrap.pypa.io/pip/${{ matrix.pip }}
mayapy get-pip.py --user
mayapy -m pip install --user \
nose \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mottosso/maya:2020
FROM mottosso/maya:2022

RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
RUN wget https://bootstrap.pypa.io/pip/get-pip.py && \
mayapy get-pip.py --user && \
mayapy -m pip install --user \
nose \
Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a href=/cmdx/><p align=center><img height=140 src=https://user-images.githubusercontent.com/2152766/34321609-f134e0cc-e80a-11e7-8dad-d124fea80e77.png></p></a>

<p align=center>A fast subset of <a href=http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/index.html><code>maya.cmds</code></a></p>
<p align=center>A fast subset of <a href=http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/index.html><code>maya.cmds</code></a><br>For Maya 2015-2022</p>

<br>

Expand All @@ -23,24 +23,25 @@ On average, `cmdx` is **140x faster** than [PyMEL](https://github.com/LumaPictur

| Date | Version | Event
|:---------|:----------|:----------
| Mar 2020 | 0.5.1 | Support for Maya 2022
| Mar 2020 | 0.5.0 | Stable release
| Aug 2019 | 0.4.0 | Public release
| Feb 2018 | 0.1.0 | Extracted into its own repository
| Jun 2017 | 0.0.0 | Starts as an internal module

##### Status

[![](https://img.shields.io/pypi/v/cmdx?color=steelblue&label=PyPI)](https://github.com/mottosso/cmdx/)
[![](https://img.shields.io/pypi/pyversions/cmdx?color=steelblue)](https://pypi.org/project/cmdx)

| Maya | Status
|:----------|:-----
| 2015 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2015)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
| 2016 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2016)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
| 2017 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2017)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
| 2018 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2018)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
| 2019 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2019)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
| 2020 | [![Build Status](https://mottosso.visualstudio.com/cmdx/_apis/build/status/mottosso.cmdx?branchName=master&jobName=Maya&configuration=Maya%20maya2020)](https://mottosso.visualstudio.com/cmdx/_build/latest?definitionId=7&branchName=master)
[![](https://img.shields.io/pypi/v/cmdx?color=steelblue&label=PyPI)](https://github.com/mottosso/cmdx/) [![](https://img.shields.io/pypi/pyversions/cmdx?color=steelblue)](https://pypi.org/project/cmdx)

| Maya | Status
|:----------|:----
| 2015 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2016 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2017 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2018 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2019 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2020 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
| 2022 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)

##### Usecases

Expand Down
9 changes: 8 additions & 1 deletion build_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from sphinx.cmdline import main
try:
# Python 2
from sphinx.cmdline import main

except ImportError:
# Python 3
from sphinx.cmd.build import main

from maya import standalone

print("Initializing Maya..")
Expand Down
Loading

0 comments on commit 4a6284c

Please sign in to comment.