Skip to content

Commit 4a6284c

Browse files
authored
Merge pull request #54 from mottosso/maya2022
Add support for Maya 2022
2 parents fb617e1 + 9889ef7 commit 4a6284c

File tree

6 files changed

+322
-122
lines changed

6 files changed

+322
-122
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,23 @@ jobs:
2323
fail-fast: false
2424

2525
matrix:
26-
containerImage: [
27-
"mottosso/maya:2015sp6",
28-
"mottosso/maya:2016sp1",
29-
"mottosso/maya:2017",
30-
"mottosso/maya:2018",
31-
"mottosso/maya:2019",
32-
"mottosso/maya:2020"
33-
]
26+
include:
27+
- maya: "2015sp6"
28+
pip: "2.7/get-pip.py"
29+
- maya: "2016sp1"
30+
pip: "2.7/get-pip.py"
31+
- maya: "2017"
32+
pip: "2.7/get-pip.py"
33+
- maya: "2018"
34+
pip: "2.7/get-pip.py"
35+
- maya: "2019"
36+
pip: "2.7/get-pip.py"
37+
- maya: "2020"
38+
pip: "2.7/get-pip.py"
39+
- maya: "2022"
40+
pip: "get-pip.py"
3441

35-
container: ${{ matrix.containerImage }}
42+
container: mottosso/maya:${{ matrix.maya }}
3643

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

4249
- name: pip install
4350
run: |
44-
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
51+
wget https://bootstrap.pypa.io/pip/${{ matrix.pip }}
4552
mayapy get-pip.py --user
4653
mayapy -m pip install --user \
4754
nose \

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM mottosso/maya:2020
1+
FROM mottosso/maya:2022
22

3-
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
3+
RUN wget https://bootstrap.pypa.io/pip/get-pip.py && \
44
mayapy get-pip.py --user && \
55
mayapy -m pip install --user \
66
nose \

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<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>
22

3-
<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>
3+
<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>
44

55
<br>
66

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

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

3132
##### Status
3233

33-
[![](https://img.shields.io/pypi/v/cmdx?color=steelblue&label=PyPI)](https://github.com/mottosso/cmdx/)
34-
[![](https://img.shields.io/pypi/pyversions/cmdx?color=steelblue)](https://pypi.org/project/cmdx)
35-
36-
| Maya | Status
37-
|:----------|:-----
38-
| 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)
39-
| 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)
40-
| 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)
41-
| 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)
42-
| 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)
43-
| 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)
34+
[![](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)
35+
36+
| Maya | Status
37+
|:----------|:----
38+
| 2015 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
39+
| 2016 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
40+
| 2017 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
41+
| 2018 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
42+
| 2019 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
43+
| 2020 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
44+
| 2022 | [![cmdx-test](https://github.com/mottosso/cmdx/actions/workflows/main.yml/badge.svg)](https://github.com/mottosso/cmdx/actions/workflows/main.yml)
4445

4546
##### Usecases
4647

build_docs.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
from sphinx.cmdline import main
1+
try:
2+
# Python 2
3+
from sphinx.cmdline import main
4+
5+
except ImportError:
6+
# Python 3
7+
from sphinx.cmd.build import main
8+
29
from maya import standalone
310

411
print("Initializing Maya..")

0 commit comments

Comments
 (0)