#!/usr/bin/env python

# Copyright (c) 2016, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
#   list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
#   this list of conditions and the following disclaimer in the documentation
#   and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
#   contributors may be used to endorse or promote products derived from
#   this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# TODO

@@ -1572,11 +1572,1464 @@
 E.%0A%0A
-# TODO
+%22%22%22%0ASetup script for pynrfjprog.%0A%0AUSAGE:%0A    python setup.py install%0A%22%22%22%0A%0Aimport os%0Afrom setuptools import setup, find_packages%0Aimport sys%0A%0Adef read(fname):%0A    return open(os.path.join(os.path.dirname(__file__), fname)).read()%0A%0Adef read_requirements(fname):%0A    return open(os.path.join(os.path.dirname(__file__), fname)).readlines()%0A%0Asetup(%0A    name ='nrfjprog',%0A    version = nrfjprog.__version__,%0A    description = 'The nrfjprog command line tool implemented in Python.',%0A    long_description=read('README.md'),%0A    url = 'http://www.nordicsemi.com/',%0A    author = 'Nordic Semiconductor ASA',%0A    license = 'BSD',%0A    classifiers = %5B%0A        'Development Status :: 5 - Production/Stable',%0A        'Intended Audience :: Developers',%0A        'Operating System :: MacOS',%0A        'Operating System :: Microsoft :: Windows',%0A        'Operating System :: POSIX :: Linux',%0A        'Topic :: Software Development :: Build Tools',%0A        'Topic :: Software Development :: Debuggers',%0A        'Topic :: Software Development :: Embedded Systems',%0A        'License :: OSI Approved :: BSD License',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3.4',%0A        'Programming Language :: Python :: 3.5'%0A    %5D,%0A    keywords = 'nRF5 nRF51 nRF52 nrfjprog pynrfjprog pyOCD Nordic Semiconductor SEGGER JLink',%0A    install_requires = read_requirements('requirements.txt'),%0A    packages = find_packages()%0A    # package_data = %7B%7D%0A)%0A
 %0A

Create setup.py