Skip to content

Commit

Permalink
igloo-release
Browse files Browse the repository at this point in the history
  • Loading branch information
lalmeras committed Dec 6, 2024
1 parent 5eee631 commit 191a408
Show file tree
Hide file tree
Showing 12 changed files with 804 additions and 17 deletions.
66 changes: 50 additions & 16 deletions igloo/igloo-parents/igloo-parent-maven-configuration-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,56 @@
</properties>

<build>
<plugins>
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<configuration>
<flowInitContext>
<masterBranchName>${masterBranchName}</masterBranchName>
<developBranchName>dev</developBranchName>
<featureBranchPrefix>ft-</featureBranchPrefix>
<releaseBranchPrefix>rl-</releaseBranchPrefix>
<hotfixBranchPrefix>hf-</hotfixBranchPrefix>
<versionTagPrefix>v</versionTagPrefix>
</flowInitContext>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<configuration>
<flowInitContext>
<masterBranchName>${masterBranchName}</masterBranchName>
<developBranchName>dev</developBranchName>
<featureBranchPrefix>ft-</featureBranchPrefix>
<releaseBranchPrefix>rl-</releaseBranchPrefix>
<hotfixBranchPrefix>hf-</hotfixBranchPrefix>
<versionTagPrefix>v</versionTagPrefix>
</flowInitContext>
</configuration>
</plugin>
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>${igloo.gitflow-maven-plugin.version}</version>
<configuration>
<gitFlowConfig>
<productionBranch>${masterBranchName}</productionBranch>
<developmentBranch>dev</developmentBranch>
<featureBranchPrefix>ft-</featureBranchPrefix>
<releaseBranchPrefix>rl-</releaseBranchPrefix>
<hotfixBranchPrefix>hf-</hotfixBranchPrefix>
<supportBranchPrefix>sp-</supportBranchPrefix>
<versionTagPrefix>v</versionTagPrefix>
<origin>origin</origin>
</gitFlowConfig>
<skipFeatureVersion>true</skipFeatureVersion>
<!-- do not run verify, done on CI -->
<skipTestProject>true</skipTestProject>
<!-- In X.Y.Z, update Y -->
<versionDigitToIncrement>1</versionDigitToIncrement>
<!-- do not push during release; we perform this independently-->
<pushRemote>false</pushRemote>
<!-- build project during release -->
<installProject>true</installProject>
<!-- ensure all modules are processed by versions: calls -->
<argLine>-DskipTests=true -DprocessAllModules=true -DskipResolution=true</argLine>
<!-- print subcommand output -->
<verbose>true</verbose>
<!-- Needed as it implies project reloading during versioning, and triggers resolution failure -->
<updateOutputTimestamp>false</updateOutputTimestamp>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
Expand Down
3 changes: 2 additions & 1 deletion tools/igloo-project-init/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ classifiers = [
]
dependencies = [
"click",
"colorlog"
"colorlog",
"termcolor"
]

[project.scripts]
Expand Down
4 changes: 4 additions & 0 deletions tools/igloo-release/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
__pycache__
.ruff_cache
output.log
9 changes: 9 additions & 0 deletions tools/igloo-release/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2024-present Laurent Almeras <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions tools/igloo-release/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# igloo-release

[![PyPI - Version](https://img.shields.io/pypi/v/igloo-release.svg)](https://pypi.org/project/igloo-release)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/igloo-release.svg)](https://pypi.org/project/igloo-release)

-----

## Table of Contents

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install igloo-release
```

## License

`igloo-release` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
72 changes: 72 additions & 0 deletions tools/igloo-release/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "igloo-release"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Laurent Almeras", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click",
"aiofiles",
"termcolor",
"requests"
]

[project.scripts]
igloo-release = "igloo_release.cli:igloo_release"

[project.urls]
Documentation = "https://github.com/Laurent Almeras/igloo-release#readme"
Issues = "https://github.com/Laurent Almeras/igloo-release/issues"
Source = "https://github.com/Laurent Almeras/igloo-release"

[tool.hatch.version]
path = "src/igloo_release/__about__.py"

[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/igloo_release tests}"

[tool.coverage.run]
source_pkgs = ["igloo_release", "tests"]
branch = true
parallel = true
omit = [
"src/igloo_release/__about__.py",
]

[tool.coverage.paths]
igloo_release = ["src/igloo_release", "*/igloo-release/src/igloo_release"]
tests = ["tests", "*/igloo-release/tests"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]

[tool.ruff.lint.extend-per-file-ignores]
"**" = ["ARG001", "S607", "T201", "FBT002"]
4 changes: 4 additions & 0 deletions tools/igloo-release/src/igloo_release/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Laurent Almeras <[email protected]>
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.1"
3 changes: 3 additions & 0 deletions tools/igloo-release/src/igloo_release/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2024-present Laurent Almeras <[email protected]>
#
# SPDX-License-Identifier: MIT
Loading

0 comments on commit 191a408

Please sign in to comment.