Skip to content

Commit

Permalink
Add requirements.txt. (#659)
Browse files Browse the repository at this point in the history
Eases installing project requirements e.g. when doing development. To avoid listing
requirements twice, changed setup.py to read install_requires content from
requirements.txt directly.
  • Loading branch information
pekkaklarck authored and aaltat committed Sep 6, 2016
1 parent 7930bb1 commit fd9edf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
decorator >= 3.3.2
selenium >= 2.32.0
robotframework >= 2.6.0
16 changes: 9 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#!/usr/bin/env python

from os.path import join, dirname
from os.path import abspath, dirname, join

from setuptools import setup

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

CURDIR = dirname(abspath(__file__))

execfile(join(CURDIR, 'src', 'Selenium2Library', 'version.py'))

DESCRIPTION = """
Selenium2Library is a web testing library for Robot Framework
that leverages the Selenium 2 (WebDriver) libraries.
"""[1:-1]

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

setup(name = 'robotframework-selenium2library',
version = VERSION,
description = 'Web testing library for Robot Framework',
Expand All @@ -28,11 +34,7 @@
"Programming Language :: Python",
"Topic :: Software Development :: Testing"
],
install_requires = [
'decorator >= 3.3.2',
'selenium >= 2.32.0',
'robotframework >= 2.6.0'
],
install_requires = REQUIREMENTS,
package_dir = {'' : 'src'},
packages = ['Selenium2Library','Selenium2Library.keywords','Selenium2Library.locators',
'Selenium2Library.utils'],
Expand Down

0 comments on commit fd9edf9

Please sign in to comment.