Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use hatch for build backend #67

Merged
merged 1 commit into from
Aug 24, 2024
Merged
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
44 changes: 15 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "shelloracle"
description = """ShellOracle is a pluggable terminal utility that takes a natural language description of a \
command and substitutes it into your terminal buffer."""
readme = "README.md"
license = { file = "LICENSE" }
dynamic = ["version"]
dependencies = [
"httpx",
"openai",
"prompt-toolkit",
"yaspin",
"tomlkit",
"tomli >= 1.1.0; python_version < '3.11'"
]
authors = [
{ name = "Daniel Copley", email = "[email protected]" },
]
description = """ShellOracle is a pluggable terminal utility that takes a natural language description of a \
command and substitutes it into your terminal buffer."""

readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -34,14 +26,13 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]

[project.optional-dependencies]
tests = [
"tox",
"pytest",
"pytest-sugar",
"pytest-asyncio",
"pytest-httpx"
dependencies = [
"httpx",
"openai",
"prompt-toolkit",
"yaspin",
"tomlkit",
"tomli >= 1.1.0; python_version < '3.11'"
]

[project.scripts]
Expand All @@ -52,13 +43,8 @@ Homepage = "https://github.com/djcopley/ShellOracle"
Repository = "https://github.com/djcopley/ShellOracle.git"
Issues = "https://github.com/djcopley/ShellOracle/issues"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
[tool.hatch.version]
source = "vcs"

[tool.pytest.ini_options]
pythonpath = "src"
Expand Down
Loading