@@ -85,7 +85,7 @@ information on using pull requests.
85
85
86
86
### Initial Setup
87
87
88
- You need Python 2.7 or Python 3.4+ to build and test the code in this repo.
88
+ You need Python 3.4+ to build and test the code in this repo.
89
89
90
90
We recommend using [ pip] ( https://pypi.python.org/pypi/pip ) for installing the necessary tools and
91
91
project dependencies. Most recent versions of Python ship with pip. If your development environment
@@ -227,53 +227,6 @@ pytest --cov --cov-report html
227
227
and point your browser to
228
228
` file:///<dir>/htmlcov/index.html ` (where ` dir ` is the location from which the report was created).
229
229
230
-
231
- ### Testing in Different Environments
232
-
233
- Sometimes we want to run unit tests in multiple environments (e.g. different Python versions), and
234
- ensure that the SDK works as expected in each of them. We use
235
- [ tox] ( https://tox.readthedocs.io/en/latest/ ) for this purpose.
236
-
237
- But before you can invoke tox, you must set up all the necessary target environments on your
238
- workstation. The easiest and cleanest way to achieve this is by using a tool like
239
- [ pyenv] ( https://github.com/pyenv/pyenv ) . Refer to the
240
- [ pyenv documentation] ( https://github.com/pyenv/pyenv#installation ) for instructions on how to
241
- install it. This generally involves installing some binaries as well as modifying a system level
242
- configuration file such as ` .bash_profile ` . Once pyenv is installed, you can install multiple
243
- versions of Python as follows:
244
-
245
- ```
246
- pyenv install 2.7.6 # install Python 2.7.6
247
- pyenv install 3.3.0 # install Python 3.3.0
248
- pyenv install pypy2-5.6.0 # install pypy2
249
- ```
250
-
251
- Refer to the [ ` tox.ini ` ] ( tox.ini ) file for a list of target environments that we usually test.
252
- Use pyenv to install all the required Python versions on your workstation. Verify that they are
253
- installed by running the following command:
254
-
255
- ```
256
- pyenv versions
257
- ```
258
-
259
- To make all the required Python versions available to tox for testing, run the ` pyenv local ` command
260
- with all the Python versions as arguments. The following example shows how to make Python versions
261
- 2.7.6, 3.3.0 and pypy2 available to tox.
262
-
263
- ```
264
- pyenv local 2.7.6 3.3.0 pypy2-5.6.0
265
- ```
266
-
267
- Once your system is fully set up, you can execute the following command from the root of the
268
- repository to launch tox:
269
-
270
- ```
271
- tox
272
- ```
273
-
274
- This command will read the list of target environments from ` tox.ini ` , and execute tests in each of
275
- those environments. It will also generate a code coverage report at the end of the execution.
276
-
277
230
### Repo Organization
278
231
279
232
Here are some highlights of the directory structure and notable source files
0 commit comments