Utility for managing mar files
Перейти к файлу
Chris AtLee 607cb8cff9 handle mar files with no additional section 2018-07-23 17:07:24 -04:00
docs Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
src/mardor handle mar files with no additional section 2018-07-23 17:07:24 -04:00
tests Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
.coveragerc Test fixes (#19) 2016-12-23 12:17:53 -05: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
.travis.yml Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
AUTHORS.rst Apply new project template (#18) 2016-12-23 11:06:56 -05:00
CHANGELOG.rst Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
CONTRIBUTING.rst Apply new project template (#18) 2016-12-23 11:06:56 -05:00
LICENSE Apply new project template (#18) 2016-12-23 11:06:56 -05:00
MANIFEST.in Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
README.rst Remove appveyor badge 2018-01-18 13:26:03 -05:00
get_mozilla_keys.sh Add new SHA384 keys 2017-08-23 11:10:22 -04:00
requirements.in Reimplement XZ compression (#28) 2017-07-28 17:59:29 -04:00
requirements.txt Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
setup.cfg Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
setup.py Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
test-requirements.in Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
test-requirements.txt Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
tox.ini Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00
update-requirements.sh Bump dependencies; clean up tox and travis 2018-07-23 17:00:20 -04:00

README.rst

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

.. start-badges

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

    * - docs
      - |docs|
    * - tests
      - | |travis| |requires|
        | |coveralls| |codecov|
    * - 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

.. |travis| image:: https://travis-ci.org/mozilla/build-mar.svg?branch=master
    :alt: Travis-CI Build Status
    :target: https://travis-ci.org/mozilla/build-mar

.. |requires| image:: https://requires.io/github/mozilla/build-mar/requirements.svg?branch=master
    :alt: Requirements Status
    :target: https://requires.io/github/mozilla/build-mar/requirements/?branch=master

.. |coveralls| image:: https://coveralls.io/repos/mozilla/build-mar/badge.svg?branch=master&service=github
    :alt: Coverage Status
    :target: https://coveralls.io/r/mozilla/build-mar

.. |codecov| image:: https://codecov.io/github/mozilla/build-mar/coverage.svg?branch=master
    :alt: Coverage Status
    :target: https://codecov.io/github/mozilla/build-mar

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

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

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

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

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/mar.svg?style=flat
    :alt: Supported implementations
    :target: https://pypi.python.org/pypi/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/

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

To run the all tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox