Skip to content

Commit a7e09fe

Browse files
Drop python2 support from readme
1 parent cc3be93 commit a7e09fe

1 file changed

Lines changed: 28 additions & 32 deletions

File tree

README.md

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,53 @@
22

33
This repository demonstrates how to run Appium Python tests on BrowserStack App Automate.
44

5+
## Based on
6+
7+
These code samples are currently based on:
8+
9+
- **Appium-Python-Client:** `2.6.1`
10+
- **Protocol:** `W3C`
11+
512
## Setup
613

714
### Requirements
815

9-
1. Python 3.6+ or Python 2.7+
10-
11-
- For Windows, download latest python version from [here](https://www.python.org/downloads/windows/) and run the installer executable
12-
- For Mac and Linux, run `python --version` to see what python version is pre-installed. If you want a different version download from [here](https://www.python.org/downloads/)
16+
1. Python 3.7+
1317

14-
2. Package Manager pip
18+
> **_NOTE:_** Since v1.0.0, only Python 3.7+ is supported.
19+
20+
- For Windows, download latest python version from [here](https://www.python.org/downloads/windows/) and run the installer executable
21+
- For Mac and Linux, run `python --version` to see what python version is pre-installed. If you want a different version download from [here](https://www.python.org/downloads/)
1522

16-
Note : `pip` comes installed with Python 2.7.9+ and python 3.4+
23+
2. Package Manager pip
1724

18-
- If `pip` is not installed, follow these instructions:
19-
- Securely download get-pip.py by following this link: [get-pip.py](https://bootstrap.pypa.io/get-pip.py) or use following cURL command to download it:
25+
Note : `pip` comes installed with python 3.4+
2026

21-
```sh
22-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
23-
```
27+
- If `pip` is not installed, follow these instructions:
2428

25-
- After dowloading, run the file :
29+
- Securely download get-pip.py by following this link: [get-pip.py](https://bootstrap.pypa.io/get-pip.py) or use following cURL command to download it:
2630

27-
- For Python 3
31+
```sh
32+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
33+
```
2834

29-
```sh
30-
python3 get-pip.py
31-
```
35+
- After dowloading, run the file :
3236

33-
- For Python 2
37+
- For Python 3
3438

35-
```sh
36-
python2 get-pip.py
37-
```
39+
```sh
40+
python3 get-pip.py
41+
```
3842

3943
### Install the dependencies
4044

4145
To install the dependencies, run the following command in project's base directory:
4246
4347
- For Python 3
4448
45-
```sh
46-
pip3 install -r requirements.txt
47-
```
48-
49-
- For Python 2
50-
51-
```sh
52-
pip2 install -r requirements.txt
53-
```
49+
```sh
50+
pip3 install -r requirements.txt
51+
```
5452
5553
## Getting Started
5654
@@ -72,7 +70,6 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
7270
7371
**Note**: If you do not have an .apk or .ipa file and are looking to simply try App Automate, you can download and test using our [sample Android app](https://www.browserstack.com/app-automate/sample-apps/android/WikipediaSample.apk) or [sample iOS app](https://www.browserstack.com/app-automate/sample-apps/ios/BStackSampleApp.ipa).
7472
75-
7673
**2. Configure and run your first test**
7774
7875
Open `browserstack_sample.py` file in `Android` or `iOS` folder :
@@ -107,7 +104,6 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
107104
108105
**Note**: If you do not have an .apk or .ipa file and are looking to simply try App Automate, you can download and test using our [sample Android Local app](https://www.browserstack.com/app-automate/sample-apps/android/LocalSample.apk) or [sample iOS Local app](https://www.browserstack.com/app-automate/sample-apps/ios/LocalSample.ipa).
109106
110-
111107
**2. Configure and run your local test**
112108
113109
Open `browserstack_sample_local` file in `Android` or `iOS` folder :
@@ -118,7 +114,7 @@ Open `browserstack_sample_local` file in `Android` or `iOS` folder :
118114
119115
- Set the device and OS version
120116
121-
- Ensure that `browserstack.local` capability is set to `true`. Within the test script, there is code snippet that automatically establishes Local Testing connection to BrowserStack servers using Python binding for BrowserStack Local.
117+
- Ensure that `browserstack.local` capability is set to `true`. Within the test script, there is code snippet that automatically establishes Local Testing connection to BrowserStack servers using Python binding for BrowserStack Local.
122118
123119
- If you have uploaded your own app update the test case
124120

0 commit comments

Comments
 (0)