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

Updating pyradio on PyPi (pip) #78

Open
s-n-g opened this issue Dec 4, 2018 · 9 comments
Open

Updating pyradio on PyPi (pip) #78

s-n-g opened this issue Dec 4, 2018 · 9 comments
Labels
installation Installation procedure related topics

Comments

@s-n-g
Copy link
Collaborator

s-n-g commented Dec 4, 2018

@coderholic

Can you please take a look at #77 regarding updating pyradio in PyPi?

@s-n-g s-n-g added the installation Installation procedure related topics label Dec 30, 2019
@jirikrepl
Copy link
Contributor

it would be nice to update it, can anyone do it?

@FestplattenSchnitzel
Copy link

FYI you can install pyradio via pips VCS Support directly from this Git Repository:

Install

pip install git+https://github.com/coderholic/pyradio.git
# This might not be necessary, if [python3-]psutil is already installed.
pip install psutil

Upgrade

pip install --upgrade git+https://github.com/coderholic/pyradio.git psutil

Uninstall

pip uninstall pyradio psutil

(If you use pipx, make sure to inject psutil with pipx inject pyradio psutil.)

@s-n-g
Copy link
Collaborator Author

s-n-g commented Dec 28, 2022

Hi @FestplattenSchnitzel

Although using pip's VCS Support is correct, it is currently not 100% suitable for a pyradio installation.

Since I never had PyPI access for this project (I am not the original programmer, you see), I have created a workaround; the install.py script.

This script will:

  1. build and install the wheel (using pip).
    It will download the stable (i.e. tagged) version from the repo and work with it.
  2. install html documentation and man pages
    Using the pip method will not update the documentation, and having outdated documentation is not the best thing to face especially when you run into problems or want to customize things.
  3. install a Desktop File (Start Menu link file on Windows).
    This is a nice feature to have on linux, but a must have on Windows.

Furthermore, once pyradio is installed, it will automatically check for an update and ask for permission to download and install one (if found). So, the pip method is not necessary any more.

Now, one is free to use any method one finds easier, but I would recommend using the install.py script for the first installation, and the "automatic" way of updating (using pyradio -U is also an option).

@s-n-g s-n-g pinned this issue Dec 28, 2022
@luzpaz
Copy link

luzpaz commented Apr 5, 2024

Current pypi version is 0.5.2 (https://pypi.org/project/pyradio/)

@s-n-g
Copy link
Collaborator Author

s-n-g commented Apr 5, 2024

Yes, @luzpaz I know...

I am not the creator of the project, @coderholic is, and I do not have access to pypi

Either way, maybe it's for the best; providing a custom installation method allows for the installation of man pages, html help etc. which would not be possible through pypi (as far as I know)

@techtonik
Copy link
Contributor

@klen can you help with that? It seems you have access to pyradio too.

@Scary-Guy
Copy link

So this is a really dumb idea I'm sure but... what about just renaming the project?

Yeah I know it's not exactly an easy task but it's better than having to try to do workarounds that may be slightly confusing for some people (like me who tried to install via pip first.)

You could call it radiopy or something.

@s-n-g
Copy link
Collaborator Author

s-n-g commented Dec 30, 2024

@Scary-Guy

That would be a solution, I know, but one I'm not ready to even consider right now.

I undestand that using a script like install.py is not an orthodox way, but on the other hand, it is only required once, then the program will essentially update itself.

The downside of renaming the repo altogether, effectively creating a new project, would lead to losing all the hisyory, issues, etc. we have in this repo, I would not like to do that...

So, for the time being, I think we are good as we are 😉

@Scary-Guy
Copy link

Yeah, I mean once it's done it's fine. However not everyone is so technically minded so I think the simpler things can be made the better.

There's also a good argument of survival of the fittest, and if someone can't figure out how to install something when most of the legwork is done for them (binaries instead of compiling) that maybe they don't necessarily need or deserve to have that program. But I am kind of a jerk too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Installation procedure related topics
Projects
None yet
Development

No branches or pull requests

6 participants