Skip to content

Commit

Permalink
Prevent __main__.py from attempting to execute on Windows. (#57)
Browse files Browse the repository at this point in the history
Closes #56
  • Loading branch information
brettcannon authored Oct 17, 2023
1 parent bf19f92 commit ee3b599
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3"
python: "3.11"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
6 changes: 6 additions & 0 deletions microvenv/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import sys

if sys.platform == "win32":
print("Microvenv's CLI is not supported on Windows", file=sys.stderr)
sys.exit(1)

from ._create import main

if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"

[project]
name = "microvenv"
version = "2023.3.post1"
version = "2023.4"
description = "A minimal re-implementation of Python's venv module plus utilities"
keywords = ["virtual environments", "venv"]
readme = "README.md"
Expand Down

0 comments on commit ee3b599

Please sign in to comment.