Skip to content

Commit c4f7525

Browse files
committed
Initial commit of blender-tools repo
0 parents  commit c4f7525

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3573
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
charset = utf-8
12+
13+
[*.py]
14+
max_line_length = 119
15+
16+
[{*.yaml,*.yml}]
17+
indent_style = space
18+
indent_size = 2
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Device:**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on: [push, pull_request]
2+
name: CI
3+
jobs:
4+
lint:
5+
name: Lint
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- name: Set up Python 3.6
10+
uses: actions/setup-python@v1
11+
with:
12+
python-version: 3.6
13+
- name: Install dependencies
14+
run: |
15+
pip install pylint
16+
- name: Lint with pylint
17+
run: |
18+
python -m pylint blender-tools --disable=R,fixme --enable=cyclic-import
19+
- name: Refactoring suggestions
20+
run: |
21+
python -m pylint blender-tools --disable=E,W,C,cyclic-import --enable=fixme --reports=y --exit-zero
22+
23+
release:
24+
name: Release
25+
needs: [lint]
26+
if: startsWith(github.ref, 'refs/tags/')
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: Package
31+
shell: bash
32+
run: |
33+
name=embark_blender_tools
34+
tag=$(git describe --tags --abbrev=0)
35+
release_name="$name-$tag"
36+
release_zip="${release_name}.zip"
37+
mkdir "$name"
38+
39+
cp __init__.py "$name/"
40+
cp -r exporter icons images operators utils "$name/"
41+
cp README.md LICENSE-APACHE LICENSE-MIT "$name/"
42+
zip -r "$release_zip" "$name"
43+
44+
rm -r "$name"
45+
echo -n "$(shasum -ba 256 "${release_zip}" | cut -d " " -f 1)" > "${release_zip}.sha256"
46+
- name: Publish
47+
uses: softprops/action-gh-release@v1
48+
with:
49+
draft: true
50+
files: 'embark_blender_tools*'
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.ropeproject
2+
*.code-workspace
3+
__pycache__
4+
*.blend
5+
*.blend1
6+
*.pyc

.mergify.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pull_request_rules:
2+
- name: automatic merge when CI passes and 1 reviews
3+
conditions:
4+
- "#approved-reviews-by>=1"
5+
- "#review-requested=0"
6+
- "#changes-requested-reviews-by=0"
7+
- "#commented-reviews-by=0"
8+
- base=master
9+
- label!=work-in-progress
10+
actions:
11+
merge:
12+
method: squash
13+
- name: delete head branch after merge
14+
conditions: []
15+
actions:
16+
delete_head_branch: {}

0 commit comments

Comments
 (0)