improved the build process
Dieser Commit ist enthalten in:
Ursprung
84eb37ffa7
Commit
1ea397da14
11
Makefile
11
Makefile
|
@ -1,8 +1,13 @@
|
||||||
|
VERSION := $(shell hatch version)
|
||||||
|
|
||||||
format:
|
format:
|
||||||
black .
|
black .
|
||||||
isort .
|
isort .
|
||||||
|
|
||||||
changelog:
|
version:
|
||||||
|
@yq --yaml-output-grammar-version 1.2 -i -y -s --arg 'version' "${VERSION}" '.[0] | (.version = $$version)' galaxy.yml
|
||||||
|
|
||||||
|
changelog: version
|
||||||
antsibull-changelog generate
|
antsibull-changelog generate
|
||||||
|
|
||||||
docs: format
|
docs: format
|
||||||
|
@ -11,10 +16,10 @@ docs: format
|
||||||
clean-dist:
|
clean-dist:
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
hatch-release: clean-dist
|
hatch-release: clean-dist version
|
||||||
hatch build
|
hatch build
|
||||||
|
|
||||||
galaxy-release: clean-dist changelog
|
galaxy-release: clean-dist changelog version
|
||||||
ansible-galaxy collection build --output-path dist/galaxy
|
ansible-galaxy collection build --output-path dist/galaxy
|
||||||
|
|
||||||
upload: galaxy-release hatch-release
|
upload: galaxy-release hatch-release
|
||||||
|
|
|
@ -3,3 +3,4 @@ minor_changes:
|
||||||
- Added an type hint to the update_doc function
|
- Added an type hint to the update_doc function
|
||||||
- Added Type hint to the dictionary argument of the diff method
|
- Added Type hint to the dictionary argument of the diff method
|
||||||
- added an wrapper for fail_json and exit_json
|
- added an wrapper for fail_json and exit_json
|
||||||
|
- improved the version update, the version is now only in one place the source of truth
|
18
galaxy.yml
18
galaxy.yml
|
@ -1,28 +1,22 @@
|
||||||
---
|
|
||||||
namespace: sebastian
|
namespace: sebastian
|
||||||
name: base
|
name: base
|
||||||
version: 0.4.2
|
version: 0.4.3
|
||||||
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Sebastian Tobie
|
- Sebastian Tobie
|
||||||
description: >
|
description: The base of my ansible collections. It provides the nessesary tools for
|
||||||
The base of my ansible collections. It provides the nessesary tools for my modules
|
my modules
|
||||||
license_file: LICENSE.txt
|
license_file: LICENSE.txt
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
- systemd
|
- systemd
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
|
|
||||||
repository: https://gitea.sebastian-tobie.de/ansible/ansible-module.git
|
repository: https://gitea.sebastian-tobie.de/ansible/ansible-module.git
|
||||||
# documentation: https://gitea.sebastian-tobie.de/ansible/ansible-module
|
|
||||||
homepage: https://gitea.sebastian-tobie.de/ansible/ansible-module
|
homepage: https://gitea.sebastian-tobie.de/ansible/ansible-module
|
||||||
issues: https://gitea.sebastian-tobie.de/ansible/ansible-module/issues
|
issues: https://gitea.sebastian-tobie.de/ansible/ansible-module/issues
|
||||||
|
|
||||||
build_ignore:
|
build_ignore:
|
||||||
- "*.gz"
|
- '*.gz'
|
||||||
- ".*"
|
- .*
|
||||||
- Makefile
|
- Makefile
|
||||||
- pyproject.toml
|
- pyproject.toml
|
||||||
- upload.sh
|
- upload.sh
|
||||||
|
@ -30,5 +24,5 @@ build_ignore:
|
||||||
- changelogs
|
- changelogs
|
||||||
- docs
|
- docs
|
||||||
- src
|
- src
|
||||||
- "coverage.*"
|
- coverage.*
|
||||||
- dist
|
- dist
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.4.2"
|
__version__ = "0.4.3"
|
||||||
|
|
Laden…
In neuem Issue referenzieren