Skip to content

Commit

Permalink
Rename module directory in order to be detected by import
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMili committed May 30, 2024
1 parent a3ef8eb commit 48a8fe9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/__init__.py → isvirtual/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os.path as osp

from isvirtual.main import *

version_path = osp.join(osp.dirname(__file__), "VERSION.md")

if osp.exists(version_path):
Expand Down
2 changes: 1 addition & 1 deletion src/cli.py → isvirtual/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typer
from typing_extensions import Annotated

from . import check_dir, is_virtual_env
from isvirtual import check_dir, is_virtual_env


app = typer.Typer(add_completion=False)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Repository = "https://github.com/AlexMili/isVirtual"
Documentation = "https://github.com/AlexMili/isVirtual"

[project.scripts]
isvirtual = "main:is_virtual_cli"
isvirtual = "isvirtual.cli:app"

[tool.hatch.build.targets.wheel]
packages = ["./src"]
packages = ["./isvirtual"]

[tool.hatch.version]
path = "src/VERSION.md"
path = "isvirtual/VERSION.md"
pattern = "(?P<version>.*)"

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 48a8fe9

Please sign in to comment.