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

add bump-recipe command #188

Merged
merged 37 commits into from
Nov 6, 2024
Merged

add bump-recipe command #188

merged 37 commits into from
Nov 6, 2024

Conversation

ForgottenProgramme
Copy link
Collaborator

@ForgottenProgramme ForgottenProgramme commented Oct 9, 2024

Description

resolves #129
adds a bump-recipe command with --build-num flag

To do:

  • Add tests
  • Parametrize tests to cover more build number cases

@ForgottenProgramme ForgottenProgramme marked this pull request as ready for review October 17, 2024 09:36
@ForgottenProgramme ForgottenProgramme requested a review from a team as a code owner October 17, 2024 09:36
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
tests/test_aux_files/bump_recipe/no-build-num.yaml Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
ForgottenProgramme and others added 13 commits November 5, 2024 17:04
Co-authored-by: Schuyler Martin <schuylermartin45@gmail.com>
Co-authored-by: Schuyler Martin <schuylermartin45@gmail.com>
Co-authored-by: Schuyler Martin <schuylermartin45@gmail.com>
Co-authored-by: Schuyler Martin <schuylermartin45@gmail.com>
Co-authored-by: Schuyler Martin <schuylermartin45@gmail.com>
* Add tilde to _JINJA_VAR_FUNCTION_PATTERN

* Create V0_FORBIDDEN_JINJA constant and check for strings containing them when converting recipes

* Add exception for when Jinja syntax that is too complex to convert is detected

* Make the linter happy

* Change name of V0_UNSUPPORTED_JINJA constant

* Log 'complex Jinja' warning with the MessageTable instance instead of throwing an exception

* Add more unsupported Jinja to regression_jinja_sub.yaml test recipe file to catch new warning in test

* Simplify warning message and update related test
* Fixes #186 and adds some support for JINJA addition/concatenation

* Adds unit tests for JINJA addition/concatentation evaluations
* Initial blueprint for dependency scanning module

* Starts to adapt work from abandonned dependency CLI branch

* Finishes initial work on pulling module names as dependencies

* Adds local module filtering

* Adds dependency type support to PythonDependencyScanner

* Adds MessageTable instance to base dependency class

* Adds missing docs

* Minor fixes

* Adds note about scanning performance

* Addresses linter and analyzer issues

* Adds initial dependency scanning unit test

* Adds ignore line to dummy project file

* Improves unit test coverage

* Updates recipe file to ignore test data directory

* Adds support for multiple imports on one line
schuylermartin45 and others added 15 commits November 5, 2024 17:47
* Add test for all methods in MessageTable class from types.py

* Split up/parametrize MessageTable unit tests

* Parametrize the MessageTable class tests and expand test cases

* Correct doc string formatting
* Renames RecipeParserDeps -> RecipeReaderDeps

* Renames RecipeParserDeps -> RecipeReaderDeps

* Fleshes-out initial utility functions in the new RecipeParserDeps class

* Improves SelectorParser capabilities

* Adds selector management to the add_dependency() function

* Adds unit test for selector rendering

* Added SelectorParser type variant to test_add_selector()

* Adds initial RecipeParserDeps unit tests

* Adds initial multi-output add_dependency() test variants

* Adds unit tests for remove_dependency()

* Adds invalid path tests to test_add_dependency()

* Adds alternative DependencyMode unit tests to test_add_dependency()

* Adds missing invalid path checks for test_add_dependency()

* Adds more edge-case unit tests to test_add_dependency()

* Fixes patch-add append edge case

* Adds missing unit test for adding a dependency to a non-existent dependency section

* Adds another missing unit test for adding a dependency to a non-existent dependency section
* Fixes resilience issue with dependency_data_from_str() function also makes function names more consistent

* Adds missing unit tests for dependency module

* Removes outdated TODO comment

* Adds regression testing for the numpy dependency parsing issue
…e` (#227)

* Ignores another pytest deprecation

* Simplifications and deprecations for the Makefile. The preferred method for installing CRM is through conda/conda-forge

* Overhauls existing README documentation

* Updates README TOC

* More README doc work

* More README improvements

* Filling more doc gaps

* Simplifies and automates the API documentaiton process

* Update README.md

Co-authored-by: Mahe Iram Khan <65779580+ForgottenProgramme@users.noreply.github.com>

* Update README.md

Co-authored-by: Mahe Iram Khan <65779580+ForgottenProgramme@users.noreply.github.com>

* Update README.md

Co-authored-by: Mahe Iram Khan <65779580+ForgottenProgramme@users.noreply.github.com>

* Adds a contribution file

* Update CONTRIBUTING.md

---------

Co-authored-by: Mahe Iram Khan <65779580+ForgottenProgramme@users.noreply.github.com>
@schuylermartin45 schuylermartin45 merged commit d8dec77 into main Nov 6, 2024
14 checks passed
@schuylermartin45 schuylermartin45 deleted the bump-recipe branch November 6, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump /build/number flag for recipe bumper CLI
4 participants