csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
791 stars 174 forks source link

Distribute PyOWM via package managers to the most used Linux distributions #98

Open csparpa opened 8 years ago

csparpa commented 8 years ago

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:

Good tools could be:

Diapente commented 7 years ago

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

csparpa commented 7 years ago

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

Diapente commented 7 years ago

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 notifications@github.com 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 .

csparpa commented 7 years ago

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

csparpa commented 7 years ago

@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!

Diapente commented 7 years ago

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).

csparpa commented 7 years ago

@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

Diapente commented 7 years ago

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

csparpa commented 7 years ago

Thanks @Diapente !

axodd commented 5 years ago

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

csparpa commented 5 years ago

@axodd thanks a lot for your effort and reseach!

tigerfoot commented 5 years ago

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

csparpa commented 5 years ago

Thanks for notifying @tigerfoot !

ratdriftbot commented 3 years ago

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