We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51a2ff8 + 152f549 commit 2a3523cCopy full SHA for 2a3523c
1 file changed
pulp_python/app/tasks/publish.py
@@ -1,13 +1,13 @@
1
from gettext import gettext as _
2
import logging
3
import os
4
+import tempfile
5
6
from packaging.utils import canonicalize_name
7
from django.core.files import File
8
from django.template import Context, Template
9
10
from pulpcore.plugin import models
-from pulpcore.plugin.tasking import WorkingDirectory
11
12
from pulp_python.app import models as python_models
13
@@ -60,7 +60,7 @@ def publish(repository_version_pk):
60
version=repository_version.number,
61
))
62
63
- with WorkingDirectory():
+ with tempfile.TemporaryDirectory("."):
64
with python_models.PythonPublication.create(repository_version) as publication:
65
write_simple_api(publication)
66
0 commit comments