Commit Graph

13525 Commits

Author SHA1 Message Date
Matthias
ca96654622
move specific register statements to make them clearer to understant 2022-05-30 20:25:27 +02:00
Matthias
71937a180c
add more docstrings 2022-05-30 20:22:58 +02:00
Matthias
a7959fddf2
Merge branch 'master' of https://github.com/inventree/InvenTree into docupdates 2022-05-30 20:18:01 +02:00
Matthias
06b80eda36
Show statistics for docstrings 2022-05-30 20:15:23 +02:00
Matthias
598e60d766
make more consistent 2022-05-30 20:12:22 +02:00
Matthias
6f498d6292
Fix removed stuff from merge 99676ee 2022-05-30 20:09:27 +02:00
Matthias
0db69252d7
Merge branch 'docupdates' of https://github.com/matmair/InvenTree into docupdates 2022-05-30 19:43:52 +02:00
Oliver
8a2cfa04d1
Adds release.yml file for auto-generating release notes (#3099)
* Adds release.yml file for auto-generating release notes

* Add more tags
2022-05-30 23:57:15 +10:00
Oliver Walters
fd39c96726 Fixes for related_part functionality 2022-05-30 23:27:35 +10:00
Oliver Walters
61491b7fe6 Update docstrings for the 'part' directory 2022-05-30 22:45:30 +10:00
Oliver Walters
99676eef6d Merge remote-tracking branch 'inventree/master' into docupdates
# Conflicts:
#	.github/workflows/qc_checks.yaml
#	InvenTree/InvenTree/version.py
#	InvenTree/common/notifications.py
#	InvenTree/label/api.py
#	InvenTree/plugin/base/label/label.py
#	InvenTree/plugin/base/label/mixins.py
#	InvenTree/plugin/base/label/test_label_mixin.py
#	InvenTree/plugin/registry.py
2022-05-30 20:10:27 +10:00
Oliver
71ed181611
Change docker user (#3096)
- Running under 'inventree' user means that the mounted volume cannot be accessed
- Will need to return to this issue soon
2022-05-30 08:37:58 +10:00
Oliver
9430d1bbbe
L10 crowdin (#3095)
* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-29 17:46:29 +10:00
Oliver
2fcf627c88
Update README.md (#3094)
* Update README.md

Fix docker build status badge

* Simplify version check script
2022-05-29 17:41:14 +10:00
Oliver
deacf207ff
Docker Build Fixes (#3093)
* Docker: Require libffi-dev

* set push to true

* debug

* Check GITHUB_BASE_REF also
2022-05-29 13:47:29 +10:00
Matthias
cddead457f
More docstrings 2022-05-29 03:17:11 +02:00
Oliver
1f6b81745d
Docker: Require libffi-dev (#3092) 2022-05-29 11:07:09 +10:00
Matthias
8d5f229000
ignore __init__ files for docstrings 2022-05-29 03:04:31 +02:00
Matthias
bcac4bd2cf
Remove dead code for plugin settings
No idea what that was even intended for
2022-05-29 03:04:03 +02:00
Matthias
e01918e607
add more docstrings for plugin app 2022-05-29 03:02:54 +02:00
Oliver
ea465497c0
Fixes for version check script (#3091)
- GITHUB_BASE_REF not available on a push!
2022-05-29 09:49:32 +10:00
Oliver
b9fd263899
Docker improvements (#3042)
* Simplified dockerfile

- Changed from alpine to python:slim
- Removed some database libs (because we *connect* to a db, not host it)

* - Add gettext as required package
- Only create inventree user as part of production build (leave admin access for dev build)

* Tweaks for tasks.py

* Fix user permissions (drop to inventree user)

* Drop to the 'inventree' user level as part of init.sh

- As we have mounted volumes at 'run time' we need to ensure that the inventree user has correct permissions!
- Ref: https://stackoverflow.com/questions/39397548/how-to-give-non-root-user-in-docker-container-access-to-a-volume-mounted-on-the

* Adjust user setup

- Only drop to non-root user as part of "production" build
- Mounted external volumes make it tricky when in the dev build
- Might want to revisit this later on

* More dockerfile changes

- reduce required system packages
-

* Add new docker github workflow

* Print some more debug

* GITHUB_BASE_REF

* Add gnupg to base requirements

* Improve debug output during testing

* Refactoring updates for label printing API

- Update weasyprint version to 55.0
- Generate labels as pdf files
- Provide filename to label printing plugin
- Additional unit testing
- Improve extraction of some hidden debug data during TESTING
- Fix a spelling mistake (notifaction -> notification)

* Working on github action

* More testing

* Add requirement for pdf2image

* Fix label printing plugin and update unit testing

* Add required packages for CI

* Move docker files to the top level directory

- This allows us to build the production image directly from soure
- Don't need to re-download the source code from github
- Note: The docker install guide will need to be updated!

* Fix for docker ci file

* Print GIT SHA

* Bake git information into the production image

* Add some exta docstrings to dockerfile

* Simplify version check script

* Extract git commit info

* Extract docker tag from check_version.py

* Newline

* More work on the docker workflow

* Dockerfile fixes

- Directory / path issues

* Dockerfile fixes

- Directory / path issues

* Ignore certain steps on a pull request

* Add poppler-utils to CI

* Consolidate version check into existing CI file

* Don't run docker workflow on pull request

* Pass docker image tag through to the build

Also check .j2k files

* Add supervisord.conf example file back in

* Remove --no-cache-dir option from pip install
2022-05-29 09:40:37 +10:00
Matthias
6c25872f81
Merge branch 'docupdates' of https://github.com/matmair/InvenTree into docupdates 2022-05-29 01:28:29 +02:00
Matthias
24fb68bd3e
Make API code cleaner 2022-05-29 01:28:06 +02:00
Oliver Walters
2792abc0ec Add docstrings for the 'build' app 2022-05-29 09:12:18 +10:00
Oliver Walters
3650410ea3 Remove outdated function 2022-05-29 08:36:36 +10:00
Matthias Mair
9a2300d920
Add option to also reload plugin mechanisms (#3081) 2022-05-29 08:25:40 +10:00
Matthias
c24882bf66
Add missing args to docstrings 2022-05-28 20:27:20 +02:00
Matthias
ff9873f92c
update support files for docstrings 2022-05-28 19:06:07 +02:00
Matthias
e4d9fcdb30
fix function name 2022-05-28 18:26:15 +02:00
Matthias
b74826c4d0
small docstring changes 2022-05-28 18:25:22 +02:00
Matthias
93a1bf165d
update the remaining docstrings 2022-05-28 18:06:23 +02:00
Matthias
1e90900918
docstring adjustments 2022-05-28 15:23:57 +02:00
Matthias
60f13ad2e8
fix docstrings 10 2022-05-28 03:39:01 +02:00
Matthias
6b4df40117
fix docstirns 9 2022-05-28 03:18:07 +02:00
Matthias
d98723160a
fix docstrings 8 2022-05-28 03:13:19 +02:00
Matthias
d3d0b76c58
fix docstrings 7 2022-05-28 03:04:48 +02:00
Matthias
bd4da62964
fix docstrings 6 2022-05-28 02:57:42 +02:00
Matthias
391c8b4ac1
fix docstrings 5 2022-05-28 02:51:15 +02:00
Matthias
61287dba2b
fix docstrings 4 2022-05-28 02:43:33 +02:00
Matthias Mair
4d8836378b
CI updates (#3087)
* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* use relativ action references

* Change step / job docstrings
2022-05-28 10:38:12 +10:00
Matthias
cb6fd63343
fix docstrings 3 2022-05-28 02:27:28 +02:00
Matthias
80510e8ba2
fix docstrings 2 2022-05-28 02:14:25 +02:00
Matthias
9b40fddf7c
reformat comments 1 2022-05-28 02:04:02 +02:00
Matthias
959e4bb28e
update to merge 2022-05-28 01:11:16 +02:00
Matthias
9c4c2c434f
Merge branch 'ci-updates' into docupdates 2022-05-28 01:09:14 +02:00
Matthias
867882f521
Change step / job docstrings 2022-05-28 00:59:40 +02:00
Matthias
9795abcb9e
use relativ action references 2022-05-28 00:41:29 +02:00
Matthias
892181ea75
add docstring test 2022-05-28 00:35:04 +02:00
Matthias
9c80be52b3
continue on error 2022-05-28 00:30:30 +02:00