diff --git a/pyproject.toml b/pyproject.toml index 4407c152..3051eb6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,20 +1,20 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["uv_build"] +build-backend = "uv_build" [project] name = "apify_client" version = "3.1.1" description = "Apify API client for Python" authors = [{ name = "Apify Technologies s.r.o.", email = "support@apify.com" }] -license = { file = "LICENSE" } +license = "Apache-2.0" +license-files = ["LICENSE"] readme = "README.md" requires-python = ">=3.11" classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -67,18 +67,9 @@ dev = [ "werkzeug<4.0.0", # Werkzeug is used by pytest-httpserver ] -[tool.hatch.build.targets.wheel] -packages = ["src/apify_client"] - -[tool.hatch.build.targets.sdist] -only-include = [ - "src/apify_client", - "CHANGELOG.md", - "CONTRIBUTING.md", - "LICENSE", - "README.md", - "pyproject.toml", -] +[tool.uv.build-backend] +# The module, pyproject.toml, README, and LICENSE are included in the sdist by default. +source-include = ["CHANGELOG.md", "CONTRIBUTING.md"] [tool.ruff] line-length = 120