From 0cd0d102cdb22326517b32d88ef129b6058ea643 Mon Sep 17 00:00:00 2001 From: David Whiteside Date: Mon, 8 Apr 2024 18:10:45 -0600 Subject: [PATCH] fixed issue with python 3.11 related to TemporaryDirectory creation --- pyproject.toml | 5 +++-- setup.py | 3 ++- src/tempyenv/__init__.py | 2 +- src/tempyenv/cli.py | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 657a537..f6c3615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tempyenv" -version = "1.0.1" +version = "1.0.2" authors = [ { name="David Whiteside", email="david@davidwhiteside.com" }, ] @@ -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"] \ No newline at end of file +where = ["src"] diff --git a/setup.py b/setup.py index c317383..289c7f5 100644 --- a/setup.py +++ b/setup.py @@ -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=[], diff --git a/src/tempyenv/__init__.py b/src/tempyenv/__init__.py index be3a6d3..71159eb 100644 --- a/src/tempyenv/__init__.py +++ b/src/tempyenv/__init__.py @@ -1,2 +1,2 @@ -__version__ = '1.0.0' +__version__ = '1.0.2' __author__ = 'David Whiteside' diff --git a/src/tempyenv/cli.py b/src/tempyenv/cli.py index 893f68a..f20c60f 100644 --- a/src/tempyenv/cli.py +++ b/src/tempyenv/cli.py @@ -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):