diff --git a/pyproject.toml b/pyproject.toml index a10b02e69b..5ee44fc1eb 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 = "crawlee" version = "1.8.4" description = "Crawlee 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.10" 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.10", "Programming Language :: Python :: 3.11", @@ -148,18 +148,9 @@ dev = [ "uvicorn[standard]<1.0.0", ] -[tool.hatch.build.targets.wheel] -packages = ["src/crawlee"] - -[tool.hatch.build.targets.sdist] -only-include = [ - "src/crawlee", - "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 diff --git a/src/crawlee/project_template/{{cookiecutter.project_name}}/Dockerfile b/src/crawlee/project_template/{{cookiecutter.project_name}}/Dockerfile index dcab0ea94c..639e251387 100644 --- a/src/crawlee/project_template/{{cookiecutter.project_name}}/Dockerfile +++ b/src/crawlee/project_template/{{cookiecutter.project_name}}/Dockerfile @@ -49,7 +49,7 @@ RUN echo "Python version:" \ RUN pip install --no-deps --force-reinstall "playwright=={{ playwright_version }}" # % endif # % elif cookiecutter.package_manager == 'uv' -COPY --from=ghcr.io/astral-sh/uv:0.11 /uv /uvx /bin/ +COPY --from=ghcr.io/astral-sh/uv:0.12 /uv /uvx /bin/ ENV UV_PROJECT_ENVIRONMENT="/usr/local"