Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Project.do() and several bug fixes #54

Merged
merged 31 commits into from
Jun 26, 2023

Conversation

NiklasRosenstein
Copy link
Contributor

  • kraken-core/: feature: Add Project.task() overload to create tasks, which deprecated Project.do()
  • kraken-core/: deprecation: Deprecate Project.do() in favor of Project.task()
  • Allow passing a GroupTask to Project.task(group)
  • fix Project.do()
  • kraken-core/: improvement: Add Address.normalize(keep_container) keyword argument and optimize Address.concat() and Address.append() to short-circuit return value if Address.CURRENT is passed to them.
  • kraken-core/: fix: Fixed Context.resolve_tasks() when None is passed, which is intended to resolve only the default tasks in the current project and its subprojects. Before this fix, the method would return all tasks of the current project instead, because the address . would be treated like a single-element address, such as lint, which gets turned into :**:. (or :**:lint).
  • kraken-core/: feature: Add Project.task(name, closure) overload that can be used in BuildDSL build scripts to define custom tasks. It creates an instance of an InlineTask, which also allows adding properties dynamically.
  • Add kraken.build script to project root which handles docs building
  • Refactor docs and fix many mistakes
  • kraken-std/: breaking change: Correct name of mypy_stubtest_task module and remove backwards compatibility for mypy_subtest() function name.
  • kraken-wrapper/: fix: Fixed passing the -p option to the kraken command by appending it to the arguments, allowing to use krakenw query subcommands from subdirectories.

…yword argument and optimize `Address.concat()` and `Address.append()` to short-circuit return value if `Address.CURRENT` is passed to them.
…sed, which is intended to resolve only the default tasks in the current project and its subprojects. Before this fix, the method would return _all_ tasks of the current project instead, because the address `.` would be treated like a single-element address, such as `lint`, which gets turned into `:**:.` (or `:**:lint`).
…t can be used in BuildDSL build scripts to define custom tasks. It creates an instance of an `InlineTask`, which also allows adding properties dynamically.
…dule and remove backwards compatibility for `mypy_subtest()` function name.
…ommand by appending it to the arguments, allowing to use `krakenw query` subcommands from subdirectories.
@NiklasRosenstein NiklasRosenstein changed the title nr/deprecate project do Deprecated Project.do() and several bug fixes Jun 25, 2023
@NiklasRosenstein NiklasRosenstein changed the title Deprecated Project.do() and several bug fixes Deprecate Project.do() and several bug fixes Jun 25, 2023
GitHub Action and others added 17 commits June 25, 2023 19:20
…r, allowing to assign property values to tasks using assignments in addition to `set()`. Assigning `None` to it will set it to `None` for optional properties, and clear it for non-optional properties.
…cripts to avoid searching up higher for the project root directory.
…o-save` option and to never save the build context to disk after the command.
…iguration, such as commit signing which could prompt the user running the tests to enter their GPG passphrase, blocking the test.
…o align with the rest of the task factory functions (e.g. automatically take the current project and build system).
…n `kraken.std.python.tasks` explicit and change `List` properties to contain a `Sequence`
…ctory because the version of `krakenw` that we use in CI does not yet support the `# ::krakenw-root` directive
@NiklasRosenstein NiklasRosenstein marked this pull request as ready for review June 26, 2023 10:02
@NiklasRosenstein NiklasRosenstein merged commit d67179a into develop Jun 26, 2023
11 checks passed
@NiklasRosenstein NiklasRosenstein deleted the nr/deprecate-project-do branch June 26, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant