This is an automated email from the ASF dual-hosted git repository. skrawcz pushed a commit to branch add/flit in repository https://gitbox.apache.org/repos/asf/hamilton.git
commit 4225100215f903733d3f677340e3341cfc833ae6 Author: Stefan Krawczyk <[email protected]> AuthorDate: Mon Sep 22 22:26:57 2025 -0700 Adds flit to build project We switch to flit on the recommendation of apache airflow. Note: flit does not handle tuples for versions, so we have to duplicate this information for now. I have submitted a PR that they will hopefully accept to fix this. --- pyproject.toml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 172f9634..a5df2c0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,12 +16,14 @@ # under the License. [build-system] -requires = ["setuptools>=72.1"] -build-backend = "setuptools.build_meta" +requires = ["flit_core >=3.11,<4"] +build-backend = "flit_core.buildapi" [project] name = "sf-hamilton" -dynamic = ["version"] +version = "1.88.0" # NOTE: keep this in sync with hamilton/version.py +# TODO: flip back to dynamic once flit handles tuples for version +# dynamic = ["version"] description = "Hamilton, the micro-framework for creating dataframes." readme = "README.md" requires-python = ">=3.8.1, <4" @@ -174,7 +176,7 @@ docs = [ "xgboost", ] -[project.entry-points.console_scripts] +[project.scripts] h_experiments = "hamilton.plugins.h_experiments.__main__:main" hamilton = "hamilton.cli.__main__:cli" hamilton-admin-build-ui = "hamilton.admin:build_ui" @@ -272,3 +274,10 @@ exclude = ["*tests*"] [tool.setuptools.package-data] hamilton = ["*.json", "*.md", "*.txt"] + +[tool.flit.module] +name = "hamilton" + +[tool.flit.sdist] +include = ["LICENSE", "NOTICE", "DISCLAIMER"] +exclude = []
