maya-brew 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maya_brew-0.0.4/.github/pull_request_template.md +24 -0
- maya_brew-0.0.4/.github/workflows/docker-publish.yml +44 -0
- maya_brew-0.0.4/.github/workflows/linter.yml +110 -0
- maya_brew-0.0.4/.github/workflows/release.yml +46 -0
- maya_brew-0.0.4/.github/workflows/test-mayapy.yml +44 -0
- maya_brew-0.0.4/.gitignore +179 -0
- maya_brew-0.0.4/.mise.toml +11 -0
- maya_brew-0.0.4/Dockerfile +49 -0
- maya_brew-0.0.4/LICENSE +21 -0
- maya_brew-0.0.4/PKG-INFO +71 -0
- maya_brew-0.0.4/README.md +44 -0
- maya_brew-0.0.4/pyproject.toml +58 -0
- maya_brew-0.0.4/src/maya_brew/__init__.py +50 -0
- maya_brew-0.0.4/src/maya_brew/attributes/__init__.py +0 -0
- maya_brew-0.0.4/src/maya_brew/attributes/node_attribute.py +176 -0
- maya_brew-0.0.4/src/maya_brew/exceptions.py +4 -0
- maya_brew-0.0.4/src/maya_brew/log.py +338 -0
- maya_brew-0.0.4/src/maya_brew/maya_initializer/__init__.py +0 -0
- maya_brew-0.0.4/src/maya_brew/maya_initializer/interactive_init.py +18 -0
- maya_brew-0.0.4/src/maya_brew/maya_initializer/interactive_utils.py +26 -0
- maya_brew-0.0.4/src/maya_brew/maya_initializer/shared.py +10 -0
- maya_brew-0.0.4/src/maya_brew/maya_initializer/standalone_init.py +27 -0
- maya_brew-0.0.4/src/maya_brew/nodes/__init__.py +0 -0
- maya_brew-0.0.4/src/maya_brew/nodes/cast.py +65 -0
- maya_brew-0.0.4/src/maya_brew/nodes/node_types.py +87 -0
- maya_brew-0.0.4/src/maya_brew/scene.py +25 -0
- maya_brew-0.0.4/src/maya_brew/utils.py +26 -0
- maya_brew-0.0.4/super-linter-output/super-linter-summary.md +16 -0
- maya_brew-0.0.4/tests/__init__.py +0 -0
- maya_brew-0.0.4/tests/maya_brew/__init__.py +0 -0
- maya_brew-0.0.4/tests/maya_brew/attributes/__init__.py +0 -0
- maya_brew-0.0.4/tests/maya_brew/attributes/test_node_attributes.py +128 -0
- maya_brew-0.0.4/tests/maya_brew/conftest.py +55 -0
- maya_brew-0.0.4/tests/maya_brew/maya_initializer/__init__.py +0 -0
- maya_brew-0.0.4/tests/maya_brew/maya_initializer/test_standalone_init.py +16 -0
- maya_brew-0.0.4/tests/maya_brew/nodes/__init__.py +0 -0
- maya_brew-0.0.4/tests/maya_brew/nodes/test_cast.py +48 -0
- maya_brew-0.0.4/tests/maya_brew/nodes/test_node_types.py +42 -0
- maya_brew-0.0.4/tests/maya_brew/test_scene.py +18 -0
- maya_brew-0.0.4/uv.lock +105 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Pull Request
|
|
2
|
+
|
|
3
|
+
## What does this PR do?
|
|
4
|
+
|
|
5
|
+
Briefly describe your changes.
|
|
6
|
+
|
|
7
|
+
## Related Issue
|
|
8
|
+
|
|
9
|
+
Link to issue (if any):
|
|
10
|
+
|
|
11
|
+
mortenbohne/maya-brew#XX
|
|
12
|
+
|
|
13
|
+
## Testing
|
|
14
|
+
|
|
15
|
+
How did you test your changes? (Leave blank if not needed)
|
|
16
|
+
|
|
17
|
+
## Checklist
|
|
18
|
+
|
|
19
|
+
- [ ] I reviewed my code
|
|
20
|
+
- [ ] My change does not break existing features
|
|
21
|
+
|
|
22
|
+
## Extra notes
|
|
23
|
+
|
|
24
|
+
(Optional)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Build & Publish Docker (GHCR)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
packages: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
docker:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
env:
|
|
14
|
+
IMAGE: ghcr.io/${{ github.repository_owner }}/maya-brew
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout
|
|
17
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
fetch-depth: 1
|
|
21
|
+
|
|
22
|
+
- name: Login to GHCR
|
|
23
|
+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin
|
|
24
|
+
|
|
25
|
+
- name: Build & Push
|
|
26
|
+
run: |
|
|
27
|
+
set -euo pipefail
|
|
28
|
+
SHORT_SHA="${GITHUB_SHA::7}"
|
|
29
|
+
docker buildx build \
|
|
30
|
+
-t "${IMAGE}:latest" \
|
|
31
|
+
-t "${IMAGE}:sha-${SHORT_SHA}" \
|
|
32
|
+
--push \
|
|
33
|
+
.
|
|
34
|
+
echo "SHORT_SHA=${SHORT_SHA}" >> "$GITHUB_ENV"
|
|
35
|
+
|
|
36
|
+
- name: Summary
|
|
37
|
+
run: |
|
|
38
|
+
set -euo pipefail
|
|
39
|
+
SHORT_SHA="${SHORT_SHA:-${GITHUB_SHA::7}}"
|
|
40
|
+
{
|
|
41
|
+
echo "Published tags:"
|
|
42
|
+
echo "${IMAGE}:latest"
|
|
43
|
+
echo "${IMAGE}:sha-${SHORT_SHA}"
|
|
44
|
+
} | tee -a "$GITHUB_STEP_SUMMARY"
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
# This GitHub Actions workflow is triggered by pull requests, pushes to the
|
|
3
|
+
# develop branch, and manual dispatch events. It sets up a Python environment,
|
|
4
|
+
# installs project dependencies, and then runs Super-Linter on the codebase.
|
|
5
|
+
# The workflow can auto-fix issues on push (committing directly) and produce
|
|
6
|
+
# a PR commit with fixes (via git-auto-commit-action) when running in PRs.
|
|
7
|
+
|
|
8
|
+
name: Lint Code Base
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
pull_request:
|
|
13
|
+
push:
|
|
14
|
+
branches:
|
|
15
|
+
- develop
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
statuses: write
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build:
|
|
23
|
+
name: Lint Code Base
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.11"
|
|
30
|
+
- name: Checkout Code
|
|
31
|
+
uses: actions/checkout@v5
|
|
32
|
+
with:
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
persist-credentials: false
|
|
35
|
+
- name: Cache Python dependencies
|
|
36
|
+
uses: actions/cache@v4
|
|
37
|
+
with:
|
|
38
|
+
path: |
|
|
39
|
+
.venv
|
|
40
|
+
uv.lock
|
|
41
|
+
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml', 'uv.lock') }}
|
|
42
|
+
restore-keys: |
|
|
43
|
+
${{ runner.os }}-uv-
|
|
44
|
+
- name: Install uv
|
|
45
|
+
run: pip install uv
|
|
46
|
+
- name: Sync dependencies
|
|
47
|
+
run: uv sync --extra dev
|
|
48
|
+
- name: Prepare credentials for auto-fix (push only)
|
|
49
|
+
if: github.event_name == 'push'
|
|
50
|
+
env:
|
|
51
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
52
|
+
run: |
|
|
53
|
+
git config user.name "github-actions[bot]"
|
|
54
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
55
|
+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
|
|
56
|
+
- name: Lint Code Base
|
|
57
|
+
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240
|
|
58
|
+
env:
|
|
59
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
60
|
+
DEFAULT_BRANCH: develop
|
|
61
|
+
APPLY_FIXES: true
|
|
62
|
+
APPLY_FIXES_EVENT: push
|
|
63
|
+
APPLY_FIXES_MODE: commit
|
|
64
|
+
VALIDATE_ALL_CODEBASE: true
|
|
65
|
+
LINTER_RULES_PATH: /
|
|
66
|
+
PYTHON_PYLINT_CONFIG_FILE: ./pyproject.toml
|
|
67
|
+
PYTHONPATH: "${{ github.workspace }}/.venv/lib/python3.11/site-packages:${{ github.workspace }}/src"
|
|
68
|
+
SAVE_SUPER_LINTER_SUMMARY: true
|
|
69
|
+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
|
|
70
|
+
VALIDATE_CHECKOV: true
|
|
71
|
+
VALIDATE_GITLEAKS: true
|
|
72
|
+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: true
|
|
73
|
+
VALIDATE_JSON: true
|
|
74
|
+
VALIDATE_JSON_PRETTIER: true
|
|
75
|
+
VALIDATE_MARKDOWN: true
|
|
76
|
+
VALIDATE_MARKDOWN_PRETTIER: true
|
|
77
|
+
VALIDATE_NATURAL_LANGUAGE: true
|
|
78
|
+
VALIDATE_PYTHON_BLACK: true
|
|
79
|
+
VALIDATE_PYTHON_ISORT: true
|
|
80
|
+
VALIDATE_PYTHON_RUFF: true
|
|
81
|
+
VALIDATE_YAML_PRETTIER: true
|
|
82
|
+
FIX_GITHUB_ACTIONS_ZIZMOR: true
|
|
83
|
+
FIX_JSON_PRETTIER: true
|
|
84
|
+
FIX_JSON: true
|
|
85
|
+
FIX_MARKDOWN_PRETTIER: true
|
|
86
|
+
FIX_MARKDOWN: true
|
|
87
|
+
FIX_NATURAL_LANGUAGE: true
|
|
88
|
+
FIX_PYTHON_BLACK: true
|
|
89
|
+
FIX_PYTHON_ISORT: true
|
|
90
|
+
FIX_PYTHON_RUFF: true
|
|
91
|
+
FIX_YAML_PRETTIER: true
|
|
92
|
+
- name: Prepare credentials for PR auto-fix commit
|
|
93
|
+
if: >
|
|
94
|
+
github.event_name == 'pull_request' &&
|
|
95
|
+
github.event.pull_request.head.repo.full_name == github.repository
|
|
96
|
+
env:
|
|
97
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
98
|
+
run: |
|
|
99
|
+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
|
|
100
|
+
- name: Commit and push linting fixes
|
|
101
|
+
if: >
|
|
102
|
+
github.event_name == 'pull_request' &&
|
|
103
|
+
github.ref_name != github.event.repository.default_branch &&
|
|
104
|
+
github.event.pull_request.head.repo.full_name == github.repository
|
|
105
|
+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0
|
|
106
|
+
with:
|
|
107
|
+
branch: ${{ github.event.pull_request.head.ref }}
|
|
108
|
+
commit_message: "chore: fix linting issues"
|
|
109
|
+
commit_user_name: super-linter
|
|
110
|
+
commit_user_email: super-linter@super-linter.dev
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-and-publish:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment: pypi
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v5
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
persist-credentials: false
|
|
22
|
+
|
|
23
|
+
- name: Set up Python
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.11"
|
|
27
|
+
|
|
28
|
+
- name: Install build dependencies (uv)
|
|
29
|
+
run: |
|
|
30
|
+
pip install uv
|
|
31
|
+
|
|
32
|
+
- name: Build distribution (wheel + sdist) with uv (dynamic version from latest tag)
|
|
33
|
+
run: |
|
|
34
|
+
uv build
|
|
35
|
+
|
|
36
|
+
- name: Upload build artifacts
|
|
37
|
+
uses: actions/upload-artifact@v4
|
|
38
|
+
with:
|
|
39
|
+
name: dist-artifacts
|
|
40
|
+
path: dist/*
|
|
41
|
+
|
|
42
|
+
- name: Publish to PyPI
|
|
43
|
+
uses: pypa/gh-action-pypi-publish@ab69e431e9c9f48a3310be0a56527c679f56e04d
|
|
44
|
+
with:
|
|
45
|
+
packages-dir: dist
|
|
46
|
+
skip-existing: true
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Pytest Maya 2026
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- develop
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
packages: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
mayapy-tests:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
container:
|
|
18
|
+
image: ghcr.io/${{ github.repository_owner }}/maya-brew:sha-9daa1a4
|
|
19
|
+
options: --user root
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@v5
|
|
23
|
+
with:
|
|
24
|
+
persist-credentials: false
|
|
25
|
+
fetch-depth: 1
|
|
26
|
+
- name: Install uv
|
|
27
|
+
run: mayapy -m pip install uv
|
|
28
|
+
- name: Cache Python dependencies
|
|
29
|
+
uses: actions/cache@v4
|
|
30
|
+
with:
|
|
31
|
+
path: |
|
|
32
|
+
~/.cache/pip
|
|
33
|
+
~/.cache/uv
|
|
34
|
+
key: mayapy-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
|
|
35
|
+
restore-keys: |
|
|
36
|
+
mayapy-${{ runner.os }}-
|
|
37
|
+
- name: Install project (runtime + dev extras) with uv
|
|
38
|
+
run: |
|
|
39
|
+
mayapy -m uv pip install ".[dev]"
|
|
40
|
+
- name: Run pytest
|
|
41
|
+
run: mayapy -m pytest tests/ -q
|
|
42
|
+
- name: Summary
|
|
43
|
+
if: success()
|
|
44
|
+
run: echo "mayapy pytest run succeeded." >> "$GITHUB_STEP_SUMMARY"
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
175
|
+
|
|
176
|
+
.idea/*
|
|
177
|
+
|
|
178
|
+
# Super-Linter generated GitHub config snapshot (do not commit)
|
|
179
|
+
github_conf/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[tasks."docker:build"]
|
|
2
|
+
description = "Build Docker image"
|
|
3
|
+
run = "docker build -t maya-brew ."
|
|
4
|
+
|
|
5
|
+
[tasks."docker:run"]
|
|
6
|
+
description = "Run Docker container"
|
|
7
|
+
run = "docker run -it --rm maya-brew"
|
|
8
|
+
|
|
9
|
+
[tasks."docker:maya"]
|
|
10
|
+
description = "Run Maya in Docker container"
|
|
11
|
+
run = "mise run docker:run mayapy"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
FROM rockylinux:9.3
|
|
2
|
+
|
|
3
|
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
4
|
+
MAYA_LOCATION=/usr/autodesk/maya2026 \
|
|
5
|
+
PATH=/usr/autodesk/maya2026/bin:$PATH
|
|
6
|
+
|
|
7
|
+
# hadolint ignore=DL3041
|
|
8
|
+
RUN set -eux; \
|
|
9
|
+
dnf install -y epel-release && \
|
|
10
|
+
dnf install -y --allowerasing \
|
|
11
|
+
curl \
|
|
12
|
+
libX11 libXext libXt libXi libXtst libXmu libXpm \
|
|
13
|
+
libXft libXcursor libXinerama libXcomposite libXdamage libXrender libXrandr \
|
|
14
|
+
mesa-libGL mesa-libGLU libglvnd-opengl libglvnd-egl \
|
|
15
|
+
libSM libICE freetype fontconfig \
|
|
16
|
+
libxkbcommon libxkbfile \
|
|
17
|
+
libtiff \
|
|
18
|
+
libva libvdpau \
|
|
19
|
+
nss nspr \
|
|
20
|
+
alsa-lib && \
|
|
21
|
+
dnf clean all && rm -rf /var/cache/dnf
|
|
22
|
+
|
|
23
|
+
# Download & install Maya
|
|
24
|
+
RUN set -eux; \
|
|
25
|
+
curl -L -o /maya.tgz "https://efulfillment.autodesk.com/NetSWDLD/prd/2026/MAYA/901073B8-F0A1-3952-A459-9CA36A875C41/Autodesk_Maya_2026_2_Update_Linux_64bit.tgz" && \
|
|
26
|
+
mkdir /maya_install && \
|
|
27
|
+
tar -xf /maya.tgz -C /maya_install && \
|
|
28
|
+
rpm --force -ivh /maya_install/Packages/Maya2026_64-*.x86_64.rpm && \
|
|
29
|
+
rm -rf /maya.tgz /maya_install && \
|
|
30
|
+
rm -rf /usr/autodesk/maya2026/Examples \
|
|
31
|
+
/usr/autodesk/maya2026/brushImages \
|
|
32
|
+
/usr/autodesk/maya2026/icons \
|
|
33
|
+
/usr/autodesk/maya2026/include \
|
|
34
|
+
/usr/autodesk/maya2026/presets \
|
|
35
|
+
/usr/autodesk/maya2026/qml \
|
|
36
|
+
/usr/autodesk/maya2026/synColor \
|
|
37
|
+
/usr/autodesk/maya2026/translations
|
|
38
|
+
|
|
39
|
+
# Add healthcheck script and non-root user
|
|
40
|
+
# hadolint ignore=SC2016
|
|
41
|
+
RUN set -eux; \
|
|
42
|
+
printf '#!/usr/bin/env bash\nset -e\n[ -x "$MAYA_LOCATION/bin/maya" ] || exit 1\nexit 0\n' >/usr/local/bin/healthcheck && \
|
|
43
|
+
chmod +x /usr/local/bin/healthcheck && \
|
|
44
|
+
groupadd -r maya && useradd -r -g maya -d /home/maya -m maya
|
|
45
|
+
|
|
46
|
+
HEALTHCHECK --interval=30m --timeout=30s --start-period=30s --retries=3 CMD ["/usr/local/bin/healthcheck"]
|
|
47
|
+
|
|
48
|
+
WORKDIR /home/maya
|
|
49
|
+
USER maya
|
maya_brew-0.0.4/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Morten Bøhne
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
maya_brew-0.0.4/PKG-INFO
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: maya-brew
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Safe interaction with python in maya
|
|
5
|
+
Project-URL: Homepage, https://github.com/mortenbohne/maya-brew
|
|
6
|
+
Project-URL: Repository, https://github.com/mortenbohne/maya-brew
|
|
7
|
+
Project-URL: Documentation, https://github.com/mortenbohne/maya-brew#readme
|
|
8
|
+
Project-URL: Issues, https://github.com/mortenbohne/maya-brew/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/mortenbohne/maya-brew/releases
|
|
10
|
+
Author-email: Morten Bøhne <github@mortenbohne.dk>
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: 3d,autodesk,maya,pipeline
|
|
14
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: colorama
|
|
22
|
+
Requires-Dist: structlog
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: maya-stubs; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# maya-brew
|
|
29
|
+
|
|
30
|
+
> **Status: Pre-Alpha** – Interfaces are experimental and may change without notice. Pin exact versions if using in
|
|
31
|
+
> automation.
|
|
32
|
+
|
|
33
|
+
What you need after a long day of wrestling with Maya Python.
|
|
34
|
+
|
|
35
|
+
[](https://github.com/marketplace/actions/super-linter)
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
|
|
41
|
+
`maya-brew` aims to provide safer, more structured interaction patterns when scripting or tooling inside Autodesk Maya.
|
|
42
|
+
|
|
43
|
+
Goals:
|
|
44
|
+
|
|
45
|
+
- Reduce foot‑guns when using Python inside Maya
|
|
46
|
+
- Offer utilities that behave well with Maya’s quirks
|
|
47
|
+
|
|
48
|
+
## Background
|
|
49
|
+
|
|
50
|
+
`maya-brew` draws inspiration from some of the ergonomic goals that motivated
|
|
51
|
+
[PyMEL](https://github.com/LumaPictures/pymel): making Maya’s Python interface feel more “Pythonic,” safer, and more
|
|
52
|
+
discoverable. PyMEL historically provided rich object wrappers around nodes, attributes, and other scene elements;
|
|
53
|
+
for many workflows this improved readability and reduced boilerplate.
|
|
54
|
+
|
|
55
|
+
However, over time several practical factors led to the decision to start a lightweight alternative instead of
|
|
56
|
+
extending PyMEL itself:
|
|
57
|
+
|
|
58
|
+
- Scope & Complexity: PyMEL’s dynamic wrapping and layered abstractions can introduce startup overhead, indirection, and
|
|
59
|
+
occasional debugging friction.
|
|
60
|
+
- Historical Churn: A long evolution, multiple contributors, and some legacy design choices make selective modernization
|
|
61
|
+
non‑trivial.
|
|
62
|
+
- Maintenance & Momentum: While still usable, PyMEL no longer appears to have the same pace of active development or
|
|
63
|
+
broad community push it once did.
|
|
64
|
+
- Adoption Fit: Many pipelines only need a thin set of safety/ergonomic helpers—not a full object layer over
|
|
65
|
+
`maya.cmds`.
|
|
66
|
+
|
|
67
|
+
### Acknowledgment
|
|
68
|
+
|
|
69
|
+
PyMEL significantly influenced how many technical artists approach Maya scripting, and this project stands on that
|
|
70
|
+
conceptual foundation. `maya-brew` simply narrows the focus: take the useful ergonomic ideas, shed the heavy wrapping,
|
|
71
|
+
and keep to the canonical APIs.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# maya-brew
|
|
2
|
+
|
|
3
|
+
> **Status: Pre-Alpha** – Interfaces are experimental and may change without notice. Pin exact versions if using in
|
|
4
|
+
> automation.
|
|
5
|
+
|
|
6
|
+
What you need after a long day of wrestling with Maya Python.
|
|
7
|
+
|
|
8
|
+
[](https://github.com/marketplace/actions/super-linter)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
`maya-brew` aims to provide safer, more structured interaction patterns when scripting or tooling inside Autodesk Maya.
|
|
15
|
+
|
|
16
|
+
Goals:
|
|
17
|
+
|
|
18
|
+
- Reduce foot‑guns when using Python inside Maya
|
|
19
|
+
- Offer utilities that behave well with Maya’s quirks
|
|
20
|
+
|
|
21
|
+
## Background
|
|
22
|
+
|
|
23
|
+
`maya-brew` draws inspiration from some of the ergonomic goals that motivated
|
|
24
|
+
[PyMEL](https://github.com/LumaPictures/pymel): making Maya’s Python interface feel more “Pythonic,” safer, and more
|
|
25
|
+
discoverable. PyMEL historically provided rich object wrappers around nodes, attributes, and other scene elements;
|
|
26
|
+
for many workflows this improved readability and reduced boilerplate.
|
|
27
|
+
|
|
28
|
+
However, over time several practical factors led to the decision to start a lightweight alternative instead of
|
|
29
|
+
extending PyMEL itself:
|
|
30
|
+
|
|
31
|
+
- Scope & Complexity: PyMEL’s dynamic wrapping and layered abstractions can introduce startup overhead, indirection, and
|
|
32
|
+
occasional debugging friction.
|
|
33
|
+
- Historical Churn: A long evolution, multiple contributors, and some legacy design choices make selective modernization
|
|
34
|
+
non‑trivial.
|
|
35
|
+
- Maintenance & Momentum: While still usable, PyMEL no longer appears to have the same pace of active development or
|
|
36
|
+
broad community push it once did.
|
|
37
|
+
- Adoption Fit: Many pipelines only need a thin set of safety/ergonomic helpers—not a full object layer over
|
|
38
|
+
`maya.cmds`.
|
|
39
|
+
|
|
40
|
+
### Acknowledgment
|
|
41
|
+
|
|
42
|
+
PyMEL significantly influenced how many technical artists approach Maya scripting, and this project stands on that
|
|
43
|
+
conceptual foundation. `maya-brew` simply narrows the focus: take the useful ergonomic ideas, shed the heavy wrapping,
|
|
44
|
+
and keep to the canonical APIs.
|