4 Package Metadata

▼ |  | Package Management in Racket (Beta)

1 | Package Concepts
2 | Managing Packages
3 | Developing Packages
4 | Package Metadata
5 | PLane T Compatibility
6 | FAQ
7 | Future Plans

top ← prev up next →

### 4`` Package Metadata

Package metadata, including dependencies on other packages, is reported by an "info.rkt" module within the package. This module must be implemented in the setup/infotab language.

The following fields are used by the package manager:

- version — a version string. The default version of a package is "0.0".

- deps — a list of dependencies, where each dependency is either a package source strings or a list containing a package source string and a version string.

  Each elements of the deps list determines a dependency on the package whose name is inferred from the package source (i.e., dependencies are on package names, not package sources), while the package source indicates where to get the package if needed to satisfy the dependency.

  When provided, a version string specifies a lower bound on an acceptable version of the package.

  Use the package name "racket" to specify a dependency on the version of the Racket installation.

- setup-collects — a list of path strings and/or lists of path strings, which are used as collection names to set up via raco setup after the package is installed, or 'all to indicate that all collections need to be setup. By default, only collections included in the package are set up (plus collections for global documentation indexes and links).

For example, a basic "info.rkt" file might be

> #lang setup/infotab
> (define version "1.0")
> (define deps (list package-source-string ...))

top ← prev up next →