From b3124c38aa6e6d0fb9972ef8a8a274d677f92f6e Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Fri, 22 Nov 2024 23:37:52 -0800 Subject: [PATCH] try triggering manually --- Cargo.toml | 6 ++++++ setup.py | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3370f56..8a334c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [package] + name = "krec" version.workspace = true edition.workspace = true @@ -7,6 +8,7 @@ license = "MIT" authors = ["Denys Bezmenov "] [dependencies] + prost = "0.13" bytes = "1" thiserror = "1.0" @@ -16,11 +18,15 @@ tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } [build-dependencies] + prost-build = "0.12" [workspace] + members = ["krec/bindings"] +resolver = "2" [workspace.package] + version = "0.2.3" edition = "2021" diff --git a/setup.py b/setup.py index 1f0c555..4e7b011 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ from setuptools import find_packages, setup from setuptools.command.build_ext import build_ext +from setuptools.command.build_py import build_py from setuptools_rust import Binding, RustExtension with open("README.md", "r", encoding="utf-8") as f: @@ -39,6 +40,12 @@ def run(self) -> None: super().run() +class CustomBuild(build_py): + def run(self) -> None: + self.run_command("build_ext") + super().run() + + setup( name="krec", version=version, @@ -59,5 +66,8 @@ def run(self) -> None: python_requires=">=3.11", include_package_data=True, packages=find_packages(include=["krec"]), - cmdclass={"build_ext": RustBuildExt}, + cmdclass={ + "build_ext": RustBuildExt, + "build_py": CustomBuild, + }, )