Skip to content

Commit 3b0ca20

Browse files
committed
Updated requirements and setup files
1 parent a6a3b40 commit 3b0ca20

File tree

6 files changed

+50
-3
lines changed

6 files changed

+50
-3
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,3 @@ venv.bak/
9999

100100
# PyCharm
101101
.idea
102-
103-
packages/tp-game-tools/

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
include README.rst
22
include LICENSE
3+
include tp/nodegraph/settings.json
4+
include tp/nodegraph/examples/menu.json
35
recursive-include tp/resources/* *.*

requirements-dev.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ===================================================================
2+
# tp-dcc development requirements file
3+
# ===================================================================
4+
5+
ruff
6+
ruff-lsp
7+
pytest
8+
pytest-cov
9+
PySide6
10+
Qt.py

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# ===================================================================
44

55
setuptools_scm
6+
PyYAML
67

78
# sphinx
89
# sphinx_rtd_theme
9-
# PyYAML
1010
# metayaml
1111
# yamlordereddictloader
1212
# six

setup_maya2025_venv.bat

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@echo off
2+
3+
REM The Python virtual environment cannot be called directly from mayapy.
4+
REM Instead a soft link needs to be made to mayapy from a command called "python" within the same directory,
5+
REM and venv needs to be called from this python command.
6+
REM "https://help.autodesk.com/view/MAYACRE/ENU/?guid=GUID-6AF99E9C-1473-481E-A144-357577A53717"
7+
8+
REM Set the path to Maya's Python interpreter
9+
set MAYAPY_PATH="C:\Program Files\Autodesk\Maya2025\bin\python.exe"
10+
11+
REM Get the directory where the batch file is located
12+
set BATCH_DIR=%~dp0
13+
14+
REM Set the directory for the virtual environment
15+
set VENV_DIR="%BATCH_DIR%venvs\maya2025"
16+
17+
REM Create the virtual environment
18+
%MAYAPY_PATH% -m venv %VENV_DIR%
19+
20+
REM Activate the virtual environment
21+
call %VENV_DIR%\Scripts\activate.bat
22+
23+
REM Install the packages from requirements.txt if it exists
24+
if exist "%BATCH_DIR%requirements.txt" (
25+
pip install -r "%BATCH_DIR%requirements.txt"
26+
echo Installed packages from requirements.txt
27+
) else (
28+
echo No requirements.txt found. Skipping package installation.
29+
)
30+
31+
REM Install the packages from requirements-dev.txt if it exists
32+
if exist "%BATCH_DIR%requirements-dev.txt" (
33+
pip install -r "%BATCH_DIR%requirements-dev.txt"
34+
echo Installed packages from requirements-dev.txt
35+
) else (
36+
echo No requirements-dev.txt found. Skipping package installation.
37+
)

tp/externals/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)