mini_buildd.models.distribution module¶
- class mini_buildd.models.distribution.Suite(id, extra_options, pickled_data, name)¶
Bases:
mini_buildd.models.base.Model
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class Admin(model, admin_site)¶
Bases:
mini_buildd.models.base.Model.Admin
- exclude = ('extra_options',)¶
- mbd_model¶
- property media¶
- clean(*args, **kwargs)¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- exception DoesNotExist¶
Bases:
django.core.exceptions.ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
django.core.exceptions.MultipleObjectsReturned
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- layout_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>¶
- suiteoption_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class mini_buildd.models.distribution.SuiteOption(id, extra_options, pickled_data, layout, suite, uploadable, experimental, migrates_to, build_keyring_package, auto_migrate_after, not_automatic, but_automatic_upgrades)¶
Bases:
mini_buildd.models.base.Model
- layout¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- suite¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- uploadable¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- experimental¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- migrates_to¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- build_keyring_package¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- auto_migrate_after¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- not_automatic¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- but_automatic_upgrades¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- clean(*args, **kwargs)¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- property rollback¶
Rollback field temporarily implemented as extra_option.
- mbd_get_sort_no()¶
Compute number that may be used to sort suites from ‘stable’ (0) towards ‘experimental’.
- exception DoesNotExist¶
Bases:
django.core.exceptions.ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
django.core.exceptions.MultipleObjectsReturned
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- layout_id¶
- migrates_to_id¶
- objects = <django.db.models.manager.Manager object>¶
- suite_id¶
- suiteoption_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class mini_buildd.models.distribution.SuiteOptionInline(parent_model, admin_site)¶
Bases:
django.contrib.admin.options.TabularInline
- model¶
- extra = 1¶
- property media¶
- class mini_buildd.models.distribution.Layout(extra_options, pickled_data, name, default_version, mandatory_version_regex, experimental_default_version, experimental_mandatory_version_regex)¶
Bases:
mini_buildd.models.base.Model
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- suites¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- default_version¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- mandatory_version_regex¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- experimental_default_version¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- experimental_mandatory_version_regex¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class Admin(model, admin_site)¶
Bases:
mini_buildd.models.base.Model.Admin
- fieldsets = (('Basics', {'fields': ('name',)}), ('Version Options', {'classes': ('collapse',), 'fields': ('default_version', 'mandatory_version_regex', 'experimental_default_version', 'experimental_mandatory_version_regex')}), ('Extra Options', {'classes': ('collapse',), 'description': "<b>Supported extra options</b><p><em>Meta-Distributions: META=CODENAME-SUITE[ META=CODENAME-SUITE[...</em>: Support METAs alone as distribution identifier.</p><p>Meta distribution identifiers should be unique across allrepositories; usually, a layout with meta distributions shouldonly be used by at most one repository.</p><p><em>Example</em>:<kbd>Meta-Distributions: unstable=sid-unstable experimental=sid-experimental</kbd>(see standard layout 'Debian Developer'), to allow upload/testing ofpackages (to unstable,experimental,..) aimed for Debian.</p>", 'fields': ('extra_options',)}))¶
- inlines = (<class 'mini_buildd.models.distribution.SuiteOptionInline'>,)¶
- mbd_model¶
- property media¶
- mbd_get_reverse_dependencies()¶
When the layout changes, all repos that use that layout also change.
- exception DoesNotExist¶
Bases:
django.core.exceptions.ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
django.core.exceptions.MultipleObjectsReturned
- objects = <django.db.models.manager.Manager object>¶
- repository_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- suiteoption_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class mini_buildd.models.distribution.ArchitectureOption(id, extra_options, pickled_data, architecture, distribution, optional, build_architecture_all)¶
Bases:
mini_buildd.models.base.Model
- architecture¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- distribution¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- optional¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- build_architecture_all¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- clean(*args, **kwargs)¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- exception DoesNotExist¶
Bases:
django.core.exceptions.ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
django.core.exceptions.MultipleObjectsReturned
- architecture_id¶
- distribution_id¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- class mini_buildd.models.distribution.ArchitectureOptionInline(parent_model, admin_site)¶
Bases:
django.contrib.admin.options.TabularInline
- model¶
- exclude = ('pickled_data', 'extra_options')¶
- extra = 1¶
- property media¶
- class mini_buildd.models.distribution.Distribution(id, extra_options, pickled_data, base_source, build_dep_resolver, apt_allow_unauthenticated, lintian_mode, lintian_extra_options, piuparts_mode, piuparts_extra_options, piuparts_root_arg, chroot_setup_script, sbuildrc_snippet)¶
Bases:
mini_buildd.models.base.Model
- base_source¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- extra_sources¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- components¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- architectures¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- RESOLVER_APT = 0¶
- RESOLVER_APTITUDE = 1¶
- RESOLVER_INTERNAL = 2¶
- RESOLVER_CHOICES = ((0, 'apt'), (1, 'aptitude'), (2, 'internal'))¶
- build_dep_resolver¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- apt_allow_unauthenticated¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- lintian_mode¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- lintian_extra_options¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- piuparts_mode¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- piuparts_extra_options¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- piuparts_root_arg¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- chroot_setup_script¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- sbuildrc_snippet¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class Admin(model, admin_site)¶
Bases:
mini_buildd.models.base.Model.Admin
- fieldsets = (('Basics', {'fields': ('base_source', 'extra_sources', 'components')}), ('Build options', {'fields': ('build_dep_resolver', 'apt_allow_unauthenticated', 'lintian_mode', 'lintian_extra_options', 'piuparts_mode')}), ('Chroot setup options', {'classes': ('collapse',), 'fields': ('chroot_setup_script', 'sbuildrc_snippet')}), ('Extra Options', {'classes': ('collapse',), 'description': "<b>Sbuild-Config-Blocks[-Top]: <BLOCK> ...</b>: Use predefined sbuild config blocks (space-separated).<pre>Sbuild-Config-Blocks-Top: Blocks before the automated config.\nSbuild-Config-Blocks : Blocks after the automated config.\n\nAvailable blocks:\n\nccache: Enable ccache</pre><b>Sbuild-Setup-Blocks[-Top]: <BLOCK> ...</b>: Use predefined sbuild setup blocks (space-separated).<pre>Sbuild-Setup-Blocks-Top: Blocks before the automated setup.\nSbuild-Setup-Blocks : Blocks after the automated setup.\n\nAvailable blocks:\n\nccache : Have 'ccache' ready in builds\neatmydata : Install 'eatmydata' when available\ndisable-check-valid-until : Disable APT's 'Check-Valid-Until' in old releases that really need it\naccept-sun-java6-license : Accept sun-java6 licence (debconf) so we can build-depend on it\nbash-building-debbug327477 : Fixup /dev/fd|stdin|stdout|stderr (workaround for Debian Bug #327477 (bash building))\nexperimental-squeeze-apt-fix : Try some hard configs for very urold releases to make APT work\nobsolete-debbug728096-schroot-shm-fix: Fix /dev/shm mount (workaround for Debian Bug #728096)</pre><b>Autopkgtest-Mode: <MODE></b>: Mode to control if a check should prevent package installation (for non-experimental suites).<p>'DISABLED' (Don't run check), 'IGNORE' (Run check but ignore results), 'ERRFAIL' (Run check and fail on errors), 'WARNFAIL' (Run check and fail on warnings)</p><b>Internal-APT-Priority: <PRIORITY></b>: Set APT priority for internal apt sources in builds.<p>The default is 1, which means you will only build against newer packages in our own repositories in case it's really needed by the package's build dependencies. This is the recommended behaviour, producing sparse dependencies.</p><p>However, some packages with incorrect build dependencies might break anyway, while they would work fine when just build against the newest version available. </p><p>You may still solve this on a per-package basis, using the resp. upload option via changelog. However, in case you don't care about sparse dependencies in this distribution in general, you can pimp the internal priority up here.</p><p><em>Example</em>: Always build against newer internal packages:<pre>Internal-APT-Priority: 500</pre></p><b>Deb-Build-Options: ...</b>: Set extra build options.<p>Values to add to environment variable <code>DEB_BUILD_OPTIONS</code> used when building packages. See <a href='https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options'>Debian policy</a> and <a href='https://lists.debian.org/debian-devel/2015/12/msg00262.html'>Debian dbgsym announcement</a> for valid options.Value may be overridden by the resp. user upload option.\n</p><p>Option <code>noddebs</code> is useful for Ubuntu distributions that for some reason create their automated debug packages with file appendix 'ddeb', as <a href='https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730572'>reprepo fails on them</a>.</p><p><em>Example</em>: Never build automatic debug packages (Ubuntu bionic, cosmic):<pre>Deb-Build-Options: noddebs</pre></p><b>Deb-Build-Profiles: ...</b>: Set extra build profiles.<p>Contents of DEB_BUILD_PROFILES environment for building (see https://wiki.debian.org/BuildProfileSpec).\nValue may be overridden by the resp. user upload option.\n</p>", 'fields': ('extra_options',)}))¶
- inlines = (<class 'mini_buildd.models.distribution.ArchitectureOptionInline'>,)¶
- filter_horizontal = ('extra_sources', 'components')¶
- mbd_model¶
- property media¶
- mbd_is_active()¶
- mbd_get_components()¶
- mbd_get_archall_architectures()¶
- mbd_get_mandatory_architectures()¶
- mbd_get_reverse_dependencies()¶
When the distribution changes, all repos that use that distribution also change.
- clean(*args, **kwargs)¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- exception DoesNotExist¶
Bases:
django.core.exceptions.ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
django.core.exceptions.MultipleObjectsReturned
- architectureoption_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- base_source_id¶
- get_build_dep_resolver_display(*, field=<django.db.models.fields.IntegerField: build_dep_resolver>)¶
- get_lintian_mode_display(*, field=<django.db.models.fields.IntegerField: lintian_mode>)¶
- get_piuparts_mode_display(*, field=<django.db.models.fields.IntegerField: piuparts_mode>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- repository_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.