My skeleton code I use on almost all of my Maemo Python projects
Python Rust Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
src
support
tests
www
.gitignore
LICENSE
Makefile
README.markdown
REPLACEME
setup.py

README.markdown

This is a skeleton for building packages for Maemo 4.1, Maemo 5, Meego-1.2-Harmattan, and eventually MeeGo.

For some background:

The main git home for src/utils is: https://github.com/epage/PythonUtils

Depends on (I just copy it into my project):

Setting up a project

grep for REPLACEME which is scattered throughout the files.

grep --color -Irn "REPLACEME" .

To find files that need renaming

find . -iname "*REPLACEME*"

Create your appropriately named python package (and ln src to it for easy diffing)

mv src REPLACEME
ln -s REPLACEME src

Update support/obs_upload.sh with your OBS project path

Examples Packages:

Building a package

Run

make package
make upload

Build Process

The makefile generate the following

  • setup.PLATFORM.py
  • data/PLATFORM/PROJECT.desktop
  • data/icons/ICON_SIZES/PROJECT.png

setup.PLATFORM.py then creates a source package

For Ubuntu, the Makefile then creates a binary package

Uploading process

dput is used for uploading Diablo and Fremantle packages

OSC is used for uploading Harmattan packages

Maemo Garage's git integration is used for distribution the Ubuntu binary package