Skip to content

Commit a9604ad

Browse files
authored
Merge pull request #119 from EOPF-Explorer/release-please
feat: configure release automation
2 parents fb20af7 + fe1020f commit a9604ad

6 files changed

Lines changed: 68 additions & 21 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Release Please
17+
id: release
18+
uses: googleapis/release-please-action@v4
19+
with:
20+
config-file: "release-please-config.json"
21+
manifest-file: ".release-please-manifest.json"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ share/python-wheels/
2626
*.egg
2727
MANIFEST
2828

29+
# setuptools-scm generated version file
30+
src/**/_version.py
31+
2932
# PyInstaller
3033
# Usually these files are written by a python script from a template
3134
# before PyInstaller builds the exe, so as to inject date/other infos into it.

.release-please-config.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"include-component-in-tag": false,
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"package-name": "eopf-geozarr",
7+
"changelog-type": "github",
8+
"changelog-sections": [
9+
{ "type": "feat", "section": "Features", "hidden": false },
10+
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
11+
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
12+
{ "type": "revert", "section": "Reverts", "hidden": false },
13+
{ "type": "docs", "section": "Documentation", "hidden": false },
14+
{ "type": "style", "section": "Styles", "hidden": true },
15+
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
16+
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
17+
{ "type": "test", "section": "Tests", "hidden": true },
18+
{ "type": "build", "section": "Build System", "hidden": true },
19+
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
20+
],
21+
"group-pull-request-title-pattern": "chore: release${component} ${version}",
22+
"pull-request-title-pattern": "chore: release${component} ${version}",
23+
"separate-pull-requests": false,
24+
"bump-minor-pre-major": true,
25+
"bump-patch-for-minor-pre-major": false,
26+
"extra-files": [
27+
{
28+
"type": "toml",
29+
"path": "pyproject.toml",
30+
"jsonpath": "$.project.version"
31+
}
32+
]
33+
}
34+
}
35+
}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.7.1"
3+
}

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
2+
requires = ["setuptools>=61.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "eopf-geozarr"
7-
dynamic = ["version"]
7+
version = "0.7.1"
88
description = "GeoZarr compliant data model for EOPF datasets"
99
readme = "README.md"
1010
license = { text = "Apache-2.0" }
@@ -51,7 +51,6 @@ dev = [
5151
"pre-commit>=3.0.0",
5252
"bandit[toml]>=1.7.0",
5353
"safety>=2.0.0",
54-
"setuptools-scm>=9.2.2",
5554
]
5655
test = [
5756
"jsondiff>=2.2.1",
@@ -78,8 +77,9 @@ Documentation = "https://github.com/developmentseed/eopf-geozarr/tree/main/docs"
7877
[project.scripts]
7978
eopf-geozarr = "eopf_geozarr.cli:main"
8079

81-
[tool.setuptools_scm]
82-
version_file = "src/eopf_geozarr/_version.py"
80+
# Note: setuptools_scm configuration disabled in favor of release-please managed versioning
81+
# [tool.setuptools_scm]
82+
# version_file = "src/eopf_geozarr/_version.py"
8383

8484
[tool.setuptools.packages.find]
8585
where = ["src"]

uv.lock

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)