Skip to content

Commit

Permalink
Merge pull request #3 from outbit/bug/delete_false_breaks_py11
Browse files Browse the repository at this point in the history
fixed issue with python 3.11 related to TemporaryDirectory creation
  • Loading branch information
thedavidwhiteside authored Apr 9, 2024
2 parents f5ff59c + 0cd0d10 commit 435ce49
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tempyenv"
version = "1.0.1"
version = "1.0.2"
authors = [
{ name="David Whiteside", email="[email protected]" },
]
Expand All @@ -24,9 +24,10 @@ build-backend = "setuptools.build_meta"

[project.scripts]
tempyenv = "tempyenv.cli:main"
tmpyenv = "tempyenv.cli:main"

[tool.setuptools]
package-dir = {"" = "src"}

[tool.setuptools.packages.find]
where = ["src"]
where = ["src"]
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
python_requires='>=3.7',
entry_points={
'console_scripts': [
'tempyenv = tempyenv.cli:main'
'tempyenv = tempyenv.cli:main',
'tmpyenv = tempyenv.cli:main',
]
},
data_files=[],
Expand Down
2 changes: 1 addition & 1 deletion src/tempyenv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.0.0'
__version__ = '1.0.2'
__author__ = 'David Whiteside'
2 changes: 1 addition & 1 deletion src/tempyenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self):
self.venv_path = None

def create_temporary_directory(self):
self.temp_dir = tempfile.TemporaryDirectory(delete=False)
self.temp_dir = tempfile.TemporaryDirectory()
self.venv_path = os.path.join(self.temp_dir.name, 'venv')

def create_virtual_environment(self):
Expand Down

0 comments on commit 435ce49

Please sign in to comment.