-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Version] update version info #9060
[Version] update version info #9060
Conversation
Thanks for your contribution! |
if os.getenv(PADDLENLP_STABLE_VERSION): | ||
__version__ = __version__.replace(".post", "") | ||
else: | ||
formatted_date = datetime.now().date().strftime("%Y%m%d") | ||
__version__ = __version__.replace(".post", ".post{}".format(formatted_date)) | ||
|
||
# the next line will be replaced by setup.py for release version. | ||
# [VERSION_INFO] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.whl 文件中会替换# [VERSION_INFO]
为 __version__ = "3.0.0b1.post20240830"
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9060 +/- ##
===========================================
+ Coverage 53.16% 53.76% +0.60%
===========================================
Files 652 652
Lines 105932 104540 -1392
===========================================
- Hits 56320 56211 -109
+ Misses 49612 48329 -1283 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* update version * update * update * update
PR types
Function optimization
PR changes
Others
Description
develop and release version info can be saved in the
paddlenlp/__init__.py
.