Repository navigation
[misc] Release prep: version without tag prefix, SPDX license - #2233
Merged
Merged
Conversation
- setup.py: strip the "v" prefix of the release tag passed as BUILD_VERSION, so doctr.__version__ is "X.Y.Z" (the published 1.1.0 reports "v1.1.0") - pyproject.toml: declare the license as an SPDX expression with license-files and drop the deprecated license classifier (requires setuptools>=77.0.0 at build time) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2233 +/- ##
==========================================
- Coverage 98.26% 98.25% -0.01%
==========================================
Files 181 181
Lines 12863 12863
==========================================
- Hits 12640 12639 -1
- Misses 223 224 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two small packaging fixes before the v1.2.0 release (same as felixdittrich92/OnnxTR#132):
doctr.__version__without the tag prefix: the publish workflow passes the release tag (vX.Y.Z) asBUILD_VERSION, whichsetup.pywrote as is intodoctr/version.py. The package version is normalized toX.Y.Z, but__version__kept the prefix (the publishedpython-doctr1.1.0 reports'v1.1.0'). The prefix is now removed.license = {file = "LICENSE"}(TOML table) and the license classifier are deprecated by setuptools, builds will no longer be supported after 2027-02-18. The license is now declared aslicense = "Apache-2.0"withlicense-files = ["LICENSE"], which requiressetuptools>=77.0.0at build time.Tests
Built like the publish workflow (
BUILD_VERSION=v1.2.0 python -m build):doctr.__version__and the package metadata are both1.2.0(1.1.1a0withoutBUILD_VERSION); before this PR,__version__was'v1.2.0'License-Expression: Apache-2.0,License-File: LICENSEtwine checkpasses for the wheel and the sdist🤖 Generated with Claude Code