Skip to content

Commit d0e8a1d

Browse files
committed
Add badges
1 parent 4539391 commit d0e8a1d

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.1
2+
current_version = 0.0.2
33

44
[bumpversion:file:pytest_blender/__init__.py]
55

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# pytest-blender
22

3+
[![PyPI][pypi-version-badge-link]][pypi-link]
4+
[![Python versions][pypi-pyversions-badge-link]][pypi-link]
5+
[![License][license-image]][license-link]
6+
[![Tests][tests-image]][tests-link]
7+
38
Pytest plugin for Blender testing. Executes your pytest testsuite with
4-
Blender in headless mode using their builtin Python interpreter.
9+
Blender in headless mode using its builtin Python interpreter.
510

611
## Install
712

@@ -23,7 +28,12 @@ $blender_python -m ensurepip
2328
$blender_python -m pip install -r test-requirements.txt
2429
```
2530

26-
> You can also get the intepreter for a custom Blender installation location with `--blender-executable` option: `pytest-blender --blender-executable ~/blender-2.91.2-linux64/blender`
31+
You can also get the intepreter for a custom Blender installation location
32+
with `--blender-executable` option:
33+
34+
```bash
35+
pytest-blender --blender-executable ~/blender-2.91.2-linux64/blender
36+
```
2737

2838
### Execute tests
2939

@@ -39,16 +49,12 @@ Read prefs: ~/.config/blender/2.82/config/userpref.blend
3949
========================= test session starts ==================================
4050
platform linux -- Python 3.8.5, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/blender
4151
cachedir: .pytest_cache
42-
metadata: {'Python': '3.8.5', 'Platform': 'Linux-5.4.0-65-generic-x86_64-with-glibc2.29',
43-
'Packages': {'pytest': '6.1.2', 'py': '1.9.0', 'pluggy': '0.13.1'},
44-
'Plugins': {'metadata': '1.11.0', 'cov': '2.10.1', 'html': '3.1.1'}}
4552
rootdir: /home/mondeja/files/code/pytest-blender
46-
plugins: metadata-1.11.0, cov-2.10.1, html-3.1.1
4753
collected 1 item
4854
4955
tests/test_import_bpy.py::test_inside_blender <module 'bpy' from '/usr/share/blender/scripts/modules/bpy/__init__.py'>
5056
PASSED
51-
=========================== 1 passed in 0.01s =================================
57+
=========================== 1 passed in 0.01s ==================================
5258
```
5359

5460
Just can specify a custom blender executable path using `--blender-executable`
@@ -69,5 +75,13 @@ collected 1 item
6975
7076
tests/test_import_bpy.py . [100%]
7177
72-
============================== 1 passed in 0.00s ==============================
78+
============================== 1 passed in 0.00s ===============================
7379
```
80+
81+
[pypi-link]: https://pypi.org/project/pytest-blender
82+
[pypi-version-badge-link]: https://img.shields.io/pypi/v/pytest-blender
83+
[pypi-pyversions-badge-link]: https://img.shields.io/pypi/pyversions/pytest-blender
84+
[license-image]: https://img.shields.io/pypi/l/pytest-blender?color=light-green
85+
[license-link]: https://github.com/mondeja/pytest-blender/blob/master/LICENSE
86+
[tests-image]: https://img.shields.io/github/workflow/status/mondeja/pytest-blender/CI
87+
[tests-link]: https://github.com/mondeja/pytest-blender/actions?query=workflow%3ACI

pytest_blender/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.1"
1+
__version__ = "0.0.2"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pytest_blender
3-
version = 0.0.1
3+
version = 0.0.2
44
description = Blender addons tester for Pytest.
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)