Skip to content

Commit

Permalink
Merge pull request boozallen#144 from boozallen/123-fix-pydev-deps
Browse files Browse the repository at this point in the history
boozallen#123 add test.pypi.org as supplemental source
  • Loading branch information
ewilkins-csi authored Jun 12, 2024
2 parents 577fc7e + c3d9400 commit c2acab9
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void generate(GenerationContext generationContext) {

String aissembleVersion = PipelineUtils.getAiSSEMBLEVersion(generationContext);
SparkDependencyConfiguration config = SparkDependencyConfiguration.getInstance();
vc.put(VelocityProperty.AISSEMBLE_VERSION, aissembleVersion);
vc.put(VelocityProperty.AISSEMBLE_PYTHON_VERSION, PythonGeneratorUtils.getPythonDependencyVersion(aissembleVersion));
vc.put(VelocityProperty.ARTIFACT_ID_PYTHON_CASE, PythonGeneratorUtils.normalizeToPythonCase(generationContext.getArtifactId()));
vc.put(VelocityProperty.PROJECT_VERSION_PYTHON, PythonGeneratorUtils.getPythonDependencyVersion(generationContext.getVersion()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public final class VelocityProperty {
* Captures the utilized version of aiSSEMBLE as a Python dependency version that
* may be used in a Poetry pyproject.toml or pip requirements.txt specification
*/
public static final String AISSEMBLE_VERSION = "aissembleVersion";
public static final String AISSEMBLE_PYTHON_VERSION = "aissemblePythonVersion";
public static final String PIPELINE = "pipeline";
public static final String PIPELINES = "pipelines";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ black = ">=22.1.0"
behave = ">=1.2.6"
nose = ">=1.3.7"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ black = ">=22.1.0"
behave = ">=1.2.6"
nose = ">=1.3.7"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ black = ">=22.1.0"
behave = ">=1.2.6"
nose = ">=1.3.7"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ black = ">=22.1.0"
behave = ">=1.2.6"
nose = ">=1.3.7"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ black = ">=22.1.0"
behave = ">=1.2.6"
nose = ">=1.3.7"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ nose = ">=1.3.7"
grpcio-tools = "^1.50.0"
grpcio-testing = "^1.50.0"

#if ($aissembleVersion.endsWith("SNAPSHOT"))
[[tool.poetry.source]]
name = "devpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

#end
[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit c2acab9

Please sign in to comment.