Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
36cdd148
Commit
36cdd148
authored
Aug 03, 2024
by
lijian6
Browse files
Modify setup.py for dcu_version
Signed-off-by:
lijian
<
lijian6@sugon.com
>
parent
fe0fecc3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
DIFFUSERS_VERSION_NUMBER
DIFFUSERS_VERSION_NUMBER
+1
-1
setup.py
setup.py
+2
-1
No files found.
DIFFUSERS_VERSION_NUMBER
View file @
36cdd148
__dcu_version__ = '0.29.0+das1.2.git
a9ae914
.abi0.dtk2404'
__dcu_version__ = '0.29.0+das1.2.git
fe0fecc
.abi0.dtk2404'
setup.py
View file @
36cdd148
...
...
@@ -302,7 +302,8 @@ def get_version_add(sha: Optional[str] = None) -> str:
init_path
=
os
.
path
.
join
(
ort_root
,
"src/diffusers/__init__.py"
)
with
open
(
init_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
[
1
]
=
"__dcu_version__ = '0.29.0.0+das1.2.{}'
\n
"
.
format
(
version
)
lines
[
1
]
=
"__dcu_version__ = '0.29.0+das1.2.{}'
\n
"
.
format
(
version
)
lines
[
818
]
=
" extra_objects={
\"
__version__
\"
: __version__,
\"
__dcu_version__
\"
: __dcu_version__},
\n
"
with
open
(
init_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
file
.
writelines
(
lines
)
file
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment