Metadata-Version: 2.0
Name: sdx-common
Version: 0.7.2
Summary: A shared library for SDX services
Home-page: https://github.com/ONSdigital/sdx-common
Author: D Haynes
Author-email: tundish@thuswise.org
License: UNKNOWN
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: Apache Software License
Requires-Dist: arrow (==0.8.0)
Requires-Dist: cryptography (==1.7.1)
Requires-Dist: reportlab (==3.3.0)
Requires-Dist: requests (==2.12.4)
Requires-Dist: structlog (==16.1.0)
Provides-Extra: dev
Requires-Dist: flake8 (>=2.6.0); extra == 'dev'
Requires-Dist: pep8 (>=1.6.2); extra == 'dev'
Provides-Extra: docbuild
Requires-Dist: sphinx-argparse (>=0.1.17); extra == 'docbuild'
Requires-Dist: sphinx-rtd-theme (>=0.2.4); extra == 'docbuild'
Requires-Dist: sphinxcontrib-seqdiag (>=0.8.5); extra == 'docbuild'

..  Titling
    ##++::==~~--''``

SDX-common
::::::::::

.. image:: https://api.codacy.com/project/badge/Grade/b977b40c85da4c7d9cf1a43ade2135d5
    :target: https://www.codacy.com/app/ons-sdc/sdx-common?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ONSdigital/sdx-common&amp;utm_campaign=Badge_Grade

Common classes for SDX apps. Contains a single package:

    * sdx.common_

sdx.common
==========

A common library for SDX apps. App projects declare their dependence on *sdx-common* which
is deployed and installed via pip.

Basic use
=========

Assuming a Python 3.5 virtual environment at ``~/py3.5``:

#. Run the unit tests::

    ~/py3.5/bin/python -m unittest discover sdx

#. Create a package for deployment::

    ~/py3.5/bin/python setup.py sdist

#. Install source package with pip::

    ~/py3.5/bin/pip install -U dist/sdx-common-x.y.z.tar.gz

#. Install extra dependencies for development and building documentation::

    ~/py3.5/bin/pip install .[dev,docbuild]

#. Build documentation pages::

    ~/py3.5/bin/sphinx-build sdx/common/doc sdx/common/doc/html



