Closed s-vitaliy closed 11 months ago
Coverage Report
File Stmts Miss Cover Missing dataclasses_json cfg.py 51 4 92% 80, 84–86 core.py 235 10 96% 38–41, 51, 64, 66, 81, 83, 169, 197 mm.py 200 30 85% 33–36, 42–45, 53–56, 62–65, 88, 161–162, 167, 171, 175, 180, 184, 188, 196, 202, 207, 216, 221, 226, 235, 244–251 stringcase.py 25 3 88% 59, 76, 97 undefined.py 143 2 99% 24, 38 utils.py 128 36 72% 11–24, 44–49, 60–64, 74, 99–100, 108–109, 124–132, 158, 177, 202 tests entities.py 220 2 99% 229, 235 test_annotations.py 81 42 48% 50–67, 78–102, 106–122 test_api.py 142 4 97% 88, 99, 139–140 test_str_subclass.py 22 1 95% 9 test_union.py 98 10 90% 87–94, 108–115 TOTAL 2476 144 94%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
291 | 3 :zzz: | 0 :x: | 0 :fire: | 6.852s :stopwatch: |
@george-zubrienko, take a look. I think we can adopt this plugin in SneaksAndData and use it to build development versions of our python packages as we do for our dotnet packages.
@baldurmen, take a look at examples in the PR description, does it solve your issue?
It does, thank you.
Huge! :) thanks a lot both @baldurmen and @s-vitaliy
Resolves #446
Implemented
The plugin generates version based on git tags:
Where 0.5.14 is the latest git tag, post3 - number of commits ahead of the tag and +ebe887f is git commit SHA.
The dev0 section added if the lates commit in HEAD is not the release tag.
For instance, if we will create new release tag locally, the plugin will build the following version: