Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Fetch all history and tags for uv-dynamic-versioning

- name: Install uv
uses: astral-sh/setup-uv@v5
Expand Down
35 changes: 28 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling>=1.25.0", "uv-dynamic-versioning>=0.11.0"]
build-backend = "hatchling.build"

[project]
name = "git-worktree-cli"
version = "0.2.1"
dynamic = ["version"]
description = "A lightweight Python CLI tool to simplify Git worktree management"
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "cebidhem"}]
keywords = ["git", "cli", "developer-tools", "claude"]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"typer>=0.9.0",
]
Expand All @@ -22,7 +32,18 @@ dev = [
[project.scripts]
wt = "wt.cli:app"

[tool.setuptools.packages.find]
where = ["."]
include = ["wt*"]
exclude = ["specs*"]
[project.urls]
Homepage = "https://github.com/cebidhem/git-worktree-cli"
Repository = "https://github.com/cebidhem/git-worktree-cli"
Issues = "https://github.com/cebidhem/git-worktree-cli/issues"

[tool.hatch.build.targets.wheel]
packages = ["wt"]

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.uv-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
1 change: 0 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion wt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""git-worktree-cli: A lightweight Python CLI tool to simplify Git worktree management."""

__version__ = "0.1.0"
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("git-worktree-cli")
except PackageNotFoundError:
# Package not installed, running from source
__version__ = "dev"