Skip to content

chore(python): keep only python in this repo#1

Merged
korniltsev-grafanista merged 1 commit intomainfrom
kk/import2
Apr 2, 2026
Merged

chore(python): keep only python in this repo#1
korniltsev-grafanista merged 1 commit intomainfrom
kk/import2

Conversation

@korniltsev-grafanista
Copy link
Copy Markdown
Collaborator

@korniltsev-grafanista korniltsev-grafanista commented Apr 2, 2026

Restructure from monorepo layout to standalone Python package repo.

  • rust/ — Rust extension with pyroscope = "2.0.0" from crates.io (not path dep)
  • python/ — Python package source (pyroscope + pyroscope_io)
  • scripts/tests/ — FFI compilation and integration test scripts
  • docker/ — wheel and musllinux Dockerfiles (adapted paths)
  • Makefile — linux/musllinux/mac build targets, check/tag-version, ffi header/cffi generation
  • Add test_cargo_version_matches_python_version Rust test (Cargo.toml vs pyproject.toml)
  • Add ci-rust.yml workflow for Rust fmt/clippy/test
  • Add tag-version verification step in release workflow
  • Docker wheel build tested locally (manylinux2014 amd64)

Companion PR to remove Python from pyroscope-rs: grafana/pyroscope-rs#488

Restructure from monorepo layout to standalone Python package:
- rust/ — Rust extension (pyroscope dep from crates.io, not path)
- python/ — Python package source
- scripts/tests/ — FFI compilation and integration test
- docker/ — wheel and musllinux Dockerfiles
- Makefile — linux/musllinux/mac build targets, check/tag-version
- Add version sync test (Cargo.toml vs pyproject.toml)
- Add ci-rust.yml workflow for Rust fmt/clippy/test
- Add tag-version verification step in release workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
korniltsev-grafanista added a commit to grafana/pyroscope-rs that referenced this pull request Apr 2, 2026
Python, Ruby, and kindasafe have been extracted to their own
repositories:
- grafana/pyroscope-python
(grafana/pyroscope-python#1)
- grafana/pyroscope-ruby
(grafana/pyroscope-ruby#1)

This leaves pyroscope-rs as a pure Rust profiling library crate.

Removed:
- `pyroscope_ffi/` — all Python and Ruby FFI source code
- `kit/` — kindasafe and kindasafe_init crates
- `docker/` — wheel, musllinux, and gem Dockerfiles
- `ci/` — version bump, tag check, spy version check scripts
- All Python/Ruby/kindasafe CI workflows
- `pyproject.toml`, `setup.py`, `MANIFEST.in`, `ffi.mk`
- `[workspace]` and `[workspace.dependencies]` — inlined deps, no more
workspace members

Simplified:
- `release.yml` — only `lib-*` tags, uses `make check/lib-tag-version`
- `ci-rust.yml` — single package, no matrix; removed kindasafe-versions
check and macOS test job
- `Makefile` — removed FFI targets, added `check/lib-tag-version`

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@korniltsev-grafanista
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@korniltsev-grafanista korniltsev-grafanista merged commit a781b81 into main Apr 2, 2026
33 checks passed
@korniltsev-grafanista korniltsev-grafanista deleted the kk/import2 branch April 13, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants