This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PyPI publishing by modernizing package configuration
This commit updates our package configuration to use modern Python packaging tools: - Moves build configuration to pyproject.toml using hatchling as the build backend - Updates metadata version to properly handle license-file - Converts setup.py to a custom build hook for dynamic dependency handling - Maintains existing functionality while using modern packaging standards Fixes #596
- Loading branch information
1 parent
3a01f0a
commit a4ce249
Showing
2 changed files
with
43 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "mentat" | ||
dynamic = ["version"] | ||
description = "AI coding assistant on your command line" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.10" | ||
authors = [ | ||
{ name = "Abante AI", email = "[email protected]" }, | ||
] | ||
dependencies = [ | ||
# We'll dynamically read these from requirements.txt in the [tool.hatch.build.targets.wheel] section | ||
] | ||
|
||
[tool.hatch.version] | ||
path = "mentat/VERSION" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["mentat", "benchmarks"] | ||
|
||
[tool.hatch.build.targets.wheel.hooks.custom] | ||
path = "setup.py" | ||
|
||
[project.scripts] | ||
mentat = "mentat.terminal.client:run_cli" | ||
mentat-server = "mentat.server.mentat_server:main" | ||
mentat-daemon = "mentat.daemon:main" | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--ignore=vscode/bundled --ignore=benchmarks/benchmark_repos --ignore=testbed/exercism-python" | ||
|
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