Utility for managing mar files
Перейти к файлу
Julien Cristau 7ca4b7fe87
Merge pull request #65 from jcristau/bcj-x86
Don't use x86 lzma filter unconditionally
2024-03-29 11:49:27 +01:00
docs Bump version to 3.2.0 (#61) 2022-09-01 18:19:22 +02:00
maintenance Remove python 3.6 support 2022-09-01 12:01:10 +02:00
src/mardor Don't use x86 lzma filter unconditionally 2024-03-29 11:46:12 +01:00
tests Don't use x86 lzma filter unconditionally 2024-03-29 11:46:12 +01:00
.coveragerc Fix up tests and coverage 2018-09-07 15:58:23 -04:00
.gitignore Bump version & deps 2017-08-23 11:09:44 -04:00
.pyup.yml Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
.readthedocs.yaml Add readthedocs config file 2022-09-01 12:39:48 +02:00
.taskcluster.yml Bug 1799834 - Migrate build-mar from AWS to GCP (#62) 2022-11-09 10:37:17 +01:00
AUTHORS.rst Apply new project template (#18) 2016-12-23 11:06:56 -05:00
CHANGELOG.rst Bump version to 3.2.0 (#61) 2022-09-01 18:19:22 +02:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct (#53) 2019-03-29 11:55:53 -04:00
CONTRIBUTING.rst Update tox installation doc URL 2024-03-29 10:15:44 +01:00
LICENSE Apply new project template (#18) 2016-12-23 11:06:56 -05:00
MANIFEST.in Run pip-compile in docker to update requirements files 2022-08-30 16:19:35 +02:00
README.rst Replace travis references with taskcluster 2022-09-01 12:39:48 +02:00
get_mozilla_keys.sh update SHA384_REV, update mozilla.py from SHA384_REV 2019-02-19 17:26:05 -05:00
requirements-py2.txt Update requirements files 2022-08-30 16:19:35 +02:00
requirements.in Add missing six to requirements 2022-08-30 16:19:35 +02:00
requirements.txt Update requirements files 2022-08-30 16:19:35 +02:00
setup.cfg setup: don't pass --strict to pytest 2022-09-01 11:52:37 +02:00
setup.py Bump version to 3.2.0 (#61) 2022-09-01 18:19:22 +02:00
test-requirements-py2.txt Update requirements files 2022-08-30 16:19:35 +02:00
test-requirements.in Bump dependencies 2019-02-01 15:43:45 -05:00
test-requirements.txt Update requirements files 2022-08-30 16:19:35 +02:00
tox.ini Remove python 3.6 support 2022-09-01 12:01:10 +02:00

README.rst

========
Overview
========

.. start-badges

.. list-table::
    :stub-columns: 1

    * - docs
      - |docs|
    * - tests
      - | |taskcluster|
    * - package
      - |version| |downloads| |wheel| |supported-versions| |supported-implementations|

.. |docs| image:: https://readthedocs.org/projects/mar/badge/?style=flat
    :target: https://readthedocs.org/projects/mar
    :alt: Documentation Status

.. |taskcluster| image:: https://firefox-ci-tc.services.mozilla.com/api/github/v1/repository/mozilla-releng/build-mar/master/badge.svg
    :alt: Task Status
    :target: https://firefox-ci-tc.services.mozilla.com/api/github/v1/repository/mozilla-releng/build-mar/master/latest

.. |version| image:: https://img.shields.io/pypi/v/mar.svg?style=flat
    :alt: PyPI Package latest release
    :target: https://pypi.org/project/mar/

.. |downloads| image:: https://img.shields.io/pypi/dm/mar.svg?style=flat
    :alt: PyPI Package monthly downloads
    :target: https://pypi.org/project/mar/

.. |wheel| image:: https://img.shields.io/pypi/wheel/mar.svg?style=flat
    :alt: PyPI Wheel
    :target: https://pypi.org/project/mar/

.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/mar.svg?style=flat
    :alt: Supported versions
    :target: https://pypi.org/project/mar/

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/mar.svg?style=flat
    :alt: Supported implementations
    :target: https://pypi.org/project/mar/

.. end-badges

Package for handling Mozilla Archive files. MAR file format is documented at https://wiki.mozilla.org/Software_Update:MAR

* Free software: MPL 2.0 license

Usage
=====

To list the contents of a mar::

    mar -t complete.mar

To list the contents of a mar with extra detail::

    mar -T complete.mar

To extract a mar::

    mar -x complete.mar

To extract, and uncompress a bz2 compressed mar::

    mar -j -x complete.mar

To verify a mar::

    mar -k :mozilla-nightly -v complete.mar

To create a mar, using bz2 compression::

    mar -j -c complete.mar *

To create a mar, using xz compression::

    mar -J -c complete.mar *

To create a signed mar::

    mar -J -c complete.mar -k private.key -H nightly -V 123 tests

Installation
============

::

    pip install mar

Documentation
=============

https://mar.readthedocs.io/en/latest/

Development
===========

To run the all tests run::

    tox