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

Render version file from template #13

Merged
merged 14 commits into from
Aug 7, 2022

Conversation

brainelectronics
Copy link
Owner

Added

  • Property semver_data to access extracted VersionInfo from parsed semver line in ExtractVersion class
  • Header and python version template file
  • RenderVersionFile class to render template files with provided content, resolve #5
  • Examples folder with example C script to demonstrate template rendering on other files than python
  • --template_file argument to specify a custom template file for rendering
  • --additional_template_data to add custom data for the template rendering
  • c is now a valid and supported file type of --version_file_type
  • Documentation extended for new CLI args with more detailed examples
  • Jinja2 is a required package for this package

Changed

  • parser_valid_file function returns a resolved path
  • --version_file_type is no longer case sensitive
  • --version_file does no longer have to exist

Removed

  • Functions to update python version files from update_version.py script

Fixed

  • Use only one job for the GitHub CI unittest workflow

@brainelectronics brainelectronics added the enhancement New feature or request label Aug 5, 2022
Copy link
Owner Author

@brainelectronics brainelectronics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only small topics

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2022

Codecov Report

Merging #13 (ae0ff69) into main (90a243f) will increase coverage by 86.90%.
The diff coverage is 73.33%.

@@            Coverage Diff            @@
##           main      #13       +/-   ##
=========================================
+ Coverage      0   86.90%   +86.90%     
=========================================
  Files         0        3        +3     
  Lines         0       84       +84     
  Branches      0       10       +10     
=========================================
+ Hits          0       73       +73     
- Misses        0        6        +6     
- Partials      0        5        +5     
Flag Coverage Δ
unittests 86.90% <73.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/changelog2version/extract_version.py 86.25% <73.33%> (ø)
src/changelog2version/version.py 100.00% <0.00%> (ø)
src/changelog2version/__init__.py 100.00% <0.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@brainelectronics brainelectronics merged commit 6e7bdba into main Aug 7, 2022
@brainelectronics brainelectronics deleted the feature/render-version-file-from-template branch August 7, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render version file from template
2 participants