Skip to content

Commit 2a3523c

Browse files
authored
Merge pull request #356 from dralley/master
Replace WorkingDir with python stdlib
2 parents 51a2ff8 + 152f549 commit 2a3523c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pulp_python/app/tasks/publish.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from gettext import gettext as _
22
import logging
33
import os
4+
import tempfile
45

56
from packaging.utils import canonicalize_name
67
from django.core.files import File
78
from django.template import Context, Template
89

910
from pulpcore.plugin import models
10-
from pulpcore.plugin.tasking import WorkingDirectory
1111

1212
from pulp_python.app import models as python_models
1313

@@ -60,7 +60,7 @@ def publish(repository_version_pk):
6060
version=repository_version.number,
6161
))
6262

63-
with WorkingDirectory():
63+
with tempfile.TemporaryDirectory("."):
6464
with python_models.PythonPublication.create(repository_version) as publication:
6565
write_simple_api(publication)
6666

0 commit comments

Comments
 (0)