Skip to content

matmair/inventree-meta-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

inventree-meta-plugin

Meta project for InvenTree plugins. This repo contains general helpers to streamline InvenTree plugin development.

Workflow

This keeps the workflows as simple as possible. Just bump the version to get the new flows.

name: Plugin checking and building
on:
  push:
    branches: ['main', 'master']
  pull_request:
    types: [opened, edited, reopened]
  release:
    types: [published]

jobs:
  plugin-action:
    uses: matmair/inventree-meta-plugin/.github/workflows/plugin_action.yml@v1.0
   secrets: inherit

The workflow runs flake8 and - if a release was published - builds and publishes to PyPi. For this to work you need to set a secret named PYPI_API_TOKEN with a valid token for publishing to PyPi. Please scope the token to only work for the specific project and use a new one for each plugin. You might have to push the project once before the new scope becomes available in the account settings.

Cookie cutter

Cookie cutter is a template engine - we provide a template for a new plugin. It can be used to create a new plugin with a simple structure and all files required for scaleable plugins - from simple webhook integration to complex AppMixins.

cookiecutter gh:matmair/inventree-meta-plugin