diff --git a/build.py b/build.py index aa0257d..44efda9 100644 --- a/build.py +++ b/build.py @@ -9,7 +9,6 @@ PROJECT_ROOT_PATH = "." @init def initialize(project): - input = { "name": name, "module": MODULE, @@ -17,12 +16,12 @@ def initialize(project): "project_root_path": PROJECT_ROOT_PATH, "build_types": [], "mixin_types": ["RELEASE"], - "release_primary_build_file": "project.clj", - "release_secondary_build_files": ["package.json"], + "release_primary_build_file": "build_to_test.py", + "release_secondary_build_files": ["package.json", "project.clj"], } project.build_depends_on("ddadevops>=4.0.0-dev") - + build = ReleaseMixin(project, input) build.initialize_build_dir() @@ -31,27 +30,33 @@ def initialize(project): def patch(project): build(project, "PATCH") + @task def minor(project): build(project, "MINOR") + @task def major(project): build(project, "MAJOR") - + + @task def dev(project): build(project, "NONE") + @task def nothing(project): pass + @task def prepare_release(project): build = get_devops_build(project) build.prepare_release() + @task def tag_bump_and_push_release(project): build = get_devops_build(project) diff --git a/build_to_test.py b/build_to_test.py index 9b551db..54f294f 100644 --- a/build_to_test.py +++ b/build_to_test.py @@ -22,11 +22,11 @@ from ddadevops import * use_plugin("python.core") use_plugin("copy_resources") use_plugin("filter_resources") -#use_plugin("python.unittest") -#use_plugin("python.coverage") +# use_plugin("python.unittest") +# use_plugin("python.coverage") use_plugin("python.distutils") -#use_plugin("python.install_dependencies") +# use_plugin("python.install_dependencies") default_task = "dev" @@ -38,6 +38,5 @@ summary = "tools to support builds combining gopass, terraform, dda-pallet, aws description = __doc__ authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] url = "https://repo.prod.meissa.de/meissa/dda-devops-build" -requires_python = ">=3.10" # CHECK IF NEW VERSION EXISTS +requires_python = ">=3.10" # CHECK IF NEW VERSION EXISTS license = "Apache Software License" -