pipeforge 1.1.0__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {pipeforge-1.1.0 → pipeforge-1.2.0}/PKG-INFO +1 -1
  2. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/__main__.py +6 -3
  3. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/params.py +7 -6
  4. {pipeforge-1.1.0 → pipeforge-1.2.0}/pyproject.toml +1 -1
  5. {pipeforge-1.1.0 → pipeforge-1.2.0}/LICENSE +0 -0
  6. {pipeforge-1.1.0 → pipeforge-1.2.0}/README.md +0 -0
  7. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/__init__.py +0 -0
  8. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/__init__.py +0 -0
  9. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/core_loop.py +0 -0
  10. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/database.py +0 -0
  11. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/drawing.py +0 -0
  12. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/file_loader.py +0 -0
  13. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/inspector.py +0 -0
  14. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/pipeline.py +0 -0
  15. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/script.py +0 -0
  16. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/utils.py +0 -0
  17. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/hello_jenkins.toml +0 -0
  18. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/hello_world.toml +0 -0
  19. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/merge_pull_request.toml +0 -0
  20. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/multi_pipeline.toml +0 -0
  21. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/multi_pipeline_2.toml +0 -0
  22. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/nightly.toml +0 -0
  23. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/retries.toml +0 -0
  24. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__get_purpose_in_life.py +0 -0
  25. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__print_summary.py +0 -0
  26. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__repeat_purpose.py +0 -0
  27. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/retry.py +0 -0
  28. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/timeout.py +0 -0
  29. {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/timeout.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipeforge
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: A pipeline jobs orchestrator
5
5
  Project-URL: Homepage, https://git.sr.ht/~greenfoo/pipeforge
6
6
  Project-URL: Issues, https://todo.sr.ht/~greenfoo/pipeforge
@@ -62,8 +62,9 @@ def print_help():
62
62
  print("")
63
63
  print(" There are a series of environment variables that affect this mode's behavior:")
64
64
  print("")
65
- print(" * PIPEFORGERUNNER_LOG_LEVEL : Can be 'NORMAL', 'DEBUG' or 'SHY'")
66
- print(" * PIPEFORGERUNNER_HEARTBEAT_SECONDS : Time between each core loop iteration")
65
+ print(" * PIPEFORGERUNNER_LOG_LEVEL : Can be 'NORMAL', 'DEBUG' or 'SHY'")
66
+ print(" * PIPEFORGERUNNER_LOG_TIMESTAMP_DISABLED : Set to disable timestamps in logs")
67
+ print(" * PIPEFORGERUNNER_HEARTBEAT_SECONDS : Time between each core loop iteration")
67
68
  print("")
68
69
  print("")
69
70
  print("> Use case #2: Print an example of a *.{json,toml} file")
@@ -124,7 +125,9 @@ if subcommand == "run":
124
125
  print(f"File not found: {input_file}")
125
126
  sys.exit(-1)
126
127
 
127
- utils.log_configure(os.getenv("PIPEFORGERUNNER_LOG_LEVEL", "NORMAL"))
128
+ utils.log_configure(
129
+ os.getenv("PIPEFORGERUNNER_LOG_LEVEL", "NORMAL"),
130
+ include_timestamp=("PIPEFORGERUNNER_LOG_TIMESTAMP_DISABLED" not in os.environ))
128
131
 
129
132
  p = pipeline.Pipeline(database_url, input_file)
130
133
 
@@ -121,28 +121,29 @@ class JobParams():
121
121
  Example:
122
122
 
123
123
  >>> jp = JobParams(...)
124
- >>> jp.set_output({"result" : "OK", "executed_tests" : "11"})
124
+ >>> jp.set_output_parameters_and_values({"result" : "OK", "executed_tests" : "11"})
125
125
 
126
126
  However, it is also possible to call it several times, providing only a subset of all the
127
127
  (key, value) pairs each time.
128
128
 
129
129
  >>> jp = JobParams(...)
130
- >>> jp.set_output({"result" : "OK"})
130
+ >>> jp.set_output_parameters_and_values({"result" : "OK"})
131
131
  >>> ...
132
- >>> jp.set_output({"executed_tests" : "11"})
132
+ >>> jp.set_output_parameters_and_values({"executed_tests" : "11"})
133
133
 
134
134
  In case of one value being provided in more than one call, the last one will prevail:
135
135
 
136
136
  >>> jp = JobParams(...)
137
- >>> jp.set_output({"result" : "OK"})
137
+ >>> jp.set_output_parameters_and_values({"result" : "OK"})
138
138
  >>> ...
139
- >>> jp.set_output({"executed_tests" : "11"})
139
+ >>> jp.set_output_parameters_and_values({"executed_tests" : "11"})
140
140
  >>> ...
141
- >>> jp.set_output({"result" : "KO"}) <---------- This is the "good" one now.
141
+ >>> jp.set_output_parameters_and_values({"result" : "KO"}) <---------- This is the "good" one now.
142
142
  """
143
143
 
144
144
  aux = self._job.output.copy()
145
145
  aux.update(new_output_dictionary)
146
146
 
147
147
  self._job.update(set__output=aux)
148
+ self._job.reload()
148
149
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pipeforge"
7
- version = "1.1.0"
7
+ version = "1.2.0"
8
8
  description = "A pipeline jobs orchestrator"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
File without changes
File without changes