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 6feff4f37d4cddcf8d007a3d9c5af84c15cc4049
Author: Stefan Krawczyk <[email protected]>
AuthorDate: Mon Sep 22 22:23:36 2025 -0700

    Change build to use Flit
    
    Flit was recommended to be used.
    
    This change flips to that.
    
    Note: flit does not handle tuples for version,
    so we for now have to manually keep two
    places in sync. Hopefully they take my PR
    and publish a new version we can depend on.
---
 hamilton/version.py |  2 +-
 pyproject.toml      | 17 +++++++++++++----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/hamilton/version.py b/hamilton/version.py
index 6b8d076b..de4eb0f2 100644
--- a/hamilton/version.py
+++ b/hamilton/version.py
@@ -15,4 +15,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-VERSION = (1, 88, 0)
+VERSION = (1, 89, 0)
diff --git a/pyproject.toml b/pyproject.toml
index 172f9634..c4bda2e6 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.89.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 = []

Reply via email to