Skip to content

Commit

Permalink
Move requirements to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
s4int committed Feb 11, 2020
1 parent 3e72091 commit 85f4565
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
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'))
CURDIR = dirname(__file__)
with open(join(CURDIR, 'requirements.txt')) as f:
REQUIREMENTS = f.read().splitlines()

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.
"""
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,
Expand All @@ -32,10 +34,7 @@
"Programming Language :: Python",
"Topic :: Software Development :: Testing"
],
install_requires = [
'robotframework >= 2.6.0',
'browsermob-proxy >= 0.7.1',
],
install_requires = REQUIREMENTS,
package_dir = {'': 'src'},
packages = ['BrowserMobProxyLibrary'],
)

0 comments on commit 85f4565

Please sign in to comment.