Skip to content

Commit aaf9a9e

Browse files
committed
fix tests for win
1 parent 4e11b70 commit aaf9a9e

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
### 1.2.0 (2018-08-30)
12
* Improve virtualenv usage in multi-module project (#5):
23
- Fix virtualenv access from module on windows
34
- By default virtualenv is created in the root project and used for all modules
5+
(breaking) note that before virtualenv was created inside module (on linux)
46
- Per module python setup is also possible by overriding envPath
57

68
### 1.1.0 (2018-05-29)

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ buildscript {
4747
jcenter()
4848
}
4949
dependencies {
50-
classpath 'ru.vyarus:gradle-use-python-plugin:1.1.0'
50+
classpath 'ru.vyarus:gradle-use-python-plugin:1.2.0'
5151
}
5252
}
5353
apply plugin: 'ru.vyarus.use-python'
@@ -57,7 +57,7 @@ OR
5757

5858
```groovy
5959
plugins {
60-
id 'ru.vyarus.use-python' version '1.1.0'
60+
id 'ru.vyarus.use-python' version '1.2.0'
6161
}
6262
```
6363

@@ -143,6 +143,13 @@ If you want automatic python installation, try looking on JetBrain's
143143
it has some caveats (for example, on windows python could be installed automatically just once
144144
and requires manual un-installation).
145145

146+
#### Multi-module projects
147+
148+
When used in multi-module project, plugin will create virtualenv inside the root project directory
149+
in order to share the same environment for all modules.
150+
151+
See [multi-module setup cases](https://github.com/xvik/gradle-use-python-plugin/wiki/Multi-module-projects)
152+
146153
#### Travis configuration
147154

148155
To make plugin work on [travis](https://travis-ci.org/) you'll need `sudo` and install pip [manually](.travis.yml):
@@ -152,8 +159,12 @@ language: java
152159
jdk: oraclejdk8
153160

154161
sudo: required
162+
addons:
163+
apt:
164+
packages:
165+
- "python3"
166+
- "python3-pip"
155167
before_install:
156-
- sudo apt-get -y install python3-pip
157168
- sudo pip3 install -U pip
158169
```
159170
@@ -526,6 +537,9 @@ python {
526537
}
527538
```
528539

540+
Note that in case of multi-module project envPath is set to '.gradle/python' inside the root project,
541+
even if plugin is activated inside module (see [multi-module setup](https://github.com/xvik/gradle-use-python-plugin/wiki/Multi-module-projects)).
542+
529543
#### PythonTask
530544

531545
PythonTask configuration:
@@ -580,7 +594,7 @@ In your plugin, add plugin as dependency:
580594

581595
```groovy
582596
dependencies {
583-
compile 'ru.vyarus:gradle-use-python-plugin:1.1.0'
597+
compile 'ru.vyarus:gradle-use-python-plugin:1.2.0'
584598
}
585599
```
586600

0 commit comments

Comments
 (0)