Skip to content

Commit

Permalink
Merge pull request #323 from elautz/flake8-venv
Browse files Browse the repository at this point in the history
Reverted logic that has flake8 run in different venv
  • Loading branch information
zvezdan authored Nov 26, 2019
2 parents 2201a37 + 7c79116 commit 091a961
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 374 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
docker:
- image: openjdk:8-jdk
environment:
_JAVA_OPTIONS: "-Xmx1024m -Xms256m"
_JAVA_OPTIONS: "-Xmx768m -Xms256m"
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx1024m -Dorg.gradle.daemon=false
steps:
- run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,6 @@ class ParallelWheelsIntegrationTest extends Specification {

then:
out.toString() == "Hello World${ System.getProperty("line.separator") }".toString()

when:
println "======================="
result = GradleRunner.create()
.withProjectDir(testProjectDir.root)

.withArguments('flake8', '--stacktrace', '--info')
.withPluginClasspath()
.withDebug(true)
.build()
println result.output

then:
result.task(':foo:parallelWheels') == null //the task isn't part of the graph
}

@IgnoreIf({ OperatingSystem.current() == OperatingSystem.WINDOWS })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_BOOTSTRAP_REQS;
import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_BUILD_REQS;
import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_FLAKE8;
import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_PYDOCS;
import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_PYTHON;
import static com.linkedin.gradle.python.util.StandardTextValues.CONFIGURATION_SETUP_REQS;
Expand Down Expand Up @@ -156,15 +155,11 @@ private static void createConfigurations(Project project) {

project.getConfigurations().create(CONFIGURATION_BOOTSTRAP_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_SETUP_REQS.getValue());
Configuration buildReq = project.getConfigurations().create(CONFIGURATION_BUILD_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_BUILD_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_PYDOCS.getValue());
project.getConfigurations().create(CONFIGURATION_TEST.getValue());
project.getConfigurations().create(CONFIGURATION_VENV.getValue());
Configuration flake8 = project.getConfigurations().create(CONFIGURATION_FLAKE8.getValue());
project.getConfigurations().create(CONFIGURATION_WHEEL.getValue());

//So flake8 will be installed into the activate-able venv
buildReq.extendsFrom(flake8);
}

/*
Expand All @@ -183,7 +178,7 @@ private static void configureVendedDependencies(Project project, PythonExtension
project.getDependencies().add(CONFIGURATION_SETUP_REQS.getValue(), settings.forcedVersions.get("pip"));
project.getDependencies().add(CONFIGURATION_SETUP_REQS.getValue(), settings.forcedVersions.get("setuptools-git"));

project.getDependencies().add(CONFIGURATION_FLAKE8.getValue(), settings.forcedVersions.get("flake8"));
project.getDependencies().add(CONFIGURATION_BUILD_REQS.getValue(), settings.forcedVersions.get("flake8"));

project.getDependencies().add(CONFIGURATION_BUILD_REQS.getValue(), settings.forcedVersions.get("Sphinx"));

Expand Down

This file was deleted.

Loading

0 comments on commit 091a961

Please sign in to comment.