#!/usr/bin/env python

import sys
from os.path import join, dirname
from setuptools import setup

sys.path.append(join(dirname(__file__), 'src'))

execfile(join(dirname(__file__), 'src', 'BrowserMobProxyLibrary', 'version.py'))

DESCRIPTION = """
BrowserMobProxyLibrary is a Robot Framework library ro interface with BrowserMob Proxy.
BrowserMob Proxy is a simple utility to capture performance data for web apps (via the HAR format),
as well as manipulate browser behavior and traffic, such as whitelisting and blacklisting content,
simulating network traffic and latency, and rewriting HTTP requests and responses.
"""

setup(name         = 'robotframework-browsermobproxylibrary',
      version      = VERSION,
      description  = 'BrowserMob Proxy library for Robot Framework',
      long_description = DESCRIPTION,
      author       = 'Marcin Mierzejewski',
      author_email = '<mmierz@gmail.com>',
      url          = 'https://github.com/s4int/robotframework-BrowserMobProxyLibrary',
      license      = 'Apache License 2.0',
      keywords     = 'robotframework testing selenium selenium2 webdriver web browsermob proxy',
      platforms    = 'any',
      classifiers  = [
          "Development Status :: 5 - Production/Stable",
          "License :: OSI Approved :: Apache Software License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Topic :: Software Development :: Testing"
      ],
      install_requires = [
          'robotframework >= 2.6.0',
          'browsermob-proxy >= 0.7.1',
      ],
      package_dir = {'': 'src'},
      packages    = ['BrowserMobProxyLibrary'],
      )

#!/usr/bin/env python

import sys
from os.path import join, dirname
from setuptools import setup


CURDIR = dirname(__file__)
with open(join(CURDIR, 'requirements.txt')) as f:
    REQUIREMENTS = f.read().splitlines()

sys.path.append(join(CURDIR, 'src'))

filename = join(CURDIR, 'src', 'BrowserMobProxyLibrary', 'version.py')
if sys.version_info.major >= 3:
    exec(compile(open(filename).read(), filename, 'exec'))
else:
    execfile(filename)

setup(name         = 'robotframework-browsermobproxylibrary',
      version      = VERSION,
      description  = 'BrowserMob Proxy library for Robot Framework',
      long_description = DESCRIPTION,
      author       = 'Marcin Mierzejewski',
      author_email = '<mmierz@gmail.com>',
      url          = 'https://github.com/s4int/robotframework-BrowserMobProxyLibrary',
      license      = 'Apache License 2.0',
      keywords     = 'robotframework testing selenium selenium2 webdriver web browsermob proxy',
      platforms    = 'any',
      classifiers  = [
          "Development Status :: 5 - Production/Stable",
          "License :: OSI Approved :: Apache Software License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Topic :: Software Development :: Testing"
      ],
      install_requires = REQUIREMENTS,
      package_dir = {'': 'src'},
      packages    = ['BrowserMobProxyLibrary'],
      )

Move requirements to separate file
Move requirements to separate file
