Skip to content

Releases: brainelectronics/changelog2version

0.6.0

26 Oct 16:56
2bdec36
Compare
Choose a tag to compare

Added

  • Changelog can be parsed as JSON file with a similar format as the pypi package JSON info available at https://pypi.org/pypi/PACKAGENAME/json, see #16. The new option --output writes the data in JSON valid format to a file specified file, --print flag sends the data in JSON valid format to sys.stdout. In both cases --pretty flag can be set to output the data with an indentation of 4.

Changed

  • --version_file argument is optional in order to allow a JSON output only

0.5.0

22 Oct 08:29
2663266
Compare
Choose a tag to compare

Added

  • Support additional version info file content in python version files by adding the content given by --additional_version_info="-rc1234" to the end of the constructed __version__ content. This will create the following line in a version.py file: __version__ = '.'.join(__version_info__) + '-rc1234'. A created package will thereby be named 0.5.0rc1234 if the version is 0.5.0, resolve #14

0.4.0

07 Aug 10:35
6e7bdba
Compare
Choose a tag to compare

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
  • Run GitHub CI unittest workflow also on pull requests

Removed

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

Fixed

0.3.0

05 Aug 14:22
90a243f
Compare
Choose a tag to compare

Changed

  • Regex to extract the first version line from a changelog supports the full feature scope of semantic versioning, resolve #8
  • Regex to get the semantic versioning content of a version line supports the full feature scope of semantic versioning, resolve #8
  • Testing of this package with nose2 and coverage report generation with coverage including upload to Codecov was moved to new GitHub CI unittest workflow, resolve #11

Removed

0.2.0

03 Aug 19:36
f60b542
Compare
Choose a tag to compare

Added

  • ExtractVersion class to extract the version line from a changelog file and to parse the semver content from a version line, see #4
  • semver_line_regex and version_line_regex args for changelog2version to provide custom regular expressions to parse a version line from a changelog and to extract the semver content from a line

Changed

0.1.1

31 Jul 12:49
679d5e8
Compare
Choose a tag to compare

Fixed

0.1.0

31 Jul 12:41
381d17a
Compare
Choose a tag to compare

Added

Changed

Removed

  • Sample package in src after fork
  • Sample package test in tests after fork
  • Data folder after fork