pyowm icon indicating copy to clipboard operation
pyowm copied to clipboard

Distribute PyOWM via package managers to the most used Linux distributions

Open csparpa opened this issue 9 years ago • 14 comments

In order to make even more straightforward for users to install PyOWM, it would be superb to have it installable via package managers (such as apt or rpm) on the most used Linux distros.

The main platforms to be targeted should be: Raspbian, Ubuntu and Fedora.

Good reads are:

  • https://docs.python-guide.org/shipping/packaging/
  • https://wiki.debian.org/Python/Packaging

Good tools could be:

  • https://github.com/jordansissel/fpm
  • https://github.com/astraw/stdeb

csparpa avatar Jan 02 '16 18:01 csparpa

There's an Arch PKGBUILD in the AUR under the name python-owm.

Diapente avatar Nov 08 '16 16:11 Diapente

Hum... I didn't package the lib using any packaging channel, so someone has already kicked it off.

Nothing wrong with it, of course, as soon as that bundle effectively contains PyOWM 2.5

As regards this task, I was thinking about Debian/Ubuntu packaging as a priority

csparpa avatar Nov 08 '16 17:11 csparpa

Yeah that was me - it was more of an FYI. It should be at 2.5.0 now.

On Tuesday, November 8, 2016, Claudio Sparpaglione [email protected] wrote:

Hum... I didn't package the lib using any packaging channel, so someone has already kicked it off.

Nothing wrong with it, of course, as soon as that bundle effectively contains PyOWM 2.5

As regards this task, I was thinking about Debian/Ubuntu packaging as a priority

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/csparpa/pyowm/issues/98#issuecomment-259204857, or mute the thread https://github.com/notifications/unsubscribe-auth/ASmnE7i0pcLmdpbyPgp1ePsL6S1RliuDks5q8LNjgaJpZM4G9k41 .

Diapente avatar Nov 08 '16 17:11 Diapente

Haaa sorry, I didn't get :) Super!!! Thanks for supporting!

csparpa avatar Nov 08 '16 18:11 csparpa

@Diapente could you please submit any kind of high level guideline on how to install PyOWM via AUR packaging? Be it anything, I mean, a single command line or a bullet pointed list or whatever So that I can update READMe.md with that info

You could submit a PR to the master branch yourself as well, if you want

Thanks so much!

csparpa avatar Nov 08 '16 18:11 csparpa

Sure - there are various methods to access the AUR but one of more common/easily understood ones would be:

Yaourt -S python-owm

Then follow the prompts as for any other PKGBUILD.

I only made a python3 package. PyOWM is compatible with python2 so do you want me to package a python2 version? That would take the name python2-owm (following AUR convention).

https://wiki.archlinux.org/index.php/PKGBUILD

Just for your edification I posted the link to the wiki page on PKGBUILD - essentially it's a bash script that automates the downloading and installation of a package according to parameters defined by the packager. When another user downloads the PKGBUILD they can install as-is, or modify parameters to suit themselves (for example changing the locations of files, enabling or disabling certain options).

Diapente avatar Nov 08 '16 18:11 Diapente

@Diapente yes please, Python 2 is still extensively used

I added install notes to this new wiki page: if there is anything wrong with it, please notify me! https://github.com/csparpa/pyowm/wiki/Install

csparpa avatar Nov 08 '16 20:11 csparpa

Done - python2-owm is now available from the AUR.

Diapente avatar Nov 08 '16 23:11 Diapente

Thanks @Diapente !

csparpa avatar Nov 09 '16 07:11 csparpa

This is a good idea, as both pyowm and OWM are awesome! Since Wunderground.com is shutting down all of its API access keys (except those of PWS owners) completely starting next month (i.e. after December 31, 2018), many folks will look for alternative web API solutions. Re .deb, going Debian (rather than Ubuntu) route first is probably the best way to handle it. It ensures that your package will be automatically synced from Debian into Ubuntu, and will be available not only in Ubuntu/Debian, but in all Debian-based derivatives out there as well. Also, it avoids duplication of efforts and conflicting packages across multiple .deb repositories. Here is a nice overview (albeit old) that i stumbled upon: https://askubuntu.com/questions/16446/how-to-get-my-software-into-ubuntu Essentially, it comes down to: http://packaging.ubuntu.com/html/packaging-new-software.html https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages https://www.debian.org/doc/manuals/developers-reference/ch05.html#newpackage https://wiki.debian.org/Teams/PythonAppsPackagingTeam https://salsa.debian.org/python-team/tools/python-apps/blob/master/policy.rst https://salsa.debian.org/python-team/applications https://tracker.debian.org/teams/python-apps/ As there are thousands Python packages in Ubuntu and Debian repos (prefixed with python- for Python 2 and python3- for Python 3) that have been accepted by Debian/Ubuntu teams, sure they know that open weather data accessibility/transparency/awareness becomes particularly important in the era of global warming/climate change, so my guess is they could facilitate Pyowm's expedited inclusion! Thanks

axodd avatar Dec 05 '18 12:12 axodd

@axodd thanks a lot for your effort and reseach!

csparpa avatar Dec 05 '18 12:12 csparpa

BTW pyowm is available for current (and next) openSUSE release. The packaging is done here https://build.opensuse.org/package/show/devel:languages:python/python-pyowm Version python2 and python3 are managed. It's being updated each time we found a new version on pypi

tigerfoot avatar Dec 26 '18 17:12 tigerfoot

Thanks for notifying @tigerfoot !

csparpa avatar Jan 03 '19 08:01 csparpa

https://github.com/csparpa/pyowm/issues/385#issue-1038968879 help me pls with code

ratdriftbot avatar Oct 28 '21 21:10 ratdriftbot