Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gepetto Utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
Gepetto Utils
Commits
eb7bdf71
Commit
eb7bdf71
authored
10 months ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
requests → httpx
parent
b70d8e2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/doc.py
+3
-3
3 additions, 3 deletions
scripts/doc.py
with
3 additions
and
3 deletions
scripts/doc.py
+
3
−
3
View file @
eb7bdf71
...
@@ -4,7 +4,7 @@ from io import BytesIO
...
@@ -4,7 +4,7 @@ from io import BytesIO
from
pathlib
import
Path
from
pathlib
import
Path
from
zipfile
import
ZipFile
from
zipfile
import
ZipFile
import
requests
import
httpx
DOC
=
Path
(
"
/net/cubitus/projects/Partage_GEPETTO/Doc
"
)
DOC
=
Path
(
"
/net/cubitus/projects/Partage_GEPETTO/Doc
"
)
GITLAB
=
"
https://gitlab.laas.fr
"
GITLAB
=
"
https://gitlab.laas.fr
"
...
@@ -17,11 +17,11 @@ if __name__ == "__main__":
...
@@ -17,11 +17,11 @@ if __name__ == "__main__":
f
.
write
(
head
.
read
())
f
.
write
(
head
.
read
())
for
project
,
namespace
,
branch
in
sorted
(
for
project
,
namespace
,
branch
in
sorted
(
requests
.
get
(
f
"
{
RAINBOARD
}
/doc
"
).
json
()[
"
ret
"
]
httpx
.
get
(
f
"
{
RAINBOARD
}
/doc
"
).
json
()[
"
ret
"
]
):
):
url
=
f
"
{
GITLAB
}
/
{
namespace
}
/
{
project
}
/-/jobs/artifacts/
{
branch
}
/download
"
url
=
f
"
{
GITLAB
}
/
{
namespace
}
/
{
project
}
/-/jobs/artifacts/
{
branch
}
/download
"
path
=
DOC
/
namespace
/
project
/
branch
path
=
DOC
/
namespace
/
project
/
branch
r
=
requests
.
get
(
url
,
{
"
job
"
:
"
doc-coverage
"
},
stream
=
True
)
r
=
httpx
.
get
(
url
,
{
"
job
"
:
"
doc-coverage
"
},
stream
=
True
)
try
:
try
:
z
=
ZipFile
(
BytesIO
(
r
.
content
))
z
=
ZipFile
(
BytesIO
(
r
.
content
))
path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
...
...
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