The requirements checklist
This page is for developers who prepare a site package for publishing and for reviewers who check one. It lists every requirement in one place. Enforced means the code refuses, skips or stops without it; Convention means the 16 packages in the 7x source repositories all do it and the tools that show a package rely on it. The other pages of this part explain each item in detail.
Contents
- The archive
- The package definition
- A site package in the setup wizard
- The index entry
- Documents and descriptions
- Before publishing
- The source repository
- Related pages
The archive
| Requirement | Label | Checked in | |
|---|---|---|---|
| [ ] | A gzip compressed tar archive | Enforced | eZPackageUploadInspector::inspect() (gzip signature); every import opens it as compress.zlib:// |
| [ ] | File name ends in .ezpkg, .tar.gz or .tgz ([UploadSettings] AllowedSuffixes[]) | Enforced on package/upload | eZPackageUploadInspector::hasAllowedSuffix() |
| [ ] | File name is <name>.ezpkg, the name of <name> | Convention | Every url of the 6.0.15 index.xml ends in <name>.ezpkg |
| [ ] | package.xml (or package.json) is a plain file at the top, not in a folder | Enforced | eZPackage::importUnaudited() |
| [ ] | Every entry is a plain file or directory: a link to a file of the package is imported as a copy, other links, devices and fifos are passed over with a notice | Convention: the package still imports | expPackageArchive::index() (link_outside, link_directory, link_missing, special_file) |
| [ ] | No entry path with .., a leading /, a drive letter, a back slash or a control character | Enforced | eZPackageUploadInspector::safeEntryPath() (unsafe_path) |
| [ ] | At most 256 MiB packed, 2 GiB unpacked, 50000 entries (defaults of [UploadSettings]) | Enforced (size packed: package/upload only) | eZPackageUploadInspector::limits() |
| [ ] | No .git, editor backups or node_modules | Convention | The EXCLUDES list of packages/build.sh |
The package definition
| Requirement | Label | Checked in | |
|---|---|---|---|
| [ ] | Well formed XML, root element <package>, no DOCTYPE | Enforced on package/upload | eZPackageUploadInspector::definition() |
| [ ] | A non-empty <name> | Enforced | eZPackage::parseDOMTree() |
| [ ] | <name> only a-z, A-Z, 0-9, _ and -, not starting with - (lower case is the convention) | Enforced (STATUS_INVALID_NAME) | eZPackage::isValidName() |
| [ ] | No package of the same name already imported | Enforced (STATUS_ALREADY_EXISTS) | eZPackage::importUnaudited() |
| [ ] | <ezpublish> and <packaging> elements present | Enforced on package/upload (definition_incomplete) | eZPackageUploadInspector::definition() |
| [ ] | <version><number>, <version><release> and <type value> are empty or up to 64 of 0-9 A-Z a-z . _ + - | Enforced (the definition is not read) | eZPackage::isValidDefinitionToken() |
| [ ] | <vendor> gives a usable directory name (7x for the shipped packages) | Enforced (invalid_vendor) | eZPackageRequestGuard::isSafeName() |
| [ ] | <summary>, <description>, <state> present | Convention | Shown by the package page and the setup wizard |
| [ ] | <maintainers> with a role from [MaintainerSettings] RoleList[] | Convention | 15 of the 16 shipped packages name a lead (sevenx_extension has no <maintainers>) |
Details: Required package.xml fields, Version numbers.
A site package in the setup wizard
| Requirement | Label | Checked in | |
|---|---|---|---|
| [ ] | <type value="site" /> | Enforced (otherwise not listed) | eZStepSiteTypes::fetchAvailableSitePackages() filters on type site |
| [ ] | install_type="import" on <package> | Convention | All 5 shipped site packages; a site package is imported, not installed |
| [ ] | Every required package is in the same index.xml with a url | Enforced ("the URL is unknown") | eZStepSiteTypes::downloadDependantPackages() |
| [ ] | Every required package can be fetched and installed | Enforced (EZSW-050, EZSW-051) | eZStepCreateSites |
| [ ] | Each <require> has type="ezpackage", name and min-version | Enforced: the create sites step installs only type="ezpackage" requirements; the kickstart path reads min-version without a fallback | ezstep_create_sites.php, ezstep_site_types.php |
| [ ] | Every file named by <settings-file filename> exists in settings/ | Convention (a missing one is skipped silently) | ezstep_create_sites.php (file_exists() before include_once) |
Details: Declaring dependencies.
The index entry
| Requirement | Label | |
|---|---|---|
| [ ] | name, type and url attributes on the <package> element of index.xml | Enforced: name is the key, type="site" lists it, url is downloaded |
| [ ] | summary, description, version attributes | Convention: shown on the site type step as "summary (ver. version)" |
| [ ] | thumbnail_url pointing at thumbnails/<name>.png | Convention: shown before the package is imported |
Details: The index.xml format, Thumbnails and screenshots.
Documents and descriptions
| Requirement | Label | |
|---|---|---|
| [ ] | <licence> with a license identifier | Convention (only the creation wizards insist on it) |
| [ ] | documents/LICENCE, named in <documents> | Convention: all 16 shipped packages |
| [ ] | One <changelog><entry> per release, with timestamp, person, release and one <change> per change | Convention |
| [ ] | A thumbnail in the file collection default | Convention: shown by the wizard and the package page |
Details: License and documents, Changelog entries.
Before publishing
- To do:
xmllint --noout package.xmlprints nothing. - To do:
php ezpm.php validate <archive>ends inPASS. - To do: The archive uploads on
package/uploadof a test installation. - To do: A fresh install with the package succeeds in a sandbox.
Details: Validating a package before publishing, Testing in a sandbox.
The source repository
- To do: A README that says what the package installs and how to build it (Convention).
- To do: A LICENSE file at the root (Convention).
- To do: Commit subjects with
Added:,Updated:,Removed:,Renamed:prefixes (Convention).
Details: README and repository docs.
Related pages
- Documentation requirements for site packages
- Site packages: start here
- Contribute your site package
- The ezpkg file
- Packages guide
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.