Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging redo #67

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Packaging redo #67

merged 2 commits into from
Oct 21, 2024

Conversation

dnakov
Copy link
Collaborator

@dnakov dnakov commented Oct 21, 2024

Checklist

  • Closing issues: #issue
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some documentation

Description

I was having a very hard time running this from scratch in all the various ways (pipe/plugin/cli)
The idea here is that we have r2ai/cli.py and r2ai/plugin.py. No more .py in root, which solves a lot of the annoying relative import issues.
You can now run it for dev with ./r2ai.sh for dev and via python -m r2ai.(cli/plugin)
Removed requirements.txt, it's in pyproject.toml.

r2ai/main.py Outdated

def r2ai_rlang_plugin(unused_but_required_argument):
print('hello')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover

Copy link
Contributor

@trufae trufae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! But ill test once merged

r2ai/main.py Outdated Show resolved Hide resolved
@trufae trufae merged commit 1b8d17f into radareorg:master Oct 21, 2024
1 check passed
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