diff --git a/.github/lint.py b/.gitea/lint.py similarity index 100% rename from .github/lint.py rename to .gitea/lint.py diff --git a/.github/package.py b/.gitea/package.py similarity index 100% rename from .github/package.py rename to .gitea/package.py diff --git a/.github/version.py b/.gitea/version.py similarity index 100% rename from .github/version.py rename to .gitea/version.py diff --git a/.github/workflows/initialize_data.yml b/.gitea/workflows/initialize_data.yml similarity index 100% rename from .github/workflows/initialize_data.yml rename to .gitea/workflows/initialize_data.yml diff --git a/.github/workflows/linter.yml b/.gitea/workflows/linter.yml similarity index 100% rename from .github/workflows/linter.yml rename to .gitea/workflows/linter.yml diff --git a/.github/workflows/package_addon.yml b/.gitea/workflows/package_addon.yml similarity index 100% rename from .github/workflows/package_addon.yml rename to .gitea/workflows/package_addon.yml diff --git a/.github/workflows/package_preset.yml b/.gitea/workflows/package_preset.yml similarity index 100% rename from .github/workflows/package_preset.yml rename to .gitea/workflows/package_preset.yml diff --git a/.github/workflows/pr_main.yml b/.gitea/workflows/pr_main.yml similarity index 100% rename from .github/workflows/pr_main.yml rename to .gitea/workflows/pr_main.yml diff --git a/.github/workflows/pr_main_start.yml b/.gitea/workflows/pr_main_start.yml similarity index 100% rename from .github/workflows/pr_main_start.yml rename to .gitea/workflows/pr_main_start.yml diff --git a/.github/workflows/unit_test.yml b/.gitea/workflows/unit_test.yml similarity index 100% rename from .github/workflows/unit_test.yml rename to .gitea/workflows/unit_test.yml diff --git a/blender_addon_folder/__init__.py b/blender_addon_folder/__init__.py index b6aa4d0..5a43d3d 100644 --- a/blender_addon_folder/__init__.py +++ b/blender_addon_folder/__init__.py @@ -3,13 +3,13 @@ import bpy bl_info = { 'name': 'Addon Name', 'description': 'Add your description', - 'author': 'Moderlab, Aurelien Vaillant, Nicolas Salles, Jeremy Duchesne', - 'version': (0, 0, 0), - 'blender': (3, 0, 0), + 'author': 'Aurelien Vaillant', + 'version': (0, 1, 0), + 'blender': (5, 2, 0), 'doc_url': "", 'tracker_url': "", 'support': "COMMUNITY", - 'category': 'Moderlab', + 'category': '', } modules_class = [ diff --git a/readme.md b/readme.md index 7c91ccd..979b379 100644 --- a/readme.md +++ b/readme.md @@ -2,24 +2,28 @@ ![Blender](https://img.shields.io/badge/blender-3.1.0-sucess) # Blender Addon -This repository is a toolbox to create a new blender addon. To used-it, clone this repository and rename the folder "blender_addon_folder" with your addon name. +This repository is a toolbox to create a new blender addon. +To used-it, clone this repository and rename the folder `blender_addon_folder` with your addon name. It's important to change some files : - [x] Update the file "tests/main.py", line 29, set your addon name. ```python # Prepare Blender and Unreal dependency generate_archive(archives, 'blender_addon_folder') ``` -- [x] You can remove the folder "presets" and disable the workflow (`.github/workflows/pr_main.yml`, line 38 and 53) +- [x] You can remove the folder "presets" and disable the workflow (`.gitea/workflows/pr_main.yml`, line 38 and 53) > ⚠️ It's more easy to use the "_" with your addon folder name, the "-" character can be problematic with python use. -All features covered with this template are : + +# Features +All features covered with this Blender Addon template are : - [x] Generate addon release (.zip archive) - [x] Generate preset release (.zip archive) - [x] Update addon version (bl info) with tag name -- [x] Execute unit test with Github Action (check if the addon can be installed with blender) -- [x] Configuration with Pycharm to test locally +- [ ] Execute unit test with Gitea Action (check if the addon can be installed with blender) +- [ ] Configuration with Pycharm to test locally +- [ ] Linter config ## Unit Test @@ -32,9 +36,9 @@ class Container(enum.Enum): BLENDER = ContainerObject(name='Blender', image='stilobique/blender', tag='3.1.2') ````` +> [Find the repository git on my public space](https://git.graou.studio/stilobique/blender-docker). + # Addons/Plugins dependency Update json file `tests/dependency.json` with name, archive and repository Github path. Each entry require `archive name`, the repository url path '{owner}/{repo}' and optional parameter if the release needed to be a prerelease. - -> ⛔ The `moderlab_plugin` need to be on last entry. diff --git a/tests/dependency.json b/tests/dependency.json index a449c26..edff1eb 100644 --- a/tests/dependency.json +++ b/tests/dependency.json @@ -1,11 +1,5 @@ { "blender": { - "moderlab_type": ["moderlab_type.zip", "Moderlab-Production/BlenderObjectType", "prerelease"], - "moderlab_pie": ["moderlab_plugin.zip", "Moderlab-Production/BlenderPieMenu"], - "moderlab_plugin": ["moderlab_plugin.zip", "Moderlab-Production/BlenderPlugin"] - }, - "unreal": { - "unreal-pipeline": ["unreal-moderlab-pipeline.zip", "Moderlab-Production/UnrealPipeline"], - "unreal-type": ["Moderlab-Unreal-Type.zip", "Moderlab-Production/UnrealType"] + "addon-entry": ["artifact-release.zip", "git-url", ""] } } \ No newline at end of file