Difference between revisions of "Platform Team/Package Management System"
Line 48: | Line 48: | ||
This proposal assumes that the core of Sugar development (in common sense) is a wide variety of developers, not just those developers who are taking part in Sugar core (glucose) development. It is all about seeing Sugar activity development from an activity/3rd-party developer's point of view. | This proposal assumes that the core of Sugar development (in common sense) is a wide variety of developers, not just those developers who are taking part in Sugar core (glucose) development. It is all about seeing Sugar activity development from an activity/3rd-party developer's point of view. | ||
− | From such new core POV, sugar development process will look like: <!-- not sure what you are trying to say here --Walter --> | + | From such new core POV, sugar development process will look like: |
+ | <!-- not sure what you are trying to say here --Walter --> | ||
+ | <!-- * see followed "So, .." ~~~~ --> | ||
* variety of Sugar activities | * variety of Sugar activities | ||
− | * that use Sugar Services | + | * that use variety of Sugar Services |
+ | So, developers use a set of services that have their own API changes based schedules. Glucose could be [[Documentation Team/Services/Native packages usage|wrapped]] to regular service(s) with proper API changes based major versions e.g. if sucrose's activity API wasn't changed since 0.82(sucrose-0.x service) all activities that requires ''sucrose 0'' will be launched but instead of launching activities with requirements ''sucrose 1'', user will be warned about outdated sugar environment. | ||
− | + | The corner stone of Sugar Services proposal is [[Activity_Team/Services/Saccharin|Saccharin]] library. This library provides installing/upgrading (via 0install) mechanism for services. The rest of services is just variety of libraries/applications/native-packages. Saccharin could be a part of glucose (some of its releases) or bundled to .xo otherwise. | |
− | |||
− | The corner stone of Sugar Services proposal is [[Activity_Team/Services/Saccharin|Saccharin]] | ||
− | |||
− | |||
== FAQ == | == FAQ == |
Revision as of 02:28, 26 December 2009
Zero Sugar Distribution
Sugar Services provides transparency for users and convenience for activity developers across varying platforms (and their varying dependencies) as well as across Sugar releases. Sugar Services is a method to support this variety of activity dependencies and variety of dependency versions. In other words, Services is a common deployment system for activity dependencies; it is lightweight like sugargame and like Qt.
The major difference from existed sugar deployment techniques is that Sugar Services has a point of view of the activity developer. It doesn't exclude (because it reuses them) Sucrose releases or GNU/Linux distribution initiatives, but it does give activity developers an additional (optional) instrument.
Workflows
Sugar Services looks different depending upon your point of view:
Users
In the case of a poor Internet connection (and implemented Zero Install integration feature), users can switch to offline mode and won't encounter any changes in their regular workflow. Switching to online mode brings additional progress bar to the launch dialog for activities that have pending/not-yet-downloaded/out-dated activity dependencies.
Activity developers
Sugar Services makes sense for activities that have non-Sugar Platform dependencies or support more then one Sucrose release cycle.
For such activities, development focus is shifted from Sucrose to an API of services they are using. More over, an activity could be assigned to particular service API version (provided that service developers still support this branch); Sugar Services will support several branches for the same service simultaneously.
To utilize the benefits of Services, activity developer need only to mention all services (or pure 0install feeds) that their activity is using. Services infrastructure will provide specified services (and specified versions) for the activity and will export environment variables, e.g., LD_LIBRARY_PATH or PYTHONPATH, to activity session. Activity developer need not to adapt their code to Services.
Use of non-Sugar Platform dependencies in activities
The Sugar Platform cannot grow endlessly and components like Qt or OO4Kids are (at least at present) out of Sugar Platform list. But activities can still use such dependencies by installing them from native packaging systems without bundling binaries. See Native packages usage to know how to utilize native packages in your activity or service.
Service developers
Services could be:
- libraries or applications that are not intended to be included to Sucrose
- could be used by few activities
- have shorter or longer release/support schedules
- just a useful way to share your library w/o bundling binary blobs
- dependencies that are specific to particular activity e.g. some python activities have C libraries, using Services, activity developer should not bundle all binaries that sugar supports but provide links to binaries that he managed to build and let Services build C libraries from sources on user side in the rest of cases
To create new service, developer needs to create and share proper feed which could be used by activity developers.
Geeks
The entirety of the Sugar Services feature is nothing but a Sugarized UI built around 0install; i.e., feed files that are being used in activity bundles are just regular 0install local feeds. Services could be used to install/upgrade any software (including sugar core components).
Detailed description
This proposal assumes that the core of Sugar development (in common sense) is a wide variety of developers, not just those developers who are taking part in Sugar core (glucose) development. It is all about seeing Sugar activity development from an activity/3rd-party developer's point of view.
From such new core POV, sugar development process will look like:
- variety of Sugar activities
- that use variety of Sugar Services
So, developers use a set of services that have their own API changes based schedules. Glucose could be wrapped to regular service(s) with proper API changes based major versions e.g. if sucrose's activity API wasn't changed since 0.82(sucrose-0.x service) all activities that requires sucrose 0 will be launched but instead of launching activities with requirements sucrose 1, user will be warned about outdated sugar environment.
The corner stone of Sugar Services proposal is Saccharin library. This library provides installing/upgrading (via 0install) mechanism for services. The rest of services is just variety of libraries/applications/native-packages. Saccharin could be a part of glucose (some of its releases) or bundled to .xo otherwise.
FAQ
A short list of questions that describe Sugar Services' purposes.
What is Sugar Services not?
- It is not intended to cure all ills.
- It is not "must have" for activity developers; use it only if you really need it.
- Is is not a replacement for GNU/Linux distributions Sugar packaging efforts; Sugar Services places no need for special treatment regarding dependencies as part of the Sugar Platform.
- It is not intended to be used to support large packages (such as Qt or Firefox) in parallel with distributions. Sugar Services should not be used to avert scenarios such as "It is too bad that you don't have Firefox-3.5 in your three-year-old distribution and cannot run last Browse activity." In such cases, we should require that users update their distribution and Sugar Platform to more recent versions.
How is Sugar Services different?
- From the point of view of 0install: Sugar Services is just a method to create 0install infrastructure; think about "apt" vs. "dpkg" or "yum" vs. "rpm". In other words, Sugar Services are an analog of 0release command localized to Sugar needs.
- From the point of view of PackageKit: PackageKit provides a distribution-agnostic method to install already packaged software. Via 0install, Sugar Services let users install unpackaged software as well. More over, 0install will use PackageKit to install missed dependencies if they present in user's distribution.
- From the point of view of GNU/Linux distributions: see the 0install original goals.
List of services
- Platform Team/Package Management System/1.0
- Platform Team/Package Management System/1.0/Notes
- Platform Team/Package Management System/1.0/Roadmap
- Platform Team/Package Management System/1.1
- Platform Team/Package Management System/1.1/Todo
- Platform Team/Package Management System/Architecture
- Platform Team/Package Management System/Getting started
To see entirely list of services, go to http://download.sugarlabs.org/services/.
Documentation
TODO
- Bugs service
- install PackageKit from saccharin
- Statistics service