-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the WHL Package Name for paddlenlp_ops
- Loading branch information
1 parent
0c65ce7
commit b264bfc
Showing
4 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,13 @@ def read_version(): | |
""" | ||
read version and return content | ||
""" | ||
VERSION = "3.0.0b3.post" | ||
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)) | ||
|
||
return VERSION | ||
|
||
|
||
|
@@ -50,7 +57,7 @@ def read_readme(): | |
setup( | ||
name="paddlenlp_ops", | ||
packages=find_packages(), | ||
version="0.0.0", | ||
version=read_version(), | ||
author="Paddle Infernce Team", | ||
author_email="[email protected]", | ||
description=description, | ||
|
This file contains 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
This file contains 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
This file contains 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