Repository navigation
run.ps1: read the package version from the version file - #84
Conversation
'$PackageVersion' was a second copy of '__version__', updated by hand with each version bump. run.ps1 now derives the
version file from '$PackageName' ('$VersionFile') and reads '__version__' from it; it stops with an error if the file has
no '__version__' (as pyTooling #746).
Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 1 medium |
🟢 Coverage ∅ diff coverage
Metric Results Coverage variation Report missing for 73860e41 Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (73860e4) Report Missing Report Missing Report Missing Head commit (14e65aa) 71 45 63.38% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#84) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #84 +/- ##
=======================================
Coverage 61.97% 61.97%
=======================================
Files 1 1
Lines 71 71
Branches 13 13
=======================================
Hits 44 44
Misses 26 26
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Others
run.ps1reads the package version from the version file instead of keeping a second copy of__version__:$VersionFile = "$($PackageName.Replace('.', '/'))/__init__.py"(a.in the package name becomes/, for namespace packages).$PackageVersionis taken from the first line matching^__version__\s*=\s*"..."; without a match, the script stops with[ERROR] No '__version__' found in '<file>'.and exit code 1.__version__from now on.Related Issues and Pull-Requests