@@ -16,46 +16,44 @@ suite against multiple python versions. I recommend
16
16
these various versions. If you are a Windows user, ` pyenv ` won't work for you,
17
17
but [ conda] ( https://conda.io/ ) can also be used to solve this problem.
18
18
19
- This distribution includes a shell script ` build-pyenvs.sh ` which
20
- automates the creation of these environments.
19
+ This distribution includes a shell script ` build-pyenvs.sh ` which automates
20
+ the creation of these environments.
21
21
22
22
If you prefer to create these virtual envs by hand, do the following:
23
23
```
24
24
$ cd cmd2_abbrev
25
+ $ pyenv install 3.8.0
26
+ $ pyenv virtualenv -p python3.8 3.8.0 cmd2-3.8
25
27
$ pyenv install 3.7.0
26
- $ pyenv virtualenv -p python3.7 3.7.0 cmd2-3.7
28
+ $ pyenv virtualenv -p python3.7 3.7.5 cmd2-3.7
27
29
$ pyenv install 3.6.5
28
- $ pyenv virtualenv -p python3.6 3.6.5 cmd2-3.6
30
+ $ pyenv virtualenv -p python3.6 3.6.9 cmd2-3.6
29
31
$ pyenv install 3.5.5
30
- $ pyenv virtualenv -p python3.5 3.5.5 cmd2-3.5
31
- $ pyenv install 3.4.8
32
- $ pyenv virtualenv -p python3.4 3.4.8 cmd2-3.4
32
+ $ pyenv virtualenv -p python3.5 3.5.8 cmd2-3.5
33
33
```
34
34
35
35
Now set pyenv to make all three of those available at the same time:
36
36
```
37
- $ pyenv local cmd2-3.7 cmd2-3.6 cmd2-3.5 cmd2-3.4
37
+ $ pyenv local cmd2-3.8 cmd2-3.7 cmd2-3.6 cmd2-3.5
38
38
```
39
39
40
40
Whether you ran the script, or did it by hand, you now have isolated
41
- virtualenvs for each of the major python
42
- versions. This table shows various python commands, the version of
43
- python which will be executed, and the virtualenv it will utilize.
41
+ virtualenvs for each of the major python versions. This table shows various
42
+ python commands, the version of python which will be executed, and the
43
+ virtualenv it will utilize.
44
44
45
45
| Command | python | virtualenv |
46
46
| ----------- | ------ | ---------- |
47
- | ` python ` | 3.7.0 | cmd2-3.6 |
48
- | ` python3 ` | 3.7.0 | cmd2-3.6 |
49
- | ` python3.7 ` | 3.7.0 | cmd2-3.7 |
50
- | ` python3.6 ` | 3.6.5 | cmd2-3.6 |
51
- | ` python3.5 ` | 3.5.5 | cmd2-3.5 |
52
- | ` python3.4 ` | 3.4.8 | cmd2-3.4 |
53
- | ` pip ` | 3.7.0 | cmd2-3.6 |
54
- | ` pip3 ` | 3.7.0 | cmd2-3.6 |
55
- | ` pip3.7 ` | 3.7.0 | cmd2-3.7 |
56
- | ` pip3.6 ` | 3.6.5 | cmd2-3.6 |
57
- | ` pip3.5 ` | 3.5.5 | cmd2-3.5 |
58
- | ` pip3.4 ` | 3.4.8 | cmd2-3.4 |
47
+ | ` python ` | 3.8.0 | cmd2-3.8 |
48
+ | ` python3 ` | 3.8.0 | cmd2-3.8 |
49
+ | ` python3.7 ` | 3.7.5 | cmd2-3.7 |
50
+ | ` python3.6 ` | 3.6.9 | cmd2-3.6 |
51
+ | ` python3.5 ` | 3.5.8 | cmd2-3.5 |
52
+ | ` pip ` | 3.8.0 | cmd2-3.8 |
53
+ | ` pip3 ` | 3.8.0 | cmd2-3.8 |
54
+ | ` pip3.7 ` | 3.7.5 | cmd2-3.7 |
55
+ | ` pip3.6 ` | 3.6.9 | cmd2-3.6 |
56
+ | ` pip3.5 ` | 3.5.8 | cmd2-3.5 |
59
57
60
58
61
59
## Install Dependencies
@@ -68,23 +66,24 @@ $ pip install -e .[dev]
68
66
This command also installs ` cmd2-abbrev ` "in-place", so the package points to
69
67
the source code instead of copying files to the python ` site-packages ` folder.
70
68
71
- All the dependencies now have been installed in the ` cmd2-3.7 `
69
+ All the dependencies now have been installed in the ` cmd2-3.8 `
72
70
virtualenv. If you want to work in other virtualenvs, you'll need to manually
73
71
select it, and install again::
74
72
75
- $ pyenv shell cmd2-3.4
73
+ $ pyenv shell cmd2-3.6
76
74
$ pip install -e .[ dev]
77
75
78
76
## Common Development Tasks
79
77
80
78
This project uses many other python modules for various development tasks,
81
79
including testing, linting, building wheels, and distributing releases. These
82
80
modules can be configured many different ways, which can make it difficult to
83
- learn the specific incantations required for each project you are familiar with.
81
+ learn the specific incantations required for each project you are familiar
82
+ with.
84
83
85
- This project uses [ invoke] ( < http://www.pyinvoke.org > ) to provide a clean,
86
- high level interface for these development tasks. To see the full list of
87
- functions available:
84
+ This project uses [ invoke] ( < http://www.pyinvoke.org > ) to provide a clean, high
85
+ level interface for these development tasks. To see the full list of functions
86
+ available:
88
87
```
89
88
$ invoke -l
90
89
```
@@ -94,9 +93,9 @@ You can run multiple tasks in a single invocation, for example:
94
93
$ invoke clean docs sdist wheel
95
94
```
96
95
97
- That one command will remove all superflous cache, testing, and build
98
- files, render the documentation, and build a source distribution and a
99
- wheel distribution.
96
+ That one command will remove all superflous cache, testing, and build files,
97
+ render the documentation, and build a source distribution and a wheel
98
+ distribution.
100
99
101
100
For more information, read ` tasks.py ` .
102
101
0 commit comments