Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
csparpa opened this issue Jan 2, 2016 · 14 comments

Comments

@csparpa
Copy link
Owner

csparpa commented Jan 2, 2016

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:

@csparpa csparpa self-assigned this Jan 2, 2016
@csparpa csparpa added this to the Release 3.0 milestone Jan 2, 2016
@Diapente
Copy link

Diapente commented Nov 8, 2016

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

@csparpa
Copy link
Owner Author

csparpa commented Nov 8, 2016

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
Copy link

Diapente commented Nov 8, 2016

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
#98 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASmnE7i0pcLmdpbyPgp1ePsL6S1RliuDks5q8LNjgaJpZM4G9k41
.

@csparpa
Copy link
Owner Author

csparpa commented Nov 8, 2016

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

@csparpa
Copy link
Owner Author

csparpa commented Nov 8, 2016

@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
Copy link

Diapente commented Nov 8, 2016

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
Copy link
Owner Author

csparpa commented Nov 8, 2016

@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
Copy link

Diapente commented Nov 8, 2016

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

@csparpa
Copy link
Owner Author

csparpa commented Nov 9, 2016

Thanks @Diapente !

@csparpa csparpa removed this from the Release 3.0.0 milestone Nov 29, 2016
@csparpa csparpa added this to the Release 3.0.0 milestone Jul 30, 2018
@csparpa csparpa removed this from the Release 3.0.0 milestone Oct 23, 2018
@csparpa csparpa added this to the Release 3.0.0 milestone Nov 13, 2018
@axodd
Copy link

axodd commented Dec 5, 2018

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
Copy link
Owner Author

csparpa commented Dec 5, 2018

@axodd thanks a lot for your effort and reseach!

@tigerfoot
Copy link

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
Copy link
Owner Author

csparpa commented Jan 3, 2019

Thanks for notifying @tigerfoot !

@csparpa csparpa changed the title Distribute PyOWM as .deb and .rpm packages Distribute PyOWM via main package managers for Linux distributions Jan 3, 2019
@csparpa csparpa changed the title Distribute PyOWM via main package managers for Linux distributions Distribute PyOWM via package managers to the most used Linux distributions Jan 3, 2019
@csparpa csparpa removed this from the Release 3.0.0 milestone Apr 26, 2020
@ratdriftbot
Copy link

#385 (comment)
help me pls with code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants