Skip to content

Commit

Permalink
try triggering manually
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 23, 2024
1 parent 6216f7e commit b3124c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[package]

name = "krec"
version.workspace = true
edition.workspace = true
Expand All @@ -7,6 +8,7 @@ license = "MIT"
authors = ["Denys Bezmenov <[email protected]>"]

[dependencies]

prost = "0.13"
bytes = "1"
thiserror = "1.0"
Expand All @@ -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"
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand All @@ -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,
},
)

0 comments on commit b3124c3

Please sign in to comment.