Skip to content

run.ps1: read the package version from the version file - #84

Merged
Paebbels merged 1 commit into
devfrom
claude/run-ps1-version
Nov 16, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/run-ps1-version

Conversation

@pyedaa-claude

@pyedaa-claude pyedaa-claude Bot commented Nov 10, 2026

Copy link
Copy Markdown

Others

  • run.ps1 reads 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).
    • $PackageVersion is 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.
    • A version bump changes only __version__ from now on.

Related Issues and Pull-Requests

'$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>
@pyedaa-claude
pyedaa-claude Bot requested a review from Paebbels as a code owner November 10, 2026 19:40
@codacy-production

codacy-production Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
BestPractice 1 medium

View in Codacy

🟢 Coverage ∅ diff coverage

Metric Results
Coverage variation Report missing for 73860e41
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

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

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.97%. Comparing base (ff72256) to head (14e65aa).
⚠️ Report is 3 commits behind head on dev.
✅ All tests successful. No failed tests found.

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           
Flag Coverage Δ
unittests 61.97% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Paebbels
Paebbels merged commit 6a20280 into dev Nov 16, 2026
69 of 71 checks passed
@Paebbels
Paebbels deleted the claude/run-ps1-version branch November 16, 2026 00:08
@pyedaa-claude pyedaa-claude Bot mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants