Re: [pygame] Looking for example game to package on Flathub

2018-07-14 Thread Thomas Kluyver
The game was accepted in Flathub, so you can now see it on the site here:
https://flathub.org/apps/details/com.inventwithpython.flippy

And the packaging information from the PR is now in its own repository:
https://github.com/flathub/com.inventwithpython.flippy

On 14 July 2018 at 08:41, René Dudfield  wrote:

> Cheers. I was reading through the PR change log thinking it would be quite
> easy to copy/paste :)
>
> Then I came across  in the appdata.xml, and wondered what to
> put there.
>
> Indeed, lots of reading! Seems much easier to copy/paste little examples.
>
>
>
>
> On Thu, Jul 12, 2018 at 1:20 PM, Thomas Kluyver  wrote:
>
>> Thanks René,
>>
>> There are docs on how to package applications with Flatpak:
>> http://docs.flatpak.org/en/latest/index.html
>>
>> And a wiki which describes the specific recommendations for distributing
>> applications on Flathub:
>> https://github.com/flathub/flathub/wiki/App-Submission
>>
>> However, the desktop file and appdata.xml are separate standards which
>> have their own documentation:
>> https://specifications.freedesktop.org/desktop-entry-spec/
>> desktop-entry-spec-latest.html
>> https://www.freedesktop.org/software/appstream/docs/index.html
>>
>> Needless to say, that's quite a bit of reading! This is a big part of why
>> I'm preparing this simple example. I hope people will use it as a template:
>> copy and paste the packaging info and modify it to fit their own games.
>>
>> I'm also working on an overview guide to the technologies you need for
>> desktop Linux applications, which should refer to a lot of these
>> technologies without going into the same detail as the specifications. And
>> I have some ideas about tooling to generate a flatpak manifest from pip
>> packages.
>>
>> Thomas
>>
>
>


Re: [pygame] Looking for example game to package on Flathub

2018-07-14 Thread René Dudfield
Cheers. I was reading through the PR change log thinking it would be quite
easy to copy/paste :)

Then I came across  in the appdata.xml, and wondered what to
put there.

Indeed, lots of reading! Seems much easier to copy/paste little examples.




On Thu, Jul 12, 2018 at 1:20 PM, Thomas Kluyver  wrote:

> Thanks René,
>
> There are docs on how to package applications with Flatpak:
> http://docs.flatpak.org/en/latest/index.html
>
> And a wiki which describes the specific recommendations for distributing
> applications on Flathub:
> https://github.com/flathub/flathub/wiki/App-Submission
>
> However, the desktop file and appdata.xml are separate standards which
> have their own documentation:
> https://specifications.freedesktop.org/desktop-entry-
> spec/desktop-entry-spec-latest.html
> https://www.freedesktop.org/software/appstream/docs/index.html
>
> Needless to say, that's quite a bit of reading! This is a big part of why
> I'm preparing this simple example. I hope people will use it as a template:
> copy and paste the packaging info and modify it to fit their own games.
>
> I'm also working on an overview guide to the technologies you need for
> desktop Linux applications, which should refer to a lot of these
> technologies without going into the same detail as the specifications. And
> I have some ideas about tooling to generate a flatpak manifest from pip
> packages.
>
> Thomas
>


Re: [pygame] Looking for example game to package on Flathub

2018-07-12 Thread Thomas Kluyver
Thanks René,

There are docs on how to package applications with Flatpak:
http://docs.flatpak.org/en/latest/index.html

And a wiki which describes the specific recommendations for distributing
applications on Flathub:
https://github.com/flathub/flathub/wiki/App-Submission

However, the desktop file and appdata.xml are separate standards which have
their own documentation:
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
https://www.freedesktop.org/software/appstream/docs/index.html

Needless to say, that's quite a bit of reading! This is a big part of why
I'm preparing this simple example. I hope people will use it as a template:
copy and paste the packaging info and modify it to fit their own games.

I'm also working on an overview guide to the technologies you need for
desktop Linux applications, which should refer to a lot of these
technologies without going into the same detail as the specifications. And
I have some ideas about tooling to generate a flatpak manifest from pip
packages.

Thomas


Re: [pygame] Looking for example game to package on Flathub

2018-07-12 Thread René Dudfield
Nice one Thomas!

Doesn't look too hard :)  Is there a URL/guide somewhere for how to fill
out those xml/desktop/json files?
For new releases, it seems as simple as updating the files in a new pull
request.


cheerio,


Re: [pygame] Looking for example game to package on Flathub

2018-07-08 Thread Thomas Kluyver
Thanks Luke & Al,

I forgot to mention that I've prepared pygame at present for Python 3; it
wouldn't be hard to adapt that for Python 2, but I focused on Al's
collection of games, which already work with Python 3. I prepared a package
of 'Flippy', Al's clone of the classic board game Reversi. Here's the pull
request:

https://github.com/flathub/flathub/pull/478

You can see a few files involved:

- launch.py : Wrapper to launch the game
- com.inventwithpython.flippy.desktop : information for desktop
menus/launchers
- Icons in three different sizes
- com.inventwithpython.flippy.appdata.xml : information for software
catalogues
- com.inventwithpython.flippy.json : tells Flatpak how to assemble the
other files into an installable package

Best wishes,
Thomas


On 4 July 2018 at 21:51, Al Sweigart  wrote:

> I'll offer all the programs in the book Making Games with Python & Pygame:
> http://inventwithpython.com/pygame/
>
> The files can be downloaded from http://inventwithpython.
> com/makinggames.zip Email me if you have any questions.
>
> On Wed, Jul 4, 2018 at 11:37 AM, Luke Paireepinart  > wrote:
>
>> You're more than welcome to package up our game, solarflair, which was
>> part of pyweek 23, I believe. It's just python and pygame. I can take over
>> maintenance of the package as well, long term.
>>
>> On Wed, Jul 4, 2018, 12:16 PM Thomas Kluyver  wrote:
>>
>>> Hi all,
>>>
>>> My sporadic work on Flatpak packaging has taken another step forwards:
>>> namely, pygame 1.9.3 is now available as a 'shared module' for packagers to
>>> use on Flathub:
>>>
>>> https://github.com/flathub/shared-modules/
>>>
>>> I'd now like to try using this to package a real game, rather than the
>>> Aliens demo I usually test with. If you're interested, I'm offering to do
>>> (most of) the work to add your game to Flathub, making it a one-click
>>> install for users on the latest versions of Fedora/Ubuntu.
>>>
>>> https://flathub.org/apps/category/Game
>>>
>>> Specifically, I'm looking for a game that:
>>>
>>> - Runs on Linux
>>> - Is open source
>>> - Is a real, playable game, not a tech demo. It doesn't have to be long
>>> or professional, but you should be able to have fun playing it, even if
>>> only for 10 minutes.
>>> - Uses pygame [1]
>>> - Any other dependencies are pure Python and easy to install
>>> - You, the author, are interested in the process, and willing to take
>>> over the (probably minimal) maintenance once it's packaged.
>>>
>>> Some of the pyweek entries I've seen would be a good fit for this, for
>>> instance.
>>>
>>> If you're interested, please get in touch! :-)
>>>
>>> Thanks,
>>> Thomas
>>>
>>> [1] I'm happy to give pointers on packaging things that don't use
>>> pygame, but as I've spent time figuring out how to use pygame with Flatpak,
>>> I want to focus on an example that does.
>>>
>>
>


Re: [pygame] Looking for example game to package on Flathub

2018-07-04 Thread Al Sweigart
I'll offer all the programs in the book Making Games with Python & Pygame:
http://inventwithpython.com/pygame/

The files can be downloaded from http://inventwithpython.com/makinggames.zip
Email me if you have any questions.

On Wed, Jul 4, 2018 at 11:37 AM, Luke Paireepinart 
wrote:

> You're more than welcome to package up our game, solarflair, which was
> part of pyweek 23, I believe. It's just python and pygame. I can take over
> maintenance of the package as well, long term.
>
> On Wed, Jul 4, 2018, 12:16 PM Thomas Kluyver  wrote:
>
>> Hi all,
>>
>> My sporadic work on Flatpak packaging has taken another step forwards:
>> namely, pygame 1.9.3 is now available as a 'shared module' for packagers to
>> use on Flathub:
>>
>> https://github.com/flathub/shared-modules/
>>
>> I'd now like to try using this to package a real game, rather than the
>> Aliens demo I usually test with. If you're interested, I'm offering to do
>> (most of) the work to add your game to Flathub, making it a one-click
>> install for users on the latest versions of Fedora/Ubuntu.
>>
>> https://flathub.org/apps/category/Game
>>
>> Specifically, I'm looking for a game that:
>>
>> - Runs on Linux
>> - Is open source
>> - Is a real, playable game, not a tech demo. It doesn't have to be long
>> or professional, but you should be able to have fun playing it, even if
>> only for 10 minutes.
>> - Uses pygame [1]
>> - Any other dependencies are pure Python and easy to install
>> - You, the author, are interested in the process, and willing to take
>> over the (probably minimal) maintenance once it's packaged.
>>
>> Some of the pyweek entries I've seen would be a good fit for this, for
>> instance.
>>
>> If you're interested, please get in touch! :-)
>>
>> Thanks,
>> Thomas
>>
>> [1] I'm happy to give pointers on packaging things that don't use pygame,
>> but as I've spent time figuring out how to use pygame with Flatpak, I want
>> to focus on an example that does.
>>
>


Re: [pygame] Looking for example game to package on Flathub

2018-07-04 Thread Luke Paireepinart
You're more than welcome to package up our game, solarflair, which was part
of pyweek 23, I believe. It's just python and pygame. I can take over
maintenance of the package as well, long term.

On Wed, Jul 4, 2018, 12:16 PM Thomas Kluyver  wrote:

> Hi all,
>
> My sporadic work on Flatpak packaging has taken another step forwards:
> namely, pygame 1.9.3 is now available as a 'shared module' for packagers to
> use on Flathub:
>
> https://github.com/flathub/shared-modules/
>
> I'd now like to try using this to package a real game, rather than the
> Aliens demo I usually test with. If you're interested, I'm offering to do
> (most of) the work to add your game to Flathub, making it a one-click
> install for users on the latest versions of Fedora/Ubuntu.
>
> https://flathub.org/apps/category/Game
>
> Specifically, I'm looking for a game that:
>
> - Runs on Linux
> - Is open source
> - Is a real, playable game, not a tech demo. It doesn't have to be long or
> professional, but you should be able to have fun playing it, even if only
> for 10 minutes.
> - Uses pygame [1]
> - Any other dependencies are pure Python and easy to install
> - You, the author, are interested in the process, and willing to take over
> the (probably minimal) maintenance once it's packaged.
>
> Some of the pyweek entries I've seen would be a good fit for this, for
> instance.
>
> If you're interested, please get in touch! :-)
>
> Thanks,
> Thomas
>
> [1] I'm happy to give pointers on packaging things that don't use pygame,
> but as I've spent time figuring out how to use pygame with Flatpak, I want
> to focus on an example that does.
>