Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Create Llama
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Create Llama
Commits
91301127
Commit
91301127
authored
1 year ago
by
Marcus Schiesser
Browse files
Options
Downloads
Patches
Plain Diff
fix[cl]: naming bug and added release changeset
parent
9d69571d
No related branches found
Branches containing commit
Tags
v0.2.8
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/python.ts
+3
-6
3 additions, 6 deletions
templates/python.ts
with
3 additions
and
6 deletions
templates/python.ts
+
3
−
6
View file @
91301127
...
...
@@ -41,25 +41,22 @@ const addDependencies = async (
// Modify toml dependencies
const
tool
=
fileParsed
.
tool
as
any
;
const
d
ependencies
=
tool
.
poetry
.
dependencies
as
any
;
const
existingD
ependencies
=
tool
.
poetry
.
dependencies
as
any
;
for
(
const
dependency
of
dependencies
)
{
d
ependencies
[
dependency
.
name
]
=
dependency
.
version
;
existingD
ependencies
[
dependency
.
name
]
=
dependency
.
version
;
}
// Write toml file
const
newFileContent
=
stringify
(
fileParsed
);
await
fs
.
writeFile
(
file
,
newFileContent
);
const
dependenciesString
=
dependencies
.
map
((
d
:
Dependency
)
=>
d
.
name
)
.
join
(
"
,
"
);
const
dependenciesString
=
dependencies
.
map
((
d
)
=>
d
.
name
).
join
(
"
,
"
);
console
.
log
(
`\nAdded
${
dependenciesString
}
to
${
cyan
(
FILENAME
)}
\n`
);
}
catch
(
error
)
{
console
.
log
(
`Error while updating dependencies for Poetry project file
${
FILENAME
}
\n`
,
error
,
);
console
.
log
(
error
);
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment