-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyproject.toml, uv, and hatchling. This produces the following layout using uv pip install --no-deps --prefix=/tmp/test-prefix .` /tmp/test-prefix/.lock /tmp/test-prefix/bin/git-revise /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/merge.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/odb.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/__init__.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/utils.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/tui.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/todo.py /tmp/test-prefix/lib/python3.12/site-packages/gitrevise/__main__.py /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/INSTALLER /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/REQUESTED /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/licenses/LICENSE /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/direct_url.json /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/RECORD /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/entry_points.txt /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/WHEEL /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/METADATA /tmp/test-prefix/lib/python3.12/site-packages/git_revise-0.7.0.dist-info/uv_cache.json /tmp/test-prefix/share/man/man1/git-revise.1
- Loading branch information
Showing
16 changed files
with
1,686 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "git-revise" | ||
dynamic = ["version"] | ||
requires-python = ">=3.8" | ||
authors = [{ name = "Nika Layzell", email = "[email protected]" }] | ||
description = "Efficiently update, split, and rearrange git commits" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
keywords = ["git", "revise", "rebase", "amend", "fixup"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Environment :: Console", | ||
"Topic :: Software Development :: Version Control", | ||
"Topic :: Software Development :: Version Control :: Git", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
|
||
[project.scripts] | ||
git-revise = "gitrevise.tui:main" | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"isort~=5.13.2", | ||
"mypy~=1.14.1", | ||
"pylint~=3.2.7", | ||
"pytest-xdist~=3.6.1", | ||
"pytest~=8.3.4", | ||
"ruff~=0.9.6", | ||
"sphinx~=7.1.2", | ||
"tox-uv~=1.13.1", | ||
"tox~=4.24.1", | ||
"twine~=6.1.0", | ||
"typing-extensions~=4.12.2", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/mystor/git-revise/" | ||
Issues = "https://github.com/mystor/git-revise/issues/" | ||
Repository = "https://github.com/mystor/git-revise/" | ||
Documentation = "https://git-revise.readthedocs.io/en/latest/" | ||
|
||
[tool.hatch.version] | ||
path = "gitrevise/__init__.py" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["/gitrevise"] | ||
|
||
[tool.hatch.build.targets.wheel.shared-data] | ||
"git-revise.1" = "share/man/man1/git-revise.1" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["/gitrevise"] | ||
|
||
[tool.pylint.messages_control] | ||
disable = [ | ||
"missing-docstring", | ||
"too-few-public-methods", | ||
"too-many-arguments", | ||
"too-many-branches", | ||
"too-many-instance-attributes", | ||
"too-many-return-statements", | ||
"cyclic-import", | ||
"fixme", | ||
|
||
# Currently broken analyses which are also handled (better) by mypy | ||
"class-variable-slots-conflict", | ||
"no-member", | ||
] | ||
|
||
good-names = [ | ||
# "Exception as e" is perfectly fine. | ||
"e", | ||
# "with open(…) as f" is idiomatic. | ||
"f", | ||
# Other contextually-unambiguous names. | ||
"fn", | ||
"repo", | ||
"ed", | ||
] | ||
|
||
# TODO(https://github.com/astral-sh/ruff/issues/16105): Remove this once ruff properly respects | ||
# requires-python. | ||
[tool.ruff] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.