Skip to content

Commit 0fcfba3

Browse files
authored
Merge pull request #259 from seleniumbase/easy-virtualenv-installation
Easy virtualenv installation
2 parents a73ba54 + c18c9e7 commit 0fcfba3

File tree

6 files changed

+60
-10
lines changed

6 files changed

+60
-10
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: python
22
sudo: false
3-
python:
4-
- "2.7"
5-
# - "3.6"
3+
matrix:
4+
include:
5+
- python: 2.7
6+
- python: 3.6
67
addons:
7-
firefox: "60.0"
8+
firefox: "62.0.3"
89
chrome: stable
910
before_install:
1011
- "sudo mysql -e 'CREATE DATABASE IF NOT EXISTS test_db;'"
@@ -15,7 +16,7 @@ before_install:
1516
install:
1617
- "pip install --upgrade pip"
1718
- "pip install -r requirements.txt --upgrade"
18-
- "pip install mysqlclient==1.3.12"
19+
- "pip install mysqlclient==1.3.14"
1920
- "python setup.py develop"
2021
- "sudo rm -f /etc/boto.cfg"
2122
before_script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[<img src="https://img.shields.io/github/release/seleniumbase/SeleniumBase.svg" />](https://github.com/seleniumbase/SeleniumBase/releases) [<img src="https://travis-ci.org/seleniumbase/SeleniumBase.svg?branch=master" alt="Build Status" />](https://travis-ci.org/seleniumbase/SeleniumBase) [<img src="https://badges.gitter.im/seleniumbase/SeleniumBase.svg" alt="Join the Gitter Chat" />](https://gitter.im/seleniumbase/SeleniumBase) [<img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg" alt="GitHub Stars" />](https://github.com/seleniumbase/SeleniumBase/stargazers)<br />
44

5-
A reliable test automation framework that extends [Pytest](https://docs.pytest.org/en/latest/) and uses [Selenium-WebDriver](https://www.seleniumhq.org/).
5+
Reliable browser automation and testing framework that uses [Selenium-WebDriver](https://www.seleniumhq.org/) and extends [Pytest](https://docs.pytest.org/en/latest/).
66

77
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> Quick Start
88

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
theme: jekyll-theme-cayman
22
title: SeleniumBase
3-
description: All-in-One Test Automation Framework
3+
description: Reliable browser automation and testing framework

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
with open(path.join(this_directory, 'README.md'), 'rb') as f:
1414
long_description = f.read().decode('utf-8')
1515
except IOError:
16-
long_description = 'Web Automation, Testing, and User-Onboarding Framework'
16+
long_description = 'Reliable Browser Automation and Testing Framework'
1717

1818
setup(
1919
name='seleniumbase',
20-
version='1.17.15',
21-
description='All-in-One Test Automation Framework',
20+
version='1.17.16',
21+
description='Reliable Browser Automation and Testing Framework',
2222
long_description=long_description,
2323
long_description_content_type='text/markdown',
2424
url='https://github.com/seleniumbase/SeleniumBase',

virtualenv_install.bat

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@ECHO OFF
2+
:: Performs necessary setup steps to allow the use of
3+
:: virtualenv commands such as "mkvirtualenv [ENV_NAME]"
4+
:: for creating and using Python virtual environments.
5+
6+
python -m pip install --upgrade virtualenv
7+
python -m pip install --upgrade virtualenvwrapper-win
8+
echo ""
9+
echo ""
10+
echo "*** You may now use virtualenv commands in your command shell. ***"
11+
echo ""
12+
echo "virtualenv commands:"
13+
echo " * 'mkvirtualenv [ENV_NAME]' - Create a Python virtual environment"
14+
echo " * 'deactivate' - Exit the current virtual environment"
15+
echo " * 'workon [ENV_NAME]' - Enter an existing virtual environment"
16+
echo " * 'lsvirtualenv' OR 'workon' - List all virtual environments"
17+
echo " * 'rmvirtualenv [ENV_NAME]' - Delete a virtual environment"
18+
echo ""
19+
echo "Example:"
20+
echo " mkvirtualenv seleniumbase "
21+
echo ""

virtualenv_install.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Performs necessary setup steps to allow the use of
2+
# virtualenv commands such as "mkvirtualenv [ENV_NAME]"
3+
# for creating and using Python virtual environments.
4+
#
5+
# Run by using the following command: "source virtualenv_install.sh"
6+
7+
python -m pip install --upgrade virtualenv
8+
python -m pip install --upgrade virtualenvwrapper
9+
source `which virtualenvwrapper.sh`
10+
export WORKON_HOME=$HOME/.virtualenvs
11+
echo ""
12+
echo ""
13+
echo 'virtualenv commands will only work if you installed this using "source":'
14+
echo ' *** "source virtualenv_install.sh" ***'
15+
echo ""
16+
echo ""
17+
echo "*** You may now use virtualenv commands in your command shell. ***"
18+
echo ""
19+
echo "virtualenv commands:"
20+
echo ' * "mkvirtualenv [ENV_NAME]" - Create a Python virtual environment'
21+
echo ' * "deactivate" - Exit the current virtual environment'
22+
echo ' * "workon [ENV_NAME]" - Enter an existing virtual environment'
23+
echo ' * "lsvirtualenv" OR "workon" - List all virtual environments'
24+
echo ' * "rmvirtualenv [ENV_NAME]" - Delete a virtual environment'
25+
echo ""
26+
echo "Example:"
27+
echo " mkvirtualenv seleniumbase "
28+
echo ""

0 commit comments

Comments
 (0)