Skip to content
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
21 changes: 10 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build>=0.12,<0.13"]
build-backend = "uv_build"

[project]
name = "clevercloud-sdk"
version = "0.2.0"
description = "Python SDK for Clever Cloud"
readme = "README.md"
license = "Apache-2.0"
# Explicit: unlike hatchling, uv_build does not ship the licence file unless
# it is listed, and Apache-2.0 requires redistributing it with the work.
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [
{ name = "David LEGRAND", email = "david.legrand@clever.cloud" }
Expand Down Expand Up @@ -44,15 +47,11 @@ Documentation = "https://github.com/CleverCloud/clevercloud-sdk-python#readme"
Repository = "https://github.com/CleverCloud/clevercloud-sdk-python"
Issues = "https://github.com/CleverCloud/clevercloud-sdk-python/issues"

[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/CHANGELOG.md",
]

[tool.hatch.build.targets.wheel]
packages = ["src/clever_cloud"]
[tool.uv.build-backend]
# The distribution is named clevercloud-sdk but the module is clever_cloud,
# which uv_build cannot derive from the project name.
module-name = "clever_cloud"
source-include = ["tests/**", "CHANGELOG.md"]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
Loading