Skip to content

Commit bb8e88c

Browse files
committed
wip: python package
1 parent afbef87 commit bb8e88c

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

pyroscope_ffi/python/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include lib *

pyroscope_ffi/python/lib/.cargo/config

Whitespace-only changes.

pyroscope_ffi/python/lib/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ pyroscope_pyspy = { path = "../../../pyroscope_backends/pyroscope_pyspy" }
1515
cbindgen = "0.20.0"
1616

1717
[profile.release]
18+
opt-level= "z"
19+
debug = false
1820
lto = true
1921
codegen-units = 1

pyroscope_ffi/python/lib/__init__.py

Whitespace-only changes.
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1+
# The language to output bindings in
12
language = "C"
3+
documentation_style = "C"
4+
25
style = "type"
3-
header = "/* Licensed under Apache-2.0 */"
6+
7+
# An optional name to use as an include guard
48
include_guard = "PYROSCOPE_FFI_H_"
9+
# include a comment with the version of cbindgen used to generate the file
510
include_version = true
11+
12+
# An optional string of text to output at the beginning of the generated file
13+
header = "/* Licensed under Apache-2.0 */"
614
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
15+
16+
braces = "SameLine"
717
tab_width = 2
818
line_length = 80
919

1020
[parse]
11-
parse_deps = false
21+
# Do not parse dependent crates
22+
parse_deps = false

pyroscope_ffi/python/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyroscope_beta
3-
version= 0.1.0
3+
version= 0.2.0
44
description = Pyroscope Python integration
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)