offlineimap3 icon indicating copy to clipboard operation
offlineimap3 copied to clipboard

Offlineimap config files not stored when installing via `pip`

Open chrysle opened this issue 2 years ago • 11 comments

In the documentation is stated that offlineimap stores a minimal config file below /usr/share. However when installing the program with pip (which naturally has no write access to these directories), this file is nowhere to be found on my system, except in my ~/.cache/ directory. This surely can't be intended?

General information

  • system/distribution (with version): Ubuntu 20.04.05 LTS
  • offlineimap version (offlineimap -V): 7.3.4
  • Python version: 3.8.10
  • server name or domain: -
  • CLI options: -

Configuration file offlineimaprc

REMOVE PRIVATE DATA.

pythonfile (if any)

REMOVE PRIVATE DATA.

Logs, error

REMOVE PRIVATE DATA.

Steps to reproduce the error

  • Install offlineimap with pip and perform a user installation: pip install --user offlineimap
  • Search the whole system for a file named offlineimap.conf.minimal (or offlineimap.conf)

chrysle avatar Jul 07 '23 13:07 chrysle

Hi @chrysle

currently, in pypi, there is only the offlineimap version for Python2. This version, offlineimap3, is Python3.

@spaetz could you help with the upload of offlineimap3 to pypi.org? I am not user how you did the uploads for Python2.

Regards, kix

thekix avatar Nov 22 '23 15:11 thekix

Hi, currently 'offlineimap' and me are listed as maintainers on pypi.org for offlineimap. I am more than happy to pass on that maintainership to the current maintainers. Other than than, I do not think I can be of much help.

spaetz avatar Nov 22 '23 18:11 spaetz

Hi @spaetz

thanks a lot for your reply. @spaetz @nicolas33 who should be in the maintainers group?

To upload the package, are you using setuptools or how are you uploading it?

Cheers, kix

thekix avatar Nov 22 '23 22:11 thekix

I have not been uploading anything for a long time, and to be honest I have no idea how or what tools I had been using. Also, I think pypi has changed quite a few things since then in order to make uploads more secure. So, I won't be of much help in that regard, sorry.

Sent from mobile device.

spaetz avatar Nov 23 '23 06:11 spaetz

Arguably, you want to retire the pip offlineimap package and create a new one named offlineimap3, as that is also the name you have been giving the distro packages?

Sent from mobile device.

spaetz avatar Nov 23 '23 06:11 spaetz

I have not been uploading anything for a long time, and to be honest I have no idea how or what tools I had been using. Also, I think pypi has changed quite a few things since then in order to make uploads more secure.

I'd suggest you create a GitHub Actions Workflow that automatically uploads to PyPI whenever a release happens. See this guide for more information.

chrysle avatar Nov 23 '23 06:11 chrysle

I have not been uploading anything for a long time, and to be honest I have no idea how or what tools I had been using. Also, I think pypi has changed quite a few things since then in order to make uploads more secure. So, I won't be of much help in that regard, sorry. -- Sent from mobile device.

Hi @spaetz

please, include me in the list of maintainers in pypi. I will try to upload a new version. I will use the link provided by @chrysle to do it.

About the offlineimap python2 packages, I am not sure about retire them. You did a great work and if they do not create problems, we should left them in pypi. What do you think?

Best regards, kix

thekix avatar Nov 27 '23 05:11 thekix