File tree 4 files changed +20
-29
lines changed
4 files changed +20
-29
lines changed Original file line number Diff line number Diff line change 1
- # Python module for the plugin
1
+ # Python module for the plug-in
2
2
3
3
The tests should be kept in the ` tests ` folder.
4
4
5
- ## Setup instructions for UNIX
5
+ ## Setup
6
6
7
- The script ` tox-bootstrap.sh ` can be used for setting up a testing environment
8
- on Linux and Mac machines.
7
+ Install ` tox ` system wide and just run the ` tox ` command from the command line.
8
+ It should succeed if you have the following:
9
9
10
- The ` tox ` tool, when run, creates virtual environments under ` .tox/ ` folder and
11
- their names correspond the names in the ` tox.ini ` configuration file. For
12
- example, for activating a Python 2.7.x environment one would simply do :
10
+ - any version of the Python 2.7 interpreter
11
+
12
+ Using the python then should be as simple as :
13
13
14
14
``` bash
15
- source .tox/py27 /bin/activate
15
+ source .tox/${PYTHON_VERSION_LABEL} /bin/activate
16
16
```
17
17
18
- ## Setup instructions for Windows
18
+ ## Setup instructions for pyenv for UNIX
19
+
20
+ The script ` pyenv-bootstrap.sh ` can be used for setting up different versions
21
+ of the interpreters on Linux and Mac machines.
19
22
20
- TODO
23
+ Unfortunately ` pyenv ` is not supported on Windows, so you will need to install
24
+ the interpreters manually.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Install pyenv by using this: https://github.com/yyuu/pyenv-installer
4
- echo " Installing pyenv"
4
+ echo " Installing pyenv for easy setup of interpreters "
5
5
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
6
6
7
- . ./tox-env.sh
7
+ echo " Do not forget to set the PATH for pyenv to work correctly afterwards!"
8
+
9
+ export PATH=" ${HOME} /.pyenv/bin:$PATH "
10
+ eval " $( pyenv init -) "
11
+ eval " $( pyenv virtualenv-init -) "
8
12
9
13
echo " Setting up python interpreters for testing with tox"
10
14
echo " WARNING: this will take a long while the first time!"
11
15
for v in ` cat .python-version`
12
16
do
13
17
pyenv install $v
14
18
done
15
-
16
- pyenv virtualenv 3.5.3 ${OMNISHARP_VENV}
17
- pyenv activate ${OMNISHARP_VENV}
18
- pip install --upgrade setuptools pip tox
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments