mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Trial is test framework for Twisted much like unittests. It is fully supported on Leonid side, we only need to create wrappers. There were too many places with framework naming code making it pretty hard to support new frameworks. It is now unified. Any service (except framework-specific) should work via PyTestFrameworkService to obtain list of frameworks and its
60 lines
2.7 KiB
Groovy
60 lines
2.7 KiB
Groovy
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
plugins {
|
|
id "com.jetbrains.python.envs" version "0.0.10"
|
|
}
|
|
|
|
|
|
envs {
|
|
bootstrapDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHONS", new File(buildDir, 'pythons').path))
|
|
envsDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHON_VIRTUAL_ENVS", new File(buildDir, 'envs').path))
|
|
minicondaVersion = 'latest'
|
|
packages = ["pip", "setuptools"]
|
|
_64Bits = true
|
|
|
|
conda "django19", "2.7", ["django==1.9", "tox", "nose", "pytest", "Twisted", "behave", "lettuce>=0.2.22", "unittest2", "teamcity-messages"], true
|
|
textfile "django19/tags.txt", "python2.7\ndjango\nnose\npytest\nbehave\nlettuce\npackaging\ntox\nunittest2\ntwisted"
|
|
|
|
conda "django110", "3.4", ["django==1.10", "django-nose"], false
|
|
textfile "django110/tags.txt", "python3.4\ndjango\nskeletons\ndjango-nose"
|
|
|
|
conda "django111", "3.4", ["django==1.11"], true
|
|
textfile "django111/tags.txt", "python3.4\ndjango"
|
|
|
|
conda "python34", "3.4", ["ipython==2.1", "django==1.8", "behave", "jinja2", "tox>=2.0", "pandas"], true
|
|
textfile "python34/tags.txt", "python3.4\npython3\nipython\nipython200\nskeletons\ndjango\nbehave\ntox\njinja2\npython34\npackaging\npandas"
|
|
|
|
conda "python36", "3.6", ["django==1.9", "jinja2"], true
|
|
textfile "python36/tags.txt", "python3.6\npython3\ndjango\njinja2\npython34\npython36"
|
|
|
|
if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
|
|
conda "pyqt_env", "2.7", [install("pyqt=5.6.0")], true
|
|
textfile "pyqt_env/tags.txt", "pyqt5"
|
|
// jython "jython25", []
|
|
// textfile "jython25/tags.txt", "jython"
|
|
}
|
|
|
|
conda "django_latest", "3.5", ["django"], true
|
|
textfile "django_latest/tags.txt", "python3.5\ndjango"
|
|
}
|
|
|
|
if (new File(envs.envsDirectory, "django_latest").exists() &&
|
|
new File(envs.envsDirectory, "django_latest").lastModified()<System.currentTimeMillis() - 24*60*60*1000) {
|
|
// older then a day
|
|
println "Cleaning django_latest at" + new File(envs.envsDirectory, "django_latest")
|
|
delete new File(envs.envsDirectory, "django_latest")
|
|
}
|
|
|
|
def bootstrapDirNotEmpty = envs.bootstrapDirectory.exists() &&
|
|
(new File(envs.bootstrapDirectory, "latest_64/bin/conda").exists() ||
|
|
new File(envs.bootstrapDirectory, "latest_64/Scripts/conda.exe").exists())
|
|
|
|
if (!bootstrapDirNotEmpty || (System.getenv("NO_CLEAN") == null && envs.envsDirectory.exists() &&
|
|
envs.envsDirectory.lastModified() < project.buildscript.sourceFile.lastModified())) {
|
|
// clean the cache if the build script if modified later
|
|
println "Cleaning cached environments at " + envs.envsDirectory
|
|
delete envs.envsDirectory
|
|
println "Cleaning cached pythons at " + envs.bootstrapDirectory
|
|
delete envs.bootstrapDirectory
|
|
}
|