matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
127 stars 34 forks source link

PyPI/PyPA package? #22

Closed lullis closed 2 years ago

lullis commented 5 years ago

It would be great to have this application available directly on PyPI servers. Any reason it hasn't been done yet?

HarHarLinks commented 4 years ago

you can install from VCS easily using pip: pip install git+https://github.com/matrix-org/synapse-s3-storage-provider

lullis commented 4 years ago

Yes, I know that is possible. However, it is not an answer to the question.

The reason that a "plain pip" package is desirable. I would like to automate the installation of a series of matirix servers. Depending on git forces me to install another dependency on the machine, and not having an actual release prevents me from pinning the version of this package.

synapse itself already has a pip package. Is there any reason that this module can not also have one as well? Perhaps I could help.

clokep commented 4 years ago

I suspect there isn't any particular reason -- just that doing official releases requires a bunch of additional procedure. If this is already installable via pip that's good, we might need to just setup some changelogs and such.

richvdh commented 4 years ago

we expect to be doing a bit of work on this project in the near future; we'll try to incorporate this as part of it.

ShadowJonathan commented 4 years ago

I recently came across this problem when making a synapse container with this plugin inside of it (#14), I tried to use this Dockerfile configuration first:

FROM matrixdotorg/synapse:latest

RUN git clone https://github.com/matrix-org/synapse-s3-storage-provider.git && \
        cd /synapse-s3-storage-provider && \
        pip install .

I compounded that down to

...
RUN pip install git+https://github.com/matrix-org/synapse-s3-storage-provider

But in both cases it failed, because git wasn't installed.

apk wasn't present, and apt wasnt up-to-date (i couldnt do apt install git -y right off the bat)

This is what i settled with:

...
RUN apt update && apt install git -y && \
      pip install git+https://github.com/matrix-org/synapse-s3-storage-provider

Publishing just a package would clutter less, like this.

inaniyants commented 3 years ago

Hi! This package was published to pip registry on May 18, 2021. Here are details: https://github.com/matrix-org/synapse-s3-storage-provider/issues/14#issuecomment-847146994

But in order to close this issue, publication to pip registry should be automated and some versioning would be great.