-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathbuild.gradle
37 lines (32 loc) · 1.23 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
id "com.linkedin.python-cli" version "0.4.9"
}
version=1.0
// we need to define an explicit installation sequence for the dependencies,
// see issue 75 here: https://github.com/linkedin/pygradle/issues/75
project.tasks.findByName('installPythonRequirements').sorted = false
dependencies {
python 'pypi:numpy:1.11.2'
python 'pypi:pandas:0.19.1'
python 'pypi:scipy:0.18.1'
python 'pypi:scikit-learn:0.18'
// pandas depends on pytz>=2011k, which cannot be satisfied automatically
// since 2011k does not conform to correct versioning (see
// http://stackoverflow.com/questions/18230956/could-not-find-a-version-that-satisfies-the-requirement-pytz)
// therefore, explicitly include dependencies here:
python 'pypi:pytz:2016.4'
python 'pypi:python-dateutil:2.6.0'
}
repositories {
pyGradlePyPi()
// as LinkedIn only provides an initial set of pypi libraries along with Ivy-Metadata,
// we will use a local repository which is populated with libraries and metadata using
// the pivy-importer.
ivy{
url "/tmp/repo"
layout 'pattern' , {
artifact '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
ivy '[organisation]/[module]/[revision]/[module]-[revision].ivy'
}
}
}