PlanarAlly icon indicating copy to clipboard operation
PlanarAlly copied to clipboard

Add PlanarAlly to PyPI

Open asmfreak opened this issue 4 years ago • 6 comments

I think it will be a great simplification to minimize the PA installation to simply

pip install PlanarAlly

Writing a setup.py could also help creating a CLI tool for server-side admin management of the PA.

asmfreak avatar Apr 09 '20 17:04 asmfreak

I'm a bit unsure about this. I don't know how common it is for actual end products to be put on PyPI. PA is not a library that can be used by others with an import, so it somehow rubs me wrong.

I can be wrong though.

Kruptein avatar May 11 '20 14:05 Kruptein

PlanarAlly feels out of scope for PyPI. PlanarAlly server is python, but the entire client is Javascript based. In order to run the server, the client must be built using npm (node.js) to produce the static web content which is served to users.

I don't think it would make much sense to bifurcate installation and release across PyPI. If it were pure python, yes, but this is clearly not.

chisaipete avatar May 12 '20 20:05 chisaipete

That said, some kind of installation automation/scripting isn't a terrible idea.

chisaipete avatar May 12 '20 20:05 chisaipete

The PA server and client code could be bundled in one package with frozen dependencies on PyPI. If I understand correctly, once built frontend does not require any external software to run - it's just served by the python PA server (or some other external server for static). It's not out of scope - there are a lot of other projects, such as Home Assistant and Buildbot. They are using PyPI to publish both server and client sides.

asmfreak avatar May 14 '20 07:05 asmfreak

There is indeed no need for npm or such if we were to publish the server on PyPI. If things like home assistant are on there I guess there is no reason why PA wouldn't be. I'll take a look at it.

Kruptein avatar May 14 '20 08:05 Kruptein

Ah, good point, I didn't realize folks are using PyPI for full application distribution.

On Thu, May 14, 2020 at 1:45 AM Darragh Van Tichelen < [email protected]> wrote:

There is indeed no need for npm or such if we were to publish the server on PyPI. If things like home assistant are on there I guess there is no reason why PA wouldn't be. I'll take a look at it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Kruptein/PlanarAlly/issues/289#issuecomment-628489399, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADP6NY4AQDXY6IDUY2AMHDRROVTBANCNFSM4ME4UI2A .

chisaipete avatar May 14 '20 21:05 chisaipete