Skip to content

Commit

Permalink
Set package version from git tag on release
Browse files Browse the repository at this point in the history
  • Loading branch information
malnvenshorn committed Nov 10, 2021
1 parent e3c8070 commit 3ea5711
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ jobs:
uses: malnvenshorn/common/.github/workflows/publish-python-packages-on-github.yaml@master
with:
asset_name: plugin.tar.gz
version_from_tag: true
version_file: setup.py
version_search: plugin_version = ".*"
version_replace: plugin_version = "{version}"
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@

plugin_name = "OctoPrint-MetadataPreprocessor"
plugin_description = "Read metadata block from gcode files to speed up the analyzing process."
plugin_version = "0.3.0"
plugin_version = "dev"
plugin_author = "Sven Lohrmann"
plugin_author_email = "[email protected]"
plugin_url = "https://github.com/malnvenshorn/octoprint-metadatapreprocessor"
plugin_license = "AGPLv3"
plugin_identifier = "metadatapreprocessor"
plugin_package = "octoprint_metadatapreprocessor"
plugin_source_folder = "src"

plugin_requires = [
"OctoPrint",
]

plugin_extras_require = {
"develop": {
"flake8 >= 4.0",
Expand Down

0 comments on commit 3ea5711

Please sign in to comment.