| 1 |
# The version below and the `harlequin==` pin further down are one number: |
| 2 |
# hsql ships with the Harlequin release it names. `release.yml` sets both -- |
| 3 |
# `uv version --project packaging/hsql` and `uv add --project packaging/hsql`, |
| 4 |
# alongside the bump to Harlequin's own version -- and `test_packaging.py` |
| 5 |
# fails if they ever disagree. |
| 6 |
# |
| 7 |
# Keep this comment here rather than above `version`: `uv version` rewrites |
| 8 |
# that line and takes any comment attached to it along. |
| 9 |
|
| 10 |
[project] |
| 11 |
|
| 12 |
name = "hsql" |
| 13 |
version = "2.13.0" |
| 14 |
requires-python = ">=3.10" |
| 15 |
description = "The headless SQL client for scripts and agents. Installs Harlequin." |
| 16 |
authors = [ |
| 17 |
{ name = "Ted Conbeer", email = "[email protected]" } |
| 18 |
] |
| 19 |
license = "MIT" |
| 20 |
license-files = ["LICENSE"] |
| 21 |
readme = "README.md" |
| 22 |
keywords = ["sql", "cli", "harlequin", "agents", "headless"] |
| 23 |
classifiers = [ |
| 24 |
"Development Status :: 4 - Beta", |
| 25 |
"Operating System :: MacOS :: MacOS X", |
| 26 |
"Operating System :: Microsoft :: Windows", |
| 27 |
"Operating System :: POSIX :: Linux", |
| 28 |
"Programming Language :: Python :: 3.10", |
| 29 |
"Programming Language :: Python :: 3.11", |
| 30 |
"Programming Language :: Python :: 3.12", |
| 31 |
"Programming Language :: Python :: 3.13", |
| 32 |
"Programming Language :: Python :: 3.14", |
| 33 |
] |
| 34 |
|
| 35 |
# hsql is a metapackage: it ships no modules of its own, it just installs |
| 36 |
# Harlequin. It is released with Harlequin and carries Harlequin's version |
| 37 |
# number, so the pin is exact: hsql 2.9.0 *is* harlequin 2.9.0, and the number |
| 38 |
# means the same thing whichever name you install by. An exact pin also keeps |
| 39 |
# the entry point below honest -- it points into a module that only exists in |
| 40 |
# releases that ship the `hsql` command. |
| 41 |
dependencies = [ |
| 42 |
"harlequin==2.13.0", |
| 43 |
] |
| 44 |
|
| 45 |
|
| 46 |
[project.scripts] |
| 47 |
|
| 48 |
# The `harlequin` distribution provides this same script, from this same entry |
| 49 |
# point -- so the two console scripts are byte-identical and whichever is |
| 50 |
# written second is a no-op. Declaring it here anyway is what makes |
| 51 |
# `uvx hsql --help` work without uv's "an executable named `hsql` is not |
| 52 |
# provided by package `hsql`; consider `uvx --from harlequin hsql`" warning, |
| 53 |
# which is the one install story this package exists to serve. The cost is that |
| 54 |
# `pip uninstall hsql` takes the shared script with it and leaves an installed |
| 55 |
# Harlequin without its `hsql` command; `pip install --force-reinstall |
| 56 |
# harlequin` puts it back. |
| 57 |
hsql = "harlequin.hsql:main" |
| 58 |
|
| 59 |
|
| 60 |
[project.urls] |
| 61 |
|
| 62 |
Homepage = "https://harlequin.sh" |
| 63 |
Documentation = "https://harlequin.sh/docs/getting-started/index" |
| 64 |
Repository = "https://github.com/tconbeer/harlequin" |
| 65 |
"Bug Tracker" = "https://github.com/tconbeer/harlequin/issues" |
| 66 |
Changelog = "https://github.com/tconbeer/harlequin/blob/main/CHANGELOG.md" |
| 67 |
|
| 68 |
|
| 69 |
[build-system] |
| 70 |
|
| 71 |
requires = ["hatchling"] |
| 72 |
build-backend = "hatchling.build" |
| 73 |
|
| 74 |
|
| 75 |
[tool.hatch.build.targets.wheel] |
| 76 |
|
| 77 |
# there are no modules to ship; without this hatchling cannot infer a target. |
| 78 |
bypass-selection = true |