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

Add to APT? #72

Open
Gunni opened this issue Aug 2, 2023 · 6 comments
Open

Add to APT? #72

Gunni opened this issue Aug 2, 2023 · 6 comments

Comments

@Gunni
Copy link

Gunni commented Aug 2, 2023

Hey, not sure how it works but could this get added to the ubuntu apt repositories?

@kyan001
Copy link
Owner

kyan001 commented Aug 2, 2023

  1. Run the following commands in your Linux terminal.
sudo apt install python3 python3-pip
pip3 install ping3
  1. Use ping3 in your terminal.
ping3 google.com
  1. If any command has an error, restart your terminal and try again.

@Gunni
Copy link
Author

Gunni commented Aug 3, 2023

I'm making an apt package for my own app, adding a dependent package is trivial, adding a postinst that uses pip to install ping3 feels dirty.

@kyan001
Copy link
Owner

kyan001 commented Aug 3, 2023

The problem is that I don't know how to make an apt package. I wondering if this can be an apt package since the command is actually running as in python code not binary. Should I build it as a binary file first?

@cpina
Copy link

cpina commented Oct 7, 2023

I've started packing simplemonitor (https://github.com/jamesoff/simplemonitor) into Debian. An optional dependency of simplemonitor is ping3, so I might package it. I will comment here (I have a test version but I haven't uploaded it into Debian just yet).

@cpina
Copy link

cpina commented Oct 7, 2023

When I packaged this for Debian, and while testing it, doing ping3 google.com raised a PermissionError. I know that the point of ping3 is to be used in Python scripts not as a command line but since it was the first thing that I tried it was not a good start.

I've submitted:
#73

To handle the exception and give a better user experience, I think.

If this can be merged (and new ping3 released, if possible) I will resume packaging in Debian. I am not sure that it will be included in Debian since it depends on many things...

@cpina
Copy link

cpina commented Oct 24, 2023

Update here: the package is available on Debian unstable, as seen in:

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

No branches or pull requests

3 participants